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
[
http://community.jboss.org/message/572082#572082]
Start a new discussion in JNDI and Naming at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]