File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Local Interface for EJB 1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Local Interface for EJB 1.1" Watch "Local Interface for EJB 1.1" New topic

Local Interface for EJB 1.1

Mithun Azhagappan

Joined: Mar 27, 2006
Posts: 7
I have an application which uses EJB1.1 Remote Interfaces. I am tuning the application and i need to make the benefit of Local Interface concept . An i knw that we dont have Local Interface concept for EJB1.1 . And i am not in a position to upgrade the EJB Version. Can I in someway implement local calls between the session beans and entity beans in my JVM .

NB: My app has all the beans in a single Server ( single JVM) .

Regards,<br />Mithun A<br />SCJP,SCBCD,SCEA
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
no, you can't. At least not in any generic way (many appservers had proprietary extensions that did have some kind of system though).

Mithun Azhagappan

Joined: Mar 27, 2006
Posts: 7
Is there some way that I can tell the app server to discover the beans in the same machine... will it in some way help improve my performance so that the beans are been looked up in the same machine.
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

I'm curious as to what your deployment environment is.

I work with WebSphere, and it is my understanding that while a remote interface may be used by a client, the application server can recognize a call from one EJB to the other that originates on the same JVM. As a result, it does a variety of optimization for local calls.

My understanding of local interfaces has much more to do with security, in so much as a remote client can't invoke an EJB that doesn't have a remote interface.

-Cameron McKenzie
I agree. Here's the link:
subject: Local Interface for EJB 1.1
It's not a secret anymore!