| Author |
EJB 2.1 - Database connection for multiple users in Entity Bean (BMP)
|
Mathias Mueller
Greenhorn
Joined: Feb 09, 2011
Posts: 1
|
|
Hello,
I have a J2EE web application with session beans invoking entity beans (bmp). My question is: Where is the best place to pass the login credentials for the database connection to the entity bean because the login to the database depends on the user login (which comes from a LDAP server) to the web application? Should I set the login credentials in the entity context or should I pass the login credentials when ejbCreate is called and save this login credentials in the entity bean? The data source comes from a properties file but this is not the problem. I can't configure any xml-files in application servers. It must be vendor independent.
Thanks for your help and best regards.
Mathias
|
 |
 |
|
|
subject: EJB 2.1 - Database connection for multiple users in Entity Bean (BMP)
|
|
|