• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using EJB in JSP

 
Zia Madani
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to use EJB in JSP pages?
 
Tim Holloway
Bartender
Posts: 18417
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes! As a matter of fact, my EJBWizard tool not only generates EJBs, it also generates model JSPs to access and update them. http://www.mousetech.com/EJBWizard.html
 
Shubhrajit Chatterjee
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Zia Madani:
Is it possible to use EJB in JSP pages?

Why shouldn't it be possible? Try the following logic sequence.
1. EJB clients are java classes that has access to the Home, Remote interface and can do a JNDI lookup.
2. JSPs are java class files.
3. The home, remote interfaces and the JNDI classes can be made available to the JSP.
4. It follows that JSPs can invoke EJBs.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!