I can get PostgreSQL working using Minerva, but found something weird.
To get it to work, I followed Minerva docs and setup the following for
a pool named "ejbPool" using a PostgreSQL database named perctest:

[jboss.properties]
jdbc.drivers=org.hsql.jdbcDriver,jdbc.idbDriver,org.postgresql.Driver

[jboss.conf]
<MLET CODE=org.jboss.jdbc.XADataSourceLoader" 
   ARCHIVE="jboss.jar,minerva.jar" CODEBASE="../lib/ext">
        <ARG TYPE="java.lang.String" VALUE="ejbPool">
        <ARG TYPE="java.lang.String"
VALUE="org.jboss.minerva.xa.XADataSourceImpl">
</MLET>

[jboss.jcml]
<mbean name="DefaultDomain:service=XADataSource,name="ejbPool">
        <attribute name="URL">jdbc:postgresql:perctest</attribute>
        <attribute name="JDBCUser">me</attribute>
        <attribute name="Password">mypassword</attribute>
</mbean>

Beginning with this, JBoss starts fine and the database connection is
started
without a hitch.  If I then stop jBoss and start again, then it states that
the "URL Cannot be NULL".

Looking at jboss.jcml after the first start shows that my mbean entry has
been filled out with default values from the datasource, but has left out
the URL entry.  Adding the URL at this point has no effect.  I have to
delete
the default values and go back to the above.  The default values correctly
contain my username and password, just not the URL.

Seems like a bug that the URL is not added to the default values when jboss
rewrites jboss.jcml.

Maybe I'm doing something wrong.  This is all very confusing.

Should I be setting up jboss.conf differently?

Jeff Mc.


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to