File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to call Local Interfaces in same mechine if 2 containers is there

 
Sanju
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
1. Is it possible to call Local Interfaces in same mechine if 2 containers is tehre in that meching.
2. When ever you will call ejbFinder methods ,if in database no data ,what will happen?

Plz give the reply who ever you knows.

Mohan

[ December 13, 2004: Message edited by: sunita mohan ]
[ December 13, 2004: Message edited by: sunita mohan ]
 
Grand Puba
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mohan,

You will need to use a remote interface when the client that will be working with it will be in a different Java Virtual Machine (distributed environment).
Local client view can only be accessed by beans who are packaged within the same EJB-JAR package or by beans who are packaged within different EJB-JAR packages (or WAR packages), but everything is still packaged within the same application's EAR package.

So, I don't think it is possible to call local interfaces since each container will have it's own VM.

Greetz,

Puba

Note: If you create an entity bean, you need to remember that it's usually used with a local client view. If your entity bean needs to provide access to a client outside of the existing JVM (i.e., a remote client), you typically use a session bean with a remote client view. (Session Facade pattern)
 
Malli Raman
Ranch Hand
Posts: 312
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sunita mohan:
Hi,
1. Is it possible to call Local Interfaces in same mechine if 2 containers is tehre in that meching.
2. When ever you will call ejbFinder methods ,if in database no data ,what will happen?

Plz give the reply who ever you knows.

Mohan

[ December 13, 2004: Message edited by: sunita mohan ]

[ December 13, 2004: Message edited by: sunita mohan ]


Hi Mohan,

Reg your Question 1, I agree with Puba that you have to use the remote interface as both containers may use different jvm's.

Reg Q2) ObjectNotFoundException will be thrown.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic