[jboss-user] [EJB 3.0] - Re: Create timer -
jcstaff
do-not-reply at jboss.com
Tue Aug 28 21:25:30 EDT 2007
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#4078973
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078973
More information about the jboss-user
mailing list