This content has been marked as final.
Show 1 reply
-
1. Re: How to configure Quartz scheduler in JBoss AS 6.0?
andrey.vorobiev Aug 9, 2011 3:04 PM (in response to andrey.vorobiev)As for me I solved this problem in the following way:
1. Created custom service inside ear with dependency on quartz-service.
2. Restricted scheduler autostart: <attribute name="StartScheduler">false</attribute> inside quartz-service.xml
3. And now I start scheduler manually during my custom service statup.
But one qustion still remains:
My quartz job implementaion class resides inside my.ear deployment. As far I understand this class isn't visible from quartz scheduler classloader. So the qustion is about how can I make it visible for quarts service?
My current jboss-classloading configuration is:
my.ear/META-INF/jboss-classloading.xml
<?xml version="1.0" encoding="UTF-8"?> <classloading xmlns="urn:jboss:classloading:1.0" domain="my.ear" parent-domain="DefaultDomain" export-all="NON_EMPTY" import-all="true" parent-first="true"> </classloading>
quartz-service.sar/META-INF/jboss-classloading.xml
<?xml version="1.0" encoding="UTF-8"?> <classloading xmlns="urn:jboss:classloading:1.0" domain="quartz-service" parent-domain="DefaultDomain" export-all="NON_EMPTY" import-all="true" parent-first="true"> </classloading>