This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to access ejb of another application server  RSS feed

 
sanjay nitwal
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
how to get access of another ejb deployed in another application server wht will be the properties i have to set in properties file

if one can explane using example it will be g8 help
 
Amit Vinod Dali
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Accessing Deployed EJBs
 
Karthik Shiraly
Bartender
Posts: 1210
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sanjay nitwal wrote:Hi
how to get access of another ejb deployed in another application server wht will be the properties i have to set in properties file

if one can explane using example it will be g8 help


Hi,

From the client application in AppServer1, you need to get the JNDI context of AppServer2. The "jndi.properties" file (or Properties object) used by client app should point to Appserver2's JNDI directory. Exact values depends on which app server - JBoss,Glassfish, Weblogic, etc - you're using. What is AppServer2 in your case?

Additionally, the EJB should expose a Remote interface. Local interface isn't enough.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!