Change Notes item #423225, was updated on 2001-05-10 22:05
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=381174&aid=423225&group_id=22866

Category: None
Group: v2.4
Status: Open
Priority: 5
Submitted By: Scott M Stark (starksm)
Assigned to: Nobody/Anonymous (nobody)
Summary: Simplified resource-ref mapping

Initial Comment:
A change in the jboss.xml dtd was made to allow the 
specification of a resource-ref jndi name or URL in the
jboss.xml resource-ref element for cases where the 
extra indirection of a resource-managers specification 
isn't worth the trouble. For example, this is now a 
valid specification for a jdbc DataSource:

<ejb-jar>
  <enterprise-beans>
    <session>
...
    <!-- JDBC DataSources (java:comp/env/jdbc) -->
    <resource-ref>
      <res-ref-name>jdbc/MyDS</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
    </resource-ref>
    </session>
  </enterprise-beans>
</ejb-jar>

can be mapped to the deployed JNDI resource using this
jboss.xml descriptor:

<jboss>
  <enterprise-beans>
    <session>
...
    <resource-ref>
      <res-ref-name>jdbc/MyDS</res-ref-name>
      <jndi-name>java:/MyDS</jndi-name>
    </resource-ref>
    </session>
  </enterprise-beans>
</jboss>

where previously this would have required the following
jboss.xml descriptor:

<jboss>
  <enterprise-beans>
    <session>
...
    <resource-ref>
      <res-ref-name>jdbc/MyDS</res-ref-name>
      <resource-name>MyDS</resource-name>
    </resource-ref>
    </session>
  </enterprise-beans>

  <resource-managers>
      <resource-manager res-
class="javax.sql.DataSource">
          <res-name>MyDS</res-name>
          <res-jndi-name>java:/MyDS</res-jndi-name>
      </resource-manager>
  </resource-managers>
</jboss>


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=381174&aid=423225&group_id=22866

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

Reply via email to