-
1. Re: New-connection-sql Jboss
wdfink May 17, 2013 2:44 PM (in response to tnas)1 of 1 people found this helpfulnew-connection is only if the connection is created.
After that it will be keept open and held in the connection pool.
What if you use the validation statement which is called if the connection is used.
-
2. Re: New-connection-sql Jboss
tnas May 17, 2013 3:16 PM (in response to wdfink)Thanks for your reply, but the check-valid-connection-sql doesn't work too. Is it possible to see the output of the query?
-
3. Re: New-connection-sql Jboss
tnas May 20, 2013 12:17 PM (in response to tnas)I've supposed the error was because I'm using the old driver (ojdb10g-2.jar). So, I've changed the driver to ojdb5.jar but it didn't work.
-
4. Re: New-connection-sql Jboss
wdfink May 21, 2013 5:22 AM (in response to tnas)What JBoss and Oracle version do you use?
There are newer drivers, ojdbc6 I think, the driver should fit for Java/JBoss/Oracle versions.
-
5. Re: New-connection-sql Jboss
tnas May 21, 2013 4:35 PM (in response to wdfink)I'm using Jboss 5.1 and Oracle 11g. I'll try to use the ojdb6 driver. Let's go to see what will happen.
-
6. Re: New-connection-sql Jboss
tnas May 22, 2013 3:40 PM (in response to tnas)Neither the ojdbc6 driver has worked . Is it possible to see the <new-connection-sql> output? I'm not sure if the query is executing.
-
7. Re: New-connection-sql Jboss
alexeev Jun 10, 2013 3:50 PM (in response to tnas)Try this:
<new-connection-sql>
BEGIN SET ROLE RL_USER_SELECT IDENTIFIED BY RL_USER_SELECT, RL_ACCESS_CONSULT IDENTIFIED BY RL_ACCESS_CONSULT; END;
</new-connection-sql>
-
8. Re: New-connection-sql Jboss
seenukarthi Jun 11, 2013 3:05 AM (in response to tnas)This should work, I tried someting similar, it worked for me
<new-connection-sql>
BEGIN EXECUTE IMMEDIATE 'SET ROLE RL_USER_SELECT IDENTIFIED BY RL_USER_SELECT'; EXECUTE IMMEDIATE 'RL_ACCESS_CONSULT IDENTIFIED BY RL_ACCESS_CONSULT'; END;
</new-connection-sql>