Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

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

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 love a good mentalist. And so does this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic