This content has been marked as final.
Show 3 replies
-
1. Re: Linking Components from different Ears
norman.richards Dec 27, 2006 11:51 AM (in response to jgilbert)I think you are asking for trouble going the multi-EAR route, but you can certainly resolve the JNDI issue trivially by giving your EJB3 components specific JNDI names using org.jboss.annotation.ejb.LocalBinding.
@Statefule @LocalBinding(jndiBinding="myApp/FooBean") @Name("foo") public class FooBean ...
then your jndi pattern would be myApp/#{ejbName} -
2. Re: Linking Components from different Ears
jgilbert Dec 27, 2006 12:13 PM (in response to jgilbert)Hmmm...
Why do you think this is asking for trouble? -
3. Re: Linking Components from different Ears
norman.richards Dec 27, 2006 12:43 PM (in response to jgilbert)You usually end up with interesting hot deployment classloading issues. I almost always would prefer to have multiple EJB JAR files in a single EAR so that JBoss will treat it as one large application.