Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamically getting Home and Remote Interface?  RSS feed

 
Gul Khan
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!