The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » GlassFish

Thread: How do EJBs communicate between an Enterprise Application and an EJB Module?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Jan 2, 2008 2:17 PM by: whartung
Todd Patrick
How do EJBs communicate between an Enterprise Application and an EJB Module?
Posted: Jan 2, 2008 11:56 AM
  Click to reply to this thread Reply

Sun Java System Application Server Platform Edition 9.0_01 (build
b02-p01)

How do EJBs communicate between an Enterprise Application and an EJB
Module?

I'm going to assume that the standard Remote and Local rules apply, even
though one EJB is in a .ear and the other is in an EJB .jar?

--Todd

-----------------------------------------
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact
the sender by reply email and destroy all copies of the original
message.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


amattas

Posts: 68
Re: How do EJBs communicate between an Enterprise Application and an EJB Module?
Posted: Jan 2, 2008 12:24 PM   in response to: Todd Patrick
  Click to reply to this thread Reply

I believe if it's outside the EAR you have to use Remote.

whartung

Posts: 634
Re: How do EJBs communicate between an Enterprise Application and an EJB Mo
Posted: Jan 2, 2008 2:17 PM   in response to: amattas
  Click to reply to this thread Reply

Yea, only elements deployed within the same EAR can enjoy Local semantics, outside of the EAR you have to use Remote.

Now, the fact than an EJB may be in a JAR that's deployed WITHIN an EAR, doesn't change that. The EJB in the JAR is deployed IN the EAR, so it can use Local calling even though it's packaged within a JAR.

For example, I have common EJBs in their own library JAR file that I use with different EARs, but they all enjoy Local calling semantics once deployed within an EAR.




 XML java.net RSS