Hi,

implementing JPA you can do what you want.

You get properties of your persistence unit and you can even ignore
datasources if you are not contacting a RDBMS.

Then do your own logic with these properties.

Then you can use @persistenceContext as usually.

- Romain


2012/7/26 Martin Kjær Jørgensen <m...@gotu.dk>

> I'm using the TomEE 1.0.0+ stack developing a JEE6 Web App, and I'm
> looking for a way to make userspecific JTA EntityManager's using CDI or
> Resource injections.
>
> The reason for this is the users in the system are created in a LDAP
> directory and used by Tomcat (TomEE) and the database server for
> authentication. So after a user has logged in on a JSF form the same
> username and password should be used to make EntityManager's.
>
> It seems that the JPA is designed to use only one username and password
> for all users of the application.
>
> Have anyone succesfully created a completely user-specific web
> application all the away down to the databaselevel and anywhere else?
>

Reply via email to