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.