I don't know much about the DataSourceUserManager but I presume there's a
way to store groups in there.

You're looking for the RoleManager (for Roles) and UserManager, they're
stored at java:comp/UserManager and java:comp/RoleManager respecitvely. If
you want an example using the EJBUserManager, try unjarring the EJB jar of
the ATM example app with .9.4. Look at the beans AccountUserManager and
AccountUser I think.

Mike

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy Pierson
> Sent: Sunday, 5 March 2000 2:00
> To: Orion-Interest
> Subject: Default Groups?
>
>
> Can anybody point me in the right direction to gaining some
> knowledge on the
> UserManager?
>
> 1.) How does DataSourceUSerManager know what groups a user
> belongs to? I am
> not using the principals.xml because I don't want to duplicate what I'm
> already capturing in a database, and I assume that there is a way to do it
> from the DataSource - I just don't know how.
>
> 2.) How can I obtain a reference to the current UserManager from JSP or a
> servlet?  Is it a JNDI lookup?  If so, what is the JNDI location?
>
> ANY help will be greatly appreciated.
>
> Thank you,
> Jeremy Pierson
>
>
>

Reply via email to