Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

call ejb client via servlet

 
Shiraj RM
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic