J
josh
Hi, finally after many time I've configured a pool manager under
Tomcat. Now I have a question:
in the <Resource> element I write the attributes username, password
but in my application I want that
the user pass it dinamically so I removed them and I write in the
attribute auth="Application" but If I use the following method:
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup( "jdbc/test" );
conn = ds.getConnection(user, pass);
I have the following error:
MESSAGE: Access denied for user ''@'localhost' (using password: NO)
Any idea?
or how can I get that attributes values so I can check with those
dinamically passed?
Thanks
Tomcat. Now I have a question:
in the <Resource> element I write the attributes username, password
but in my application I want that
the user pass it dinamically so I removed them and I write in the
attribute auth="Application" but If I use the following method:
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup( "jdbc/test" );
conn = ds.getConnection(user, pass);
I have the following error:
MESSAGE: Access denied for user ''@'localhost' (using password: NO)
Any idea?
or how can I get that attributes values so I can check with those
dinamically passed?
Thanks