-
1. Re: javax.naming.NameNotFoundException: oraclePool not bound
andey Mar 17, 2017 5:12 AM (in response to som_k)Do you have the datasource connection pool enabled? Are you doing something remote lookup of datasource "oraclePool"?
You should configure the ds like below:
~~~
<datasource jndi-name="java:jboss/datasources/MyDS" pool-name="myDatasource" enabled="true">
<connection-url>jdbc:sqlserver://localhost:1433;DatabaseName=Test</connection-url>
<driver>oracle</driver>
<pool>
<min-pool-size>0</min-pool-size>
<max-pool-size>20</max-pool-size>
</pool>
<security>
<user-name>***</user-name>
<password>***</password>
</security>
<validation>
......
</datasource>
~~~
You should look up ds like below:
~~~
DataSource ds=null;
Context ctx=new InitialContext();
ds=(DataSource)ctx.lookup("java:jboss/datasources/MyDS");
...
~~~ -
2. Re: javax.naming.NameNotFoundException: oraclePool not bound
som_k Mar 17, 2017 10:45 AM (in response to andey)Thanks Anup for your reply, I am new to oracle and datasource can you let me know where can i find these details in Sterling OMS?
-
3. Re: javax.naming.NameNotFoundException: oraclePool not bound
andey Mar 17, 2017 11:13 AM (in response to som_k)Hi,
Try to configure the above provided ds configuration and follow the lookup ds way and let me the results.
Regards,
Anup