[jboss-user] [EJB 3.0] - Re: Multiples Jars with same EJBs
do-not-reply at jboss.com
Tue Sep 2 18:37:58 EDT 2008
I think you are running into a classloader issue. First one EJB gets initiated, which loads the Zone and ZoneBean classes. Then when the second EJB is being initiated, the classloader notes that the classes defined by the EJBs descriptor have already been loaded.
The only way I can think of to separate them is to place each EJB JAR file into its own EAR file and define a classloader repository to keep the classes separate. Of course, then you will also have to place the code that accesses the EJBs into those EAR files, and that code can access only the EJB found in that EAR (it cannot access the EJB in the other EAR).
Of course, this is just my understanding. Someone else might know more.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173822#4173822
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173822
More information about the jboss-user