Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Quartz on JBoss  RSS feed

 
Jeff Stelling
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to use a Message Driven Bean fired by the quartz scheduler.

I have used this annotation on the message driven bean.

@MessageDriven(
activationConfig = {
@ActivationConfigProperty( propertyName = "cronTrigger",
propertyValue = "0 30 15 * * ?"
)
}
)
@ResourceAdapter("quartz-ra.rar")
@SecurityDomain(SecurityConsts.DOMAIN_NAME)

Can I configure this to run from properties set in a config file.

I am using JBoss 5.1.0

Thanks.


 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I configure this to run from properties set in a config file.


What kind of properties? The cron schedule? You can set those activation properties in the ejb-jar.xml. Take a look at the ejb-jar 3.0 xsd which has the details on how to set this. Feel free to ask related questions, if you have any.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!