[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Getting Exception for Derby Data Source

andydale do-not-reply at jboss.com
Mon Jan 8 07:17:18 EST 2007


Hi,

If you want to use Derby as the default DS you will need to do some more config (i have done this for EJBTimerService and for JMS/MDB)

For EJBTimerService, you will need to edit the ejb-timer-service.xml file located in the deploy directory and change the following line
<depends optional-attribute-name="DataSource">jboss.jca:service=DataSourceBinding,name=DefaultDS</depends>
btw, you will only need to do this if your Derby datasource is called something else other than DefaultDS, but seems as you get the error i am assuming yourts is not called DefaultDS.

For the JMS/MDB i would suggest copying the "derby-jdbc2-service.xml" from $JBOSS_HOME/doc/examples/jms/ into deploy/jms/ and edit the datsource name as needed.  Remove the hsqldb-jdbc2-service.xml and rename hsqldb-jdbc-state-service.xml to derby-jdbc-state-service.xml, and edit the datasource name if needed.

Cheers,

Andy 




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998963#3998963

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998963



More information about the jboss-user mailing list