I believe you want to do what I described in my option B of the Jun 07 post. Just update
the configuration file that points JMS to DefaultDS to use the data source your
application is using. It will create the schema it needs. This integrates the Timer and
application DB actions into a single resource.
In ejb-deployer.xml
| <mbean code="org.jboss.ejb.txtimer.DatabasePersistencePolicy"
name="jboss.ejb:service=EJBTimerService,persistencePolicy=database">
| <!-- DataSourceBinding ObjectName -->
| <!-- jcstaff:if DB to support EJBs is non-XA, must use EJB's DS for Timers
| <depends
optional-attribute-name="DataSource">jboss.jca:service=DataSourceBinding,name=DefaultDS</depends>
| -->
| <depends
optional-attribute-name="DataSource">jboss.jca:service=DataSourceBinding,name=myDS</depends>
| <!-- The plugin that handles database persistence -->
| <attribute
name="DatabasePersistencePlugin">org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin</attribute>
| <!-- The timers table name -->
| <attribute name="TimersTable">TIMERS</attribute>
| </mbean>
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078973#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...