[jboss-user] [JNDI and Naming] - How to Change DefaultDS in jndi-name
jaikiran pai
do-not-reply at jboss.com
Sun Aug 1 00:56:54 EDT 2010
jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion
"How to Change DefaultDS in jndi-name"
To view the discussion, visit: http://community.jboss.org/message/555293#555293
--------------------------------------------------------------
> 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
[http://community.jboss.org/message/555293#555293]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100801/46c16704/attachment.html
More information about the jboss-user
mailing list