Hi all I was wondering if its possible to create the remote and home interface objects by getting their names as strings from Db or a properties file. My scenario is that i have to route my reponse to an EJB depending on the request i get and might need to add more ejbs or change the existing ones in the future. i was thinking of putting the routing rules into the db along with the EJB remote,home, and jndi names. In future if rules or behaviour change i will only need to update the database. But i dont know if its possible to create the Home and Remote Objects from a String? Any suggestions plz. Thanks and Regards GUL
posted 13 years ago
No, you can't create EJB interfaces from Strings, but you can lookup them with a JNDI name stored into the database as a string.