This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling EJB from a different Server

 
Gul Khan
Ranch Hand
Posts: 173
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Can someone plz tell me how to make call to the EJB from a different server. I have two machines both with App Server running on. Want to call an EJB hosted on machine A from machine B. No clusters, just independant servers on a network.
Thanks
GUL
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only difference to using an EJB from the same server, you need to obtain a remote JNDI context instead of doing "new InitialContext()".
 
Hari babu
Ranch Hand
Posts: 208
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In continuatation with the above post, My EJB "b" is deployed only on server B, and there is no mention of the EJB classes "b" in my server "A" (in A's classpath) and now the server A has to download the class files (class files of Bean "b") from server "B", for this to happen do i need to set anything special in my classpath as we do it in RMI for dynamic loading of classes ?
Hari
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic