Without a jboss.xml, all of your resource references are mapped to 
java:/DefaultDS, which happens to point to the same database as 
java:/BlackBoxDS. So, it's not really working like you think.

Toby.

Marc T. Calello wrote:

> Why is this working?
> 
> I have a TestBlackBox EJB that performs a JNDI lookup on:
>       javax.sql.DataSource dataSource = (javax.sql.DataSource)
> ctx.lookup("java:comp/env/eis/BlackBoxEIS")
> 
> then in my deployment desciptor I declare the external ref:
>        <resource-ref>
>          <description>This is an external reference to some DB.</description>
>          <res-ref-name>eis/BlackBoxEIS</res-ref-name>
>          <res-type>javax.sql.DataSource</res-type>
>          <res-auth>Container</res-auth>
>        </resource-ref>
> 
> I am not including a jboss.xml file.
> 
> My RAR is actually bound to java:/BlackBoxDS.
> 
> When it executes it seems to run just fine, and I even pull back data from
> the
> HyperlinkDB.  I do not understand how the
> Container is mapping java:comp/env/eis/BlackBoxEIS ====> java:/BlackBoxDS.
> 
> Any help is much appreciated,
> -Marc



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to