Hi!

>Per a conversation I had earlier with Aaron, you can go into EJX and add a
>resource to the ejb-jar.xml file, such as jdbc/mydatasource, and indicate
>that it is indeed a data source.  You can then go into jboss.xml in EJX
(EJB
>1.1 XML with jBoss XML) and assign a resource manager to the resource.  Add
>a new resource manager ( JDBC DataSource ), in the resource name field,
give
>it the same name as you did in the EJB-JAR.XML ( jdbc/mydatasource ), then
>in the JNDI name of the Data Source field, give it the name assigned by
>jBoss ( java:/mydatasource ).  Now, you can address you datasource with
>java:/comp/env/jdbc/mydatasource.  This is container independant and works
>great, less filling :)

There is a shorter way: if you just declare a resource ref in ejb XML then
jBoss will tie it to "java:/DefaultDS" automagically. No further mappings
required.

/Rickard




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to