Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how 2 call ejb file using servlet  RSS feed

 
kapil,mehta
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how 2 call ejb file& servlet ie servlet& ejb communication
 
George Brown
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet would need to use the JNDI to get a reference to the EJB (let's call it EJB A) in the same way that another EJB (let's call that EJB B) would need to use the JNDI to get a reference to EJB A.
If you have WebLogic installed you should have lots of examples of a client connecting to an EJB in the subdirectories of ${WEBLOGIC_INSTALL_DIRECTORY}/examples/ejb
HTH
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!