I've been thinking about how to do this in any way let alone a portable way.
My problem is that I can't seem to get my hands on the password for the user
returned by getCallerPrincipal().  If I could do that I could use the pooled
connections and "bind" to the database (well in my case it's a directory, but
should be the same) when the per caller principle connection is needed.

If you have any suggestions on how to access the password, I'd be interested.

Alex

--- david sims <[EMAIL PROTECTED]> wrote:
> Does anyone know if the EJB 1.1 or forthcoming 2.0 spec addresses the
> situation
> where each caller principal into an EJB container needs to create its own
> database connection.
>
> Typically, it seems that an EJB container will open a few pooled connections
> to
> the database all using a single username/password.
>
> But the security people don't like to see a "proxy" accessing the database.
> They want the actual EJB caller principal names to be used when creating
> database connections.
>
> I could write this code manually in my BMP beans. Not a problem. But is there
> a
> portable way I can do this? Do any of the specs address this issue?
>
> thanks,
> david
>
> --
> David Sims               [EMAIL PROTECTED]
> Sims Computing, Inc.       www.simscomputing.com
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to