This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what happens when a request is given from a JSP to access a database through EJB?  RSS feed

 
Manas Ahlaad
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all ,
can any one please write the sequcene of steps in a transperent way , which happen when a request is given from a JSP to get some data from a table of database through EJB
any references will also do
TIA
manas
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jsp --> Use Bean lets say usrbean.
jsp-->userbean.getData()-->ejbHelper/client.getData()
ejbHelper/client.getData()
--> ejbObj = getEjbObject()
--> ejbObj.getData()
And here you go.
This is just one of the strategies. It basically depends on your framework architecture.
You have good books on developing J2EE projects by wrox, orielly etc.
all the best,
Ramdhan YK
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!