-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


I'm trying to install a cmp entity bean using mysql db. I don't know how
to specify in ejb-jar.xml that I would like to use mySQL as db. I have
mysql configured in jboss.jcml:
        
        [...]
        jdbc driver configured here...
        [...]

  <mbean code="org.jboss.jdbc.XADataSourceLoader" 
name="DefaultDomain:service=XADataSource,name=MySQLDB">
    <attribute name="PoolName">mySQLDS</attribute>
    <attribute 
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
    <attribute name="Properties"></attribute>
    <attribute name="URL">jdbc:mysql://localhost:3306/ecsdb</attribute>
    <attribute name="GCMinIdleTime">1200000</attribute>
    <attribute name="JDBCUser">root</attribute>
    <attribute name="MaxSize">10</attribute>
        ...


When starting jboss, mysql pool is bound to java:/mySQLDS, so in my
ejb-jar.xml:

        ...
      <resource-ref>
        <description>MySQL database resource reference</description>
        <res-ref-name>mySQLDS</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
      </resource-ref>
    </entity>
        ...

But this doesn't work. I have also tried with jdbc/mySQLDS without
success. Jboss always uses de DefaultDS Pool.

Any ideas?

Thanks in advance.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjszmpYACgkQvCjjvFKJyQZqJACcD0t+wHbTbbZhaTs2V0BlHPzu
hfkAoI1MulhQ8BIyeQBFeEF1IP3JCriU
=5Zu3
-----END PGP SIGNATURE-----


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

Reply via email to