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


*****************************
Marc T. Calello
Momentum Software, Inc.
1717 W. 6th Street; Ste. 300
Austin, TX 78703
[EMAIL PROTECTED]
http://www.momentumsoftware.com
Phone: (512) 236-1517
Fax: (512) 236-1267
*****************************



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

Reply via email to