Here's a message I sent off-list to another person that asked this
question. Following are the relevant sections of my jboss.jcml file:
<!-- JDBC -->
<!- NOTE: This section should already exist, you just need to add
org.git.mm.mysql.Driver -->
<mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProv
ider">
<attribute name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.id
bDriver,org.gjt.mm.mysql.Driver</attribute>
</mbean>
<!-- mySQL - Added 4/16/01 by Todd Chaffee -->
<!-- NOTE: I put this all the way at the end of the file -->
<mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XA
DataSource,name=EstoreDB">
<attribute name="PoolName">EstoreDB</attribute>
<attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADa
taSourceImpl</attribute>
<attribute name="Properties"></attribute>
<attribute name="URL">jdbc:mysql://localhost:3306/petstore</attribute>
<attribute name="GCMinIdleTime">1200000</attribute>
<attribute name="JDBCUser">root</attribute>
<attribute name="MaxSize">10</attribute>
<attribute name="Password">parallax1</attribute>
<attribute name="GCEnabled">false</attribute>
<attribute name="InvalidateOnError">false</attribute>
<attribute name="TimestampUsed">false</attribute>
<attribute name="Blocking">true</attribute>
<attribute name="GCInterval">120000</attribute>
<attribute name="IdleTimeout">1800000</attribute>
<attribute name="IdleTimeoutEnabled">false</attribute>
<attribute name="LoggingEnabled">false</attribute>
<attribute name="MaxIdleTimeoutPercent">1.0</attribute>
<attribute name="MinSize">0</attribute>
</mbean>
You'll also need to make sure that you copy the class containing
org.git.mm.mysql.Driver (or whatever driver you use) to the
$JBOSS_HOME/lib/ext directory. For example, I have a copy of
'mm.mysql-2.0.4-bin.jar' in my '/usr/local/jboss/ext/lib' directory.
Also, you don't need anything concerning mysql in your jboss.conf file or
jboss.properties file, so disregard anything in the docs about that.
Hope this helps.
- Todd Chaffee
P.S. From what I can see, you've got port 3306 in the wrong place - it
should come right after "localhost". That may not be the only problem but
I'm sure you can compare my jboss.jcml to yours to get it working. Good luck.
>Hello,
>
>I've read the archives about how to set up the MySQL database pool,
>but I'm still having problems. Once the pool is set up, the server
>hangs. The last messages I see on startup are:
>
>[JDBC provider] Starting
>[JDBC provider] Started
>[Hypersonic] Starting
>[Hypersonic] Server 1.4 is running
>[Hypersonic] Database started
>[Hypersonic] Started
>[MySqlDS] Starting
>[MySqlDS] XA Connection pool MySqlDS bound to java:/MySqlDS
>[Hypersonic] Press [Ctrl]+[C] to abort
>
>
>That's it. The system hangs afterwards. If I take out the JDBC pool,
>everything is fine.
>
>I'm using:
>
>jBoss 2.2
>MySQL driver mm.mysql-2.0.4-bin.jar
>RedHat 2.2.12-20 384MB RAM
>MySQL-3.23.37-1.i386.rpm
>
>What to do?
>
>Thanks.
>
>jboss.jcml:
>
><mbean code="org.jboss.jdbc.JdbcProvider"
>name="DefaultDomain:service=JdbcProvider">
> <attribute
>name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,g.gjt.mm.mysql.Driver</attribute>
> </mbean>
>.
>.
>.
>.
> <mbean code="org.jboss.jdbc.XADataSourceLoader"
>name="DefaultDomain:service=XADataSource,name=MySqlDS">
> <attribute name="PoolName">MySqlDS</attribute>
> <attribute
>name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourcmpl</attribute>
> <attribute name="Properties" />
> <attribute
>namre="URL">jdbc:mysql://localhost/pht:3306</attribute>
> <attribute name="GCMinIdleTime">1200000</attribute>
> <attribute name="JDBCUser">mysql</attribute>
> <attribute name="MaxSize">10</attribute>
> <attribute name="Password">mysql</attribute>
> <attribute name="GCEnabled">false</attribute>
> <attribute name="InvalidateOnError">false</attribute>
> <attribute name="TimestampUsed">false</attribute>
> <attribute name="Blocking">true</attribute>
> <attribute name="GCInterval">120000</attribute>
> <attribute name="IdleTimeout">1800000</attribute>
> <attribute name="IdleTimeoutEnabled">false</attribute>
> <attribute name="LoggingEnabled">false</attribute>
> <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
> <attribute name="MinSize">0</attribute>
> </mbean>
>
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.com/
>
>_______________________________________________
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user