I have an application which consists of message driven bean and a couple of session beans. One of them has a DAO object, that is responsible for accessing database or FTP server.
I need to have two applications. The only difference between them is the instance of DAO class. Can I specify that instance during the deployment phase?
My purpose is to avoid code duplication.