Hi

The following code gives a NameNotFoundException in JBOSS4.0 SP1.

javax.naming.Context ctx = new javax.naming.InitialContext();
  | javax.sql.DataSource ds = (javax.sql.DataSource) 
ctx.lookup("java:/xactly-dataSource-oraclePool");

The Same code works in JBOSS 3.2.4. 

When I use the jndi view i see the datasource list in the java: namespace.

I tried all options like without the java:/ and modifying the oracle-ds.xml to 
use-java-context false/true but i always get the NameNotFoundException. 

The code to lookup the DataSource is in a startup class and this works fine in 
JBoss3.2.4.

Is it a bug in 4.0 sp1 or is it some other configuration 

//========== oracle-ds.xml File =============/

  <local-tx-datasource>
    <jndi-name>xactly-dataSource-oraclePool</jndi-name>
    <use-java-context>true</use-java-context> 
    <connection-url>jdbc:oracle:thin:@localhost:1521:SWDB</connection-url>

    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <user-name>xactly</user-name>
    xactly
  
    
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
  
   
  </local-tx-datasource>



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873168#3873168

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3873168


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to