Manish, First, many thanks to all that have responded.
To clarify, my troubles are not with how to use the JDBCRealm, but how to use the realm with DB2. I'm able to use JDBCRealm against MySQL server fine, but the same can not be said about DB2. I believe the problem is with the way DB2 is implementing the java.sql.DriverManager interface. With both MySQL and Postgresql you can simply set the expected connection properties in the INI file. However, with the DB2 driver I can not seem to identify what those properties are. This article explains the driver in some detail, but there are no properties that can be set. http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/tjvjcccn.htm The driver simply uses a connection method with different signatures. So, not sure how to setup the datasource for Shiro. One possibility that I'm thinking of trying is to create my own implementation class and return the connection back to the Shiro API. Thanks for the help. -- View this message in context: http://shiro-user.582556.n2.nabble.com/JdbcRealm-DB2-tp7263670p7266498.html Sent from the Shiro User mailing list archive at Nabble.com.
