Friday, November 20, 2009 06:56 AM
I'm using tomcat5 now. And i'm using datasource of tomcat now.
I want to know how can we set the application name on fly in the resource tag when creating the datasource.
Earlier i used this line in java programming.
DriverManager.getConnection("jdbc:oracle:thin:@ip:port:MR"+ "user=usr;" + "password=pwd" + ";applicationName=MyApp-"+LoginUser);
and able to set the login user to the connection string. so was able to trace the user.
How can i achieve the same while using the datasource that too it's from admin console.
Any help is appreciated.
Thanks & regards