-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mikolaj,

A few notes: see below.

Mikolaj Rydzewski wrote:
> Mikolaj Rydzewski wrote:
>> Now, I want to setup Josso single sign on system (www.josso.org) and
>> force it to use JNDI DataSources as well. With no luck.
> Here's the solution for anyone interested (addition to typical josso
> setup):
> 
>    * define DataSource within GlobalNamingResources (e.g. jdbc/users)

This sets up a global DataSource that can be used by any Context
(webapp) deployed on the server.

>    * add JNDI support to josso webapp (e.g. and ResourceLink to
>      META-INF/context.xml and resource-ref to WEB-INF/web.xml)

Note that this is not required for Realms. See
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html#Context+versus+GlobalNamingResources

>    * reference DataSource from josso-gateway-config.xml using
>      java:comp/env/jdbc/users as its JNDI name

This is always true, whether you are using a global DataSource, or a
local one.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjdFb0ACgkQ9CaO5/Lv0PAV/gCfYstrMVZzFfTyC44gs1l2D9Kb
gTMAn03cwmZY3apqZGvj0nOlPZig2dJu
=b4Lb
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to