Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Local Interface for EJB 1.1

 
Mithun Azhagappan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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) .
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic