[jboss-user] [EJB/JBoss] - Re: Accessing correct bean version if multiple EARs deployed

jaikiran do-not-reply at jboss.com
Tue Jul 25 07:03:56 EDT 2006


I havent thought whether there are any other ways of doing this, but the first thing that comes to my mind is passing the earName as an <env-entry>. You may bind the earName through the env-entry and later on lookup the same in your code:

String earName = ctx.lookup("java:/comp/env/earName");
  | ctx.lookup(earName + "BeanClassName/local");
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960635#3960635

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960635



More information about the jboss-user mailing list