#2 examples for ra.xml and openmdx-connector.xml

open
bruno
None
5
2012-07-22
2004-09-16
Jari Honka
No

Is it possible to have an example for a RAR, i.e. examples
for ra.xml and openmdx-connector.xml?
I didn't find any in the labs ;-)

Thanks Jari

Discussion

  • bruno
    bruno
    2004-09-17

     
    Attachments
  • bruno
    bruno
    2004-09-17

    Logged In: YES
    user_id=1032198

    Hi Jari

    I have uploaded two examples, one for oracle and one for db2.

    For db2 we had to set the jvm-property
    -Djdbc.drivers=oracle.jdbc.driver.OracleDriver:com.ibm.as400.access.AS400JDBCDriver

    have fun
    Bruno

     
  • Logged In: NO

    hi bruno,

    what would also help me to complete this example is the ejb-
    jar.xml that references this RAR defined Persistence.

    The examples I've been able to find aren't connecting to a
    DB, but rather use the InMemory Provider.

    Thanks,
    Jon K

     
  • bruno
    bruno
    2004-11-11

    Logged In: YES
    user_id=1032198

    Hi Jon

    datasource reference in the ejb-jar.xml :
    <resource-ref>
    <res-ref-name>jdbc/datasource[0]</res-ref-name>
    <res-type>javax.sql.Datasource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>

    corresponding entry in openmdx-ejb-jar.xml:
    <resource-ref>
    <res-ref-name>jdbc/datasource[0]</res-ref-name>
    <jndi-name>jdbc.fips_dataprovider</jndi-name>
    </resource-ref>

    of course the jndi-name must match the name you configured
    in the openmdx-connector.xml. The complete
    openmdx-ejb-jar.xml is attached.

    regards
    Bruno

     
  • bruno
    bruno
    2004-11-11

    openmdx-ejb-jar.xml

     
    Attachments


Anonymous


Cancel   Add attachments