Are you using jboss.xml? If you don't have it, jboss will use the first
datasource pool that is defined in jboss.conf. Basically you need to define
a resource in jboss.xml and make a reference to it from the ejb-jar.xml.
There is a thread about this in the dev archive, if I remember right.
Sorry about sticking my nose in this list since I'm not a jboss guru. I'm
just trying to learn it and somehow contribute...
-----Original Message-----
From: Sebastian Lillo [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 6:20 AM
To: jBoss Mail list
Subject: [jBoss-User] Steps to use mysql
Hi, can anybody tell me how to make an entity bean use mysql instead of
Hypersonic ?
I tried adding these lines to the ejb-jar.xml file but it still uses the
defaultDS db.
<resource-ref>
<res-ref-name>jdbc/mySQL</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Thanks in advance
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]