tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Configured JDBCRealm
Date Wed, 03 Sep 2014 14:57:04 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Janusz,

On 9/2/14, 10:31 PM, Dalecki, Janusz wrote:
> I have just started reading on DataSource realm. But I think I am
> facing the same problem as with JDBCRealm: 1)      How can I get
> hold of an instance of this DataSourceRealm  object within my  Java
> app?

You cannot. If you want to use JDBC then you want to fetch a
DataSource using JNDI and then just write to the java.sql API.

> 2)      How do I get the list of all roles available?

You should already know the list of roles available because your
application is what defines those roles.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUByxAAAoJEBzwKT+lPKRY9DUQAJrv1rVBypYuz6SrxU8xD3LD
+b3XaeOGDp87Rapw158RZLW3PPl87JPvj/jQIkvC64XtJp4SJHFBqr20Iq1FHLoH
IGDhtTepT6WXTC251kK/+9RcCSlU9NRQljqw2BRktwvjI80wgBrOGX/Nem20ODmk
7l7Z+lOSc1bU7ggA8MCHmYEeV983YTOnuKZqS2HDD3NnpvYHx6MqLG14cclU0r2U
pS+yp2alezMxUr3pO3DABOnm0mHRHO9WZ+4oI18j4AJGwMCl2kDdhzaMWaxPMlQr
Ht10lC2yXciWKu33LpIpGDzsUjMZOa5sFRPAH/t44Qellhk9TAl2M/5fq3suhSKZ
GLy6jL6tbSwVcozZpAwGwX8gSkJ68uoL54A/O+cedYN9MSCxiFQbo7oC5rSFBODm
IDCwaJdo9zew87jLd3+Wv/lvG+BfDdvugIYrct8UAbF8dioY+QH4YCTJFRKLJ9i8
FtOc7Mp/3jc2CssdueVcS8rE+P5KhZaR2Q0sL/R7hWQ3t5tPiu2DfG33j7kLry3A
GK4R8lTsTlOlGmN3Vk68US6O7OlAEkmLli36UgR+bLLtAR2kRt9MDgW3LdCXKAKB
44jAhquVcftSr7MonApUci3GET8PZTZATisxJHvn4d0dRXSBhIHOj5MuGytiWdQa
ijGEAEsl6QqeIRBa3yfy
=+aiK
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message