views:

229

answers:

1

Ive been looking online for a while and i cant seem to find a simple solution to my problem. I have an enterprise ejb 3.0 application that deploys on weblogic 10. I have no front end just back end. I need to setup quartz/timer at startup to schedule a job via cron trigger, this job is a method invoked on one of my stateless session beans to browse a jms queue.

From all links/references on quartz and looking at ejb timer, i cant see how i can do this without having front end (web.xml) and using context listener or scheduling the job myself manually somehow.

I see in ejb 3.1 there exists an auto timer that runs from the time the bean is deployed. All you need is a @Schedule annotation on the method, how easy is that!

Can anyone explain how in my application i can setup a startup class to configure the quartz scheduler or achieve my goal?

A: 

You can trigger your events at JBoss startup by using ManagedBeans. Have to add entry of that MBean in jboss-service.xml. I have been using that to start schedular at startup.

Nayan Wadekar
Thansk for your reply Nayan, but im using weblogic.
shane lee
Nayan Wadekar