JNDI is available in JRun Professional. It's how your database
connections are bound.
brian
-----Original Message-----
From: Bernhard Herzog [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 05, 2001 10:18 AM
To: JRun-Talk
Subject: AW: AuthenticationInterface
Thanks for your answer. I forgot to say that I cannot use the
EJB features (i.e. I am just using JRun professional) for my
application. When I have a JNDI service available I will
consider your approach (or is this possible with just JRun
professional?).
> -----Ursprungliche Nachricht-----
> Von: Brian Zimmer [mailto:[EMAIL PROTECTED]]
> Gesendet am: Montag, 5. Marz 2001 16:58
> An: JRun-Talk
> Betreff: RE: AuthenticationInterface
>
> How about binding the UserManager singleton in JNDI? This is
> what I did
> and it allows access from anywhere. I use a servlet to setup the
> infrastructure and one of it's responsibilities is to bind the
> UserManager with some parameters from web.xml. Hope this helps.
>
> brian
>
> -----Original Message-----
> From: Bernhard Herzog [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 05, 2001 9:43 AM
> To: JRun-Talk
> Subject: AuthenticationInterface
>
>
> Hi!
>
> I want to implement my own class for providing user
> and role authentication. The problem is, that I would
> like to make a kind of UserManager which is stored in
> the ServletContext, but have no access to the
> ServletContext in
> allaire.jrun.security.AuthenticationInterface:
>
> init(allaire.jrun.security.OrderedProperties props)
> authenticate(allaire.jrun.security.HttpServletRequest req,
> java.lang.String username, java.lang.String method,
> java.lang.String credentials)
>
> I could make a static UserManager (singleton), but I
> would prefer not to have static variables in my Servlets
> (because this would mean no access to web.xml, global
> variable to the whole JVM, etc.).
>
> Is there a way to access the ServletContext from an
> AuthenticationInterface implementation or any other way
> to avoid a static variable?
>
> TIA
> Bernhard
>
> - -
> sysis interactive simulations ag
> - + - - palais palffy, josefsplatz 6, A-1010 vienna
> - + + - -
> ph: + 43 1 407 77 51 -134, fax: -12
> + - e-mail: [EMAIL PROTECTED], http://sysis.at
> - + - +
> +
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists