[jboss-user] [JNDI and Naming] - Re: Provide one datasource with two different JNDI names

jaikiran pai do-not-reply at jboss.com
Sat Nov 20 08:45:12 EST 2010

jaikiran pai [http://community.jboss.org/people/jaikiran] created the discussion

"Re: Provide one datasource with two different JNDI names"

To view the discussion, visit: http://community.jboss.org/message/572082#572082

I misunderstood your first question then. The NamingAlias just creates a LinkRef for a source to target jndi name.

>From what I see in your latest post, you are trying something different. The DefaultDS does some other things that just binding to JNDI at java:DefaultDS. For example, there are multiple MBeans which are created using the "DefaultDS" as the name for those services. And then there are numerous other services which depend on the name of this DefaultDS MBeans. So in your case, when you drop the DefaultDS in favour of the MyDataSource name, you have to make sure that the dependent MBeans also you this new name to depend on.

This wiki  http://community.jboss.org/docs/DOC-9265 http://community.jboss.org/wiki/ChangeDefaultDataSource has the details of which exact files need to be changed.

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101120/3bd5c34e/attachment.html 

More information about the jboss-user mailing list