[jboss-user] [Installation, Configuration & DEPLOYMENT] - EAR Isolation and remote calls

dfisher do-not-reply at jboss.com
Sat Oct 13 01:46:13 EDT 2007


I have 2 ears deployed in the same jboss instance (4.2.1) and one makes a remote call to the other.
Both of these ears have isolated classloaders and contain the same entity bean jar.
(Entities are not deployed on this server, just used as detached.)
JBoss is configured to use call by value for this setup.

The second ear throws a classcastexception for my entity bean classes when servicing the call from the first ear.
Is it possible the second ear method is using the same thread and therefore not retrieving the correct class?

Putting the entity bean jar in the deploy directory and removing it from both ears fixes the problem.

Any ideas on how to package these ears correctly?
Thanks.


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

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



More information about the jboss-user mailing list