This content has been marked as final.
Show 2 replies
-
1. Re: Accessing EJB 2.1 in a isolated EARs
ghepardo Sep 10, 2009 6:06 AM (in response to gjeudy)I have the same problem.
I am using CallByValue=false and Isolated=true.
I have added correctly the ejb-ref into the jboss.xml and ejb-jar.xml, and in my company we are using Jboss As 4.2 cp07.
I can succesfully lookup the EJB, but I get this exception:Invalid invocation, check your deployment packaging, method=public abstract
when I do the create.
Can you help me?
Thanks. -
2. Re: Accessing EJB 2.1 in a isolated EARs
gjeudy Sep 10, 2009 9:18 AM (in response to gjeudy)@ghepardo,
I came to the conclusion that it's not possible to use CallByReference between 2 ears with classloader isolation. You have to enable CallByValue, this makes class translation between classloaders possible through the use of Java serialization.
See this: http://www.jboss.org/community/wiki/classloadingconfiguration.
I tried both options suggested in this article. I was able to make it work only with CallByValue=true in EARDeployer though... The other option failed with the familiar:Invalid invocation, check your deployment packaging
message.