top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

How can I get hold of realm object (JDBCRealm) within Java app?

+1 vote

I have configured JDBCRealm Tomcat with the following:

I have a few questions:
1) How can I get hold of this realm object within my Java app?
2) Even if I get the instance of the JDBCRealm - how do I get the list of all roles available?

posted Sep 2, 2014 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
What's the purpose of doing this?

If I wanted to get a list of my users or roles, I would use JDBC and pull them from the database. Then I don't have to tie my application to Tomcat's internal classes.

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.