Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP and EJB  RSS feed

 
sravanthi adhikari
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I'm new to JSP and EJB.I was wondering, how does JSP and ejb interact??? Can u call session beans from JSP??? Or do u have to call servlets from jsp which inturn call ejb's???
Can some body explain me a scenario in which we use all these 3 technologies.
I'm totally new, so pl bear with me incase my questions make no sense...
Regards,
sravanthi
 
Venkat Ammisetty
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
You can call Session EJB from JSP.For that you have to bind JNDI LOOKUP name in your XML file.Once you did that you can call session bean from your JSP by using Session Bean's Home and Interface.
Before that you have to put the properties of your APPLICATION SERVER (ex WebLogic) into Context.
This is just overview,if you want more details you refer WebLogic.com site to set the properties.
If you are not clear, I will send you my code.
But you have to set the properties according to my JNDI names and all.
Give me you mail -id.
My id is ammisetty@yahoo.com
Bye
Venkat
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!