jQuery in Action, 3rd edition
The moose likes EJB and other Java EE Technologies and the fly likes local interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "local interface" Watch "local interface" New topic

local interface

Waldle Cai
Ranch Hand

Joined: Aug 16, 2000
Posts: 34
Hi all,
Under what circumstances, a servlet can make use of a EJB's local interface? Do they have to be deployed within the same web application? or can be deployed seperately?
Mat Robinson

Joined: Aug 02, 2002
Posts: 20
According to the specification, it is only required that EJB's can access local interfaces. The Web container and servlet access is optional, although is recommeded - so basically check your app server for more details.
Kiran Kumar
Ranch Hand

Joined: May 18, 2001
Posts: 107
the only requirement for using local interfaces is for the client to be running in the same JVM. so it will not be a network call to pass the parameter objects.
pl check out the EJB2.0 spec in the www.java.sun.com

Thanks<br /> <br />Kiran <br /> <br />SCEA, SCJP 1.4,<br /> <br />"First they ignore u, then they laugh at u, then they fight u, <br />then u will win<br /> <br />Mahatma Gandhi"
Mat Robinson

Joined: Aug 02, 2002
Posts: 20
As said above, it is required that a local client is within the same JVM - however it is not the only requirement.
This depends on a number of factors not least the implementation of your web container as previously noted.
For example, two applications deployed into the same JVM will not have access to each others local interfaces, as defined by the J2EE specification - all applications have to be deployed to their own namespace.
I agree. Here's the link: http://aspose.com/file-tools
subject: local interface
It's not a secret anymore!