<a href="http://www.javaranch.com/bookpromo.jsp" target="_blank" rel="nofollow">WebLogic Book Giveaway</a> 2/25-2/27
Originally posted by Aaron Mulder:
Now, the WebLogic structure has a fairly reasonable class loader arrangement for classes in an EAR. The EJB CL is the parent of the web app CL. This means that classes in the web app can see classes in the EJB JARs, but not vice versa. In other words, a servlet or JSP can invoke an EJB, but an EJB cannot invoke a servlet. Also, since the web app and EJBs are in different CLs, you can reload the web app without needing to reload the EJBs.
Originally posted by Rama Raghavan:
So when accessed from within the same server (jvm), I would have thought ejbs would be locally visible to all apps deployed (as separate wars) on that server, without having to be invoked via remote interface.
the classes necessary for using those Local Ejbs still need to be accessible by the application's ClassLoader
Local Ejbs may be called by all applications on the same WebLogic instance.
<a href="http://www.javaranch.com/bookpromo.jsp" target="_blank" rel="nofollow">WebLogic Book Giveaway</a> 2/25-2/27
Originally posted by Aaron Mulder:
While I'd have to do a little test to convince myself that this is true, I'm pretty sure it's at least not the intended behavior as far as the spec goes.
Like you, I would need to try this myself to be absolutely sure.
Actually neither the J2EE 1.3 Specification, nor the EJB 2.0 Specification specifically address this. Both just require the local ejb and client to be in the same JVM.
Actually neither the J2EE 1.3 Specification, nor the EJB 2.0 Specification specifically address this. Both just require the local ejb and client to be in the same JVM. That tells me that packaging and deployment is not an issue.
<a href="http://www.javaranch.com/bookpromo.jsp" target="_blank" rel="nofollow">WebLogic Book Giveaway</a> 2/25-2/27
Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
|