> <data-source
> name="test"
> class="com.evermind.sql.ConnectionDataSource"
> location="jdbc/myDS"
> pooled-location="jdbc/myPooledDS"
> xa-location="jdbc/xa/myXADS"
> ejb-location="jdbc/myEJBDS"
> url="jdbc:oracle:oci8:@mydb"
> connection-driver="oracle.jdbc.driver.OracleDriver"
> username="user"
> password="password"
> />
Your data-sources.xml is ok.
>
> and in ejb-jar.xml
>
> <session>
> <description>A session bean</description>
> <ejb-name>TestBean</ejb-name>
> <home>TestHome</home>
> <remote>Test</remote>
> <ejb-class>TestBean</ejb-class>
> <session-type>Stateless</session-type>
> <transaction-type>Container</transaction-type>
> <resource-ref>
> <res-ref-name>jdbc/myDBConnection</res-ref-name>
^^^^^^^^^^^^^^
can be any name (as you hard-coded).
> <res-type>javax.sql.DataSource</res-type>
> <res-auth>Container</res-auth>
> </resource-ref>
> </session>
jdbc/myDBConnection is you hardcoded name into your bean, and you just
need to put into your orion-ejb-jar.xml, inside xml tag
<session-deployment>
<resource-ref-mapping name="jdbc/myDBConnection" location="jdbc/myXADS"
/>
^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^
your hardcoded name your
jndi-name as in data-sources.xml
as specified in ejb-jar.xml
and for your transactions, do all the transactions running in the same
transaction (examples can be found in j2ee dev guide from sun)
hope this help.
Claudio Miranda