I barely remember this, so bare with me if I'm not correct, but I do believe 
that at that time we were trying to isolate the EAR and progress towards J2EE 
compliance.  We avoided this problem by, for the time being, giving up on 
isolating any EAR that contained MDBs, and consequently, any other EARs they 
communicated with.  Our only isolated EARs today in 4.0.2 are those that don't 
contain MDBs and don't communicate via RMI to ears containing them, or any 
other unisolated ear.

The suspicion I have, but haven't had the time to prove, yet, is that unless 
the container itself is configured for J2EE compliance the ears containing MDBs 
can have this problem.  It is possibly related to a classpath issue, because 
during deploy I noticed that the classpath can be different than at runtime.  
This isn't the only issue where deployment errors were related to classpath 
issues that wouldn't have arisen if the EAR was isolated, or because the 
deployment classpath was different than the runtime classpath.

I know this is a vague explanation, and could be proven wrong, but it has 
explained our behavior and guided our decisions about which ears to isolate 
until we have the time to convert all our applications into a J2EE compliant 
state.

Ask yourself these questions:

1. Is our container configured for J2EE compliance? I forgot the exact 
settings, but one is jboss-service.xml/...NamingService/CallByValue.  

2. Is your application containing the MDB isolated if your container is not?  
This setting is in jboss-app.xml for EARs and jboss-web.xml for WARs.

In our configuration, we did not get the error when both 1 and 2 were false.  
In the end, 1 isn't an option for us without code changes due to reliance on a 
hibernate2 sar, and that change isn't on the project plan yet, so we put off 
isolating most of our EARs for this release.  I suspect that if 1 and 2 are 
true, you may not get the error either.





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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to