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 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user