• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

EJB to EJB Communication on different Servers

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have two application installed on two different servers . With the callerEjb on one server I want to invoke the CalleeEjb on other Server.

In the deployment descriptor of callerBean I have written these lines
--------------
<ejb-name>CallerBean</ejb-name>
<reference-descriptor>
<ejb-reference-description>
<ejb-ref-name>ejb/CalleeBeanReference</ejb-ref-name> <jndi-name>t3://172.24.99.42:7003/com.ejb.Callee.CalleeBean</jndi-name>;
</ejb-reference-description>
</reference-descriptor>
-----------
My question to you is that When I do lookup and narrowdown the object I need Remote and Home interfaces of the callee bean , How I will resolve this references . Currently in development environment I have set my classpath to point to these classes as both the servers are running on same machine. But the real problem comes when caller and callee bean will deployed on different physical servers. Do I need to package the home and remote interfaces of calleebean into callerbean or there is some other approach ?

Awaiting your guidances .

Thanks In advance
Kanchan
 
author & internet detective
Posts: 41405
854
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Kanchan K Bulbule:
Do I need to package the home and remote interfaces of calleebean into callerbean or there is some other approach ?


Yes. You package the EJB stubs and skeletons in a client jar.
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would suggest you are using the "corbaname" based JNDI names because they will work on every J2EE 1.3 certified app. server.

-Andy
 
Kanchan K Bulbule
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jeanne & Andreas Thanks for the replies .


Andreas ,
Can you please give more illustration on "corbaname" based JNDI. If I do that , then No need to package the RI and HI in my client.

Many Thanks
Kanchan
 
I wasn't selected to go to mars. This tiny ad got in ahead of me:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic