Link to home
Start Free TrialLog in
Avatar of pramodrrao
pramodrrao

asked on

how to connect session bean to database and run it on J2EE

Hi guys,
I was trying to connect session bean to database but was confused as to where to write the code for database connection(which method) ?? Also how do i configure my J2EE settings to deploy this bean ??

Is session bean best to connect to database or entity bean (if i do not care about persistence).

Also how is the following flow done --
servlet calling--session bean ---calling entity bean .

Any sample code will be of great help.

thank you so much.

Pramod
ASKER CERTIFIED SOLUTION
Avatar of mbormann
mbormann

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial