Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt regarding the usage of local interface

 
vijaya raj
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Respected members,
If i am correct, i have understood that enterprise application modules deployed in the same server can communicate using local interfaces.
I was creating an enterprise application in NetBeans 6.9. It permits to use local interface only if the client belongs to the same application. I was using a servlet created in a different application to communicate with the bean which was created in a different application. Ofcourse both these applications are in the same server.
Is my understanding wrong or is it something to do with netbeans??? Please correct me if i am wrong.

This is my first post here..
It feels great to be in this vast and profound community.

Happy NewYear to All..
 
Pawan Kr Gupta
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Vajaya

You are absolutely right.If your EJBS and webapplication are both on the same server then one should use Local interface.
 
vijaya raj
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Pawan. Then what might be the reason in my case..??
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some applications servers confused things by overloading the word server to mean different things. One definition is the server software install. Another is a server that goes with your ear. NetBeans is picking up on the fact that the applications are being run in different ears.
 
vijaya raj
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Some applications servers confused things by overloading the word server to mean different things. One definition is the server software install. Another is a server that goes with your ear. NetBeans is picking up on the fact that the applications are being run in different ears.


Well then that shud be the solution to my problem. But concept wise, since both the modules are in the same jvm instance, local interface shud have been allowed. Right?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic