Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

* How to call EJBs from different appservers ?  RSS feed

 
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: 8933
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!