File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes How to access ejb of another application server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to access ejb of another application server " Watch "How to access ejb of another application server " New topic
Author

How to access ejb of another application server

sanjay nitwal
Greenhorn

Joined: Mar 19, 2010
Posts: 15
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

Joined: Apr 14, 2010
Posts: 42
Accessing Deployed EJBs
Karthik Shiraly
Ranch Hand

Joined: Apr 04, 2009
Posts: 489
    
    5
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to access ejb of another application server
 
Similar Threads
Remote EJB
how to access this remote EJB server
Moving EJB client to a remote machine
Connect to S/390 DB2
EJB remote interface problem over internet