• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

call ejb client via servlet

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic