wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes One EJB 3.0 Container vs more than one Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "One EJB 3.0 Container vs more than one" Watch "One EJB 3.0 Container vs more than one" New topic
Author

One EJB 3.0 Container vs more than one

Bane Devrnja
Greenhorn

Joined: Feb 02, 2012
Posts: 2
Hi,
Adam Bien in his "Real World Java EE Patterns" on page 34 says:
"You have to be aware of nature of distribution, per-value and per-reference semantics, and exception handling. You have another option - don't distribute your system. Deployment of entire application to a single JVM solves the challenges in an elegant way - the fallacies of distributed computing doesn't apply any more.The system isn't distributed; you can work with objects in transparent way. You can partially achieve that even with Jave EE 5 - you can run as many layers as possible in a single process."
So it is possible to have presentation layer (JSF) in EJB 3.0 container and enterprise beans deployed in same container exposing/using only @Local interfaces.
But when some components are distributed on say two containers - are the components registered in java:comp/env namespace also visible on another container? Or is this is specific to container how to link the beans in a remote container? Is there a difference in this respect between EJB 3.0 and 3.1 container?
I found (Enterprise JavaBeans 3.0 - page 34) :"The <ejb-ref> can be linked to specific EJB container by using <ejb-link> element." Still it is unclear how is it achieved - is there some global name that is visible via JNDI outsade the container an can be seen by another container which needs to reference that component, and then <ejb-link> should have that 'global' name that other container exposes?
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: One EJB 3.0 Container vs more than one
 
Similar Threads
My Study Notes
Test 252: Mock exam
long post IBM.158
to start work on SCEA should i wait for new edition of mark cade ?
Passed SCEA Part 2 - My experience