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

NigelWhite do-not-reply at jboss.com
Wed Jul 26 05:25:18 EDT 2006

I went with a utility class to look up beans.

The source for this class is generated by the ANT build script to prepend the name of the EAR file being built to the beginning of the JNDI name.

So I have an EJBUtil class which contains

	public static Object getLocalEJB(String name) throws NamingException
  | 	{
  | 		return lookup("@ear_name@/" + name + "/local");
  | 	}

Which gets "fixed" by a filter in the build which knows the EAR file name.

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

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

More information about the jboss-user mailing list