I'm playing around with different approaches to dealing with isolated EARs, and 
I get this error when:

a) I've scoped the classloader for the EAR:

<jboss-app>
    <loader-repository>
        Cyrus.classloading:loader=application registry
        <loader-repository-config> 
                java2ParentDelegation=true 
        </loader-repository-config> 
    </loader-repository>
</jboss-app>

b) set JNDI to call-by-value (so the EJB home object is deserialized into the 
clients classloader context)

c) NOT enforced call-by-value on the EJB

I've tried one approach to enforcing call-by-value for the EJB, which makes 
everything work (as you would expect!). This is to change the standardjboss.xml 
invoker-proxy-binding to always use the marshalling invoker.
When I try setting ...<call-by-value>true</call-by-value>... in the EJBs 
jboss.xml instead of the proxy binding solution it doesn't seem to help. I'm 
trying to look up more info on the call-by-value attribute i.e. does it affect 
the EJB's client invoker stack or does it affect the EJB's calls out to other 
beans?

Anyway, I think that although the wiki and documentation covers the 
configuration of the classloading well, with good discussion of the issues, it 
is a bit confusing how and where you need to do semi-detyping using 
serialization to bridge the different classloaders. There seem to be several 
ways of doing this but its a bit difficult to figure out the 'best' way. Or 
perhaps I've got the wrong end of the stick...

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

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


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to