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 call ejb client via servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "call ejb client via servlet" Watch "call ejb client via servlet" New topic
Author

call ejb client via servlet

Shiraj RM
Greenhorn

Joined: Mar 15, 2005
Posts: 4
I have used JBOSS and done the EJB jar separate, client jar separate and WEB app war separate. it works perfect.

Now the problem is I cant seem to get it work like this.
JBOSS - ejb jar and client jar.

seperate web server TOMCAT war file

but it doesnot seem to communicate. How do I do the setup this ?
What are the parm need for tomcat ? and any parm to JBOSS so that the web server and app server communicate separately.
JBOSS anyway runs tomcat 5 within JBOSS thats why it works.

pls help on this. Can I like make any JINDI settings so that it communicates. if so pls give me some clues
Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
Hi Shiraj,


Can I like make any JINDI settings so that it communicates. if so pls give me some clues

It might be a good idea if you post the error messages you get. There could be several reasons, but for now I�ll try to give you a hint regarding the JNDI (this looks to me like a potential reason for the communication errors you get). Since your client and your ejb run in different containers, you might need to change the way the initial context is created. If your client uses code like this:

This won�t work if the client is located outside of the ejb container. You need to pass the right environment variables to the InitialContext.


I think, therefore I exist -- Rene Descartes
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: call ejb client via servlet
 
Similar Threads
Referencing EJBs in a JAR file from a WAR
JBOSS EJB Server and Tomcat as Web Server
Apache Tomcat 6.0.16 a web server/ App server
Problem referencing EJB in web application on Websphere
Different Server communications