On Wed, Apr 11, 2001 at 07:24:49PM +0500, Faisal Ahmad wrote:
...
> 
> BUT
> 
> when I make a <resource-ref> entry in the ejb-jar.xml for the session bean
> like this
> 
> <session>
>       <resource-ref>
>               <res-ref-name>OracleDB</res-ref-name>
>               <res-type>javax.sql.DataSource</res-type>
>               <res-auth>Container</res-auth>
>       </resource-ref>
>               :
>               :
> </session>
> 
> and try to a jndi lookup for the datasource in the bean with
> "java:comp/env/OracleDB"
> instead of getting the OracleDB datasource (or throwing an exception) it
> gives me the DefaultDS.
> 
> Am I making a mistake or missing something ?

Yes. This is asked *very* often on this mailing list. Hint: you need to
map from your bean's reference to OracleDB to the java:/OracleDB defined in
jboss.jcml using a jboss.xml file.

Toby.

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

Reply via email to