• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

* How to call EJBs from different appservers ?

 
Nasko Aladjov
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
What do you think is the best approach to connect EJBs deployed in two different(!) application servers ?
Scenario:
I have a Trader EJB in appserver X. I create another EJB - Customer - and deploy it in appserver Y.
Trader EJB "lives" in the JNDI of X. Customer - in Y.
How to make Customer call the Trader ?
Any ideas ?
Best regards,
~Nasko
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use JNDI for doing lookup. JNDI implementation class specific to the target server must be passed as property in the JNDI initial context implementation factory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic