JBoss Community

How to Change DefaultDS in jndi-name

reply from jaikiran pai in JNDI and Naming - View the full discussion

Dinesh Nadeera wrote:

 


<datasources>
  <local-tx-datasource>
    <jndi-name>mySource</jndi-name>
    <use-java-context>false</use-java-context>

You are using use-java-context = false, which means that the datasource will not be bound to the java: namespace.

 

 

So in your persistence.xml, change this:

Dinesh Nadeera wrote:

 


    <jta-data-source>java:/mySource</jta-data-source>

 

to:

 

<jta-data-source>mySource</jta-data-source>

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community