Greetings,

when I used the J2EE RI, the resource definitions took place in
ejb-jar.xml inside a <session> element:

      <resource-ref>
        <res-ref-name>jdbc/db</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
        <res-sharing-scope>Shareable</res-sharing-scope>
      </resource-ref>

and we linked this resource to JNDI that inside the <ejb> element on
sun-j2ee-ri.xm definition file:

      <resource-ref>
        <res-ref-name>jdbc/db</res-ref-name>
        <jndi-name>jdbc/dbjndi</jndi-name>
        <default-resource-principal>
            <name>XXX</name>
            <password>YYY</password>
        </default-resource-principal>
      </resource-ref>

Note: the jdbc/dbjndi resource was created in deploytool.

Now what happen in JBOSS environment?

1)with xdoclet I put a tag in my source element

/*
 *  @ejb:resource_ref res-name="jdbc/db"
 *      res-type="javax.sql.DataSource"
 *      res-auth="Container"
 */

but when I generated the descriptions file there isn't any
<resource-ref> in ejb-jar.xml file (or jboss.xml).

2)where should we make the link of this resource to a gobal jndi
resource? jboss.xml or ....?

3)where in jboss server we define a connection pool?

thanks,
Pedro Salazar

--
pedro salazar (pt-inovacao) <[EMAIL PROTECTED]>
key id: D803BC61

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to