The ApplicationMetaData importJbossXml always prefixes
the value of res-jndi-name elements from jboss.xml with java:/ which
makes it impossible to access resources that are not under the java:
context. One example are the JMS queue and topic factories which
are bound under the top level names TopicConnectionFactory and
QueueConnectionFactory respectively.

Why the assumption that all resources accessed by EJBs must be under
the java:/ context? The following valid jboss.xml descriptor results in
an incorrect link to java:/QueueConnectionFactory under the
java:comp/env/jms/QueFactory EJB ENC.

<jboss>
    <enterprise-beans>
        <session>
            <ejb-name>ENCBean</ejb-name>
            <resource-ref>
                <resource-name>QueFactory</resource-name>
                <res-ref-name>jms/QueFactory</res-ref-name>
            </resource-ref>
        </session>
    </enterprise-beans>

    <resource-managers>
        <resource-manager res-class="">
            <res-name>QueFactory</res-name>
            <res-jndi-name>QueueConnectionFactory</res-jndi-name>
        </resource-manager>
    </resource-managers>
</jboss>


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to