With this exact jbosscmp-jdbc.xml file 

<?xml version="1.0" encoding="UTF-8"?>
<jbosscmp-jdbc>

   <defaults>
      <datasource>java:/MyDS</datasource>
      <debug>true</debug>
      <create-table>true</create-table>
      <remove-table>true</remove-table>
      <tuned-updates>true</tuned-updates>
      <read-only>false</read-only>
      <time-out>300</time-out>
      <select-for-update>false</select-for-update>
      <pk-constraint>true</pk-constraint>
      <relation-mapping-style>foreign-key</relation-mapping-style>
   </defaults>
</jbosscmp-jdbc>

I get the following log messages:

[2001-11-20 16:17:22,229,CMP,DEBUG] Loading standardjbosscmp-jdbc.xml :
file:/ho
me/dain/work/jboss/jboss-all/build/output/jboss-3.0.0alpha/conf/default/stan
dard
jbosscmp-jdbc.xml
[2001-11-20 16:17:22,418,Default,INFO] Entity = A_EJB java:/DefaultDS null
[2001-11-20 16:17:22,437,CMP,DEBUG]
jar:file:/home/dain/work/jboss/jboss-all/bui
ld/output/jboss-3.0.0alpha/deploy/Default/relationship.ear/ejb1002.jar!/META
-INF
/jbosscmp-jdbc.xml found. Overriding defaults
[2001-11-20 16:17:22,452,Default,INFO] Entity = A_EJB java:/MyDS
java:/DefaultDS

Notice that the datasource name changes correctly.

Try my exact xml. If it does not work, try getting the current source.  If
that does not work, check your jar file.

-dain

> -----Original Message-----
> From: Hunter Hillegas [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 20, 2001 3:59 PM
> To: Torsten Schlumm; JBoss Dev
> Subject: Re: [JBoss-dev] 2.0 jar Really Likes DefaultDS?
> 
> 
> Sorta... I can see that the datasource now starts properly.
> 
> Still, my jar is trying to use DefaultDS instead of the 
> 'Groundswell' ds I
> defined...
> 
> > From: Torsten Schlumm <[EMAIL PROTECTED]>
> > Date: Tue, 20 Nov 2001 21:49:31 +0000 (GMT)
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-dev] 2.0 jar Really Likes DefaultDS?
> > 
> > 
> > David,
> > 
> > updating wasn't the problem but the ..-service.xml
> > I simply didn't see one line
> > 
> > <mbean-ref>JBOSS-SYSTEM:service=Hypersonic</mbean-ref>
> > 
> > which I forgot to delete (I used
> > thehsqldb-default-service.xml as a template).
> > 
> > Sorry, it was completely my fault. Thanks anyway.
> > 
> > Cheers
> > Torsten
> > 
> > PS: does that help you, Hunter, in any way??
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Everything you'll ever need on one web page from News and 
> Sport to Email and
> > Music Charts
> > http://uk.my.yahoo.com
> 
> 
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
> 

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to