Nicholas,

I believe Jason got it right according to the first two paragraphs of
section 5.3 (page 52) of the EJB 2.0 specification:

<snip>
5.3 Local Clients

Session and entity beans may have local clients. A local client is a client
that is collocated in the same JVM with the session or entity bean that
provides the local client view and which may be tightly coupled to the bean.
A local client of a session bean or an entity bean may be another enterprise
bean (a session bean, entity bean, or message-driven bean).

Unlike the remote client view, the local client view of a bean is not location
independent. Access to an enterprise bean through the local client view
requires the collocation in the same JVM of both the local client and the
enterprise bean that provides the local client view. The local client view
therefore does not provide the location transparency provided by the remote
client view.
</snip>

Cheers,

Franck Rasolo
Independent Consultant
London, UK

--- Nicholas Lesiecki <[EMAIL PROTECTED]> wrote:
> Does anyone have the spec chapter and verse on these issues? I'd like to
> read up. I checked the EJB spec but couldn't find anything in a couple of
> quick scans. Does anyone have page numbers in front of them?
> 
> 
> Cheers,
> 
> Nicholas Lesiecki
> Principal Software Engineer
> eBlox, Inc.
> (520) 615-9345 x104
> Check out my new book!:
> Java Tools for Extreme Programming: Mastering Open Source Tools, including
> Ant, JUnit, and Cactus
> 
> http://www.amazon.com/exec/obidos/ASIN/047120708X/
> 
> Check out my article on AspectJ:
> http://www-106.ibm.com/developerworks/java/?loc=dwmain
> 
> -----Original Message-----
> From: Slava Imeshev [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 26, 2002 2:08 PM
> To: Cactus Users List
> Subject: RE: Testing EJB implementing EJBLocalObject interface with
> Cactus
> 
> 
> To be exact, it's possible to access locals while war and ejb-jar
> are both in the same *ear*.
> 
> Regards,
> 
> Slava Imeshev
> 
> --- "Robertson, Jason" <[EMAIL PROTECTED]> wrote:
> > You can access the local interfaces from within a servlet as long as (I
> > think) the servlet container and the EJB container are running in the same
> > JVM. If it has to jump JVM boundaries then a remote interface is needed.
> >
> > I'm testing my Entity beans with local interfaces just fine by extending
> > ServletTestCase and accessing them in the traditional fashion.
> >
> > Jason

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to