• Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing ejbs from web tier  RSS feed

 
Parag Doshi
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a multi-tiered architecture where my html/jsp/servlets are deployed in a web server and they want to access ejbs deployed on a different application server. What are the steps required to make the ejb available to the web components? Is there any jndi references or manifest.mf entries or ejb client jar needed on the web server?

Any help would be appreciated..just fyi..we are using JBoss as our application server and tomcat as our web server. I am not sure if this would make any difference in configurations.

Thanks in advance,
Parag
 
Mark Wilcox
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The web application is going to have at the minimum need the following elements:
1 - it's going to need the client side classes for your EJB. The J2EE spec has a client-jar element in ejb-jar.xml just for this, but hardly anyone uses it. Optionally you can just copy the entire JAR into your Web tier.
2 - The Web Tier will need to be able to access the JNDI context of the J2EE server (needs to know server name and probably requires a username/password)
3 - You will need to know JNDI name of your EJB
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!