JBoss Community

Re: Provide one datasource with two different JNDI names

created by jaikiran pai in JNDI and Naming - View the full discussion

Yes, that's possible:


<?xml version="1.0" encoding="UTF-8"?>
<server>
    <mbean code="org.jboss.naming.NamingAlias"
        name="org.myapp:alias=myDSAlias">
        <attribute name="FromName">aliasJNDIName</attribute>
        <attribute name="ToName">java:DefaultDS</attribute>
    </mbean>

</server>

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community