<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Quartz Scheduling and Seam (part 1)</title>
	<atom:link href="http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html</link>
	<description>Java, ATG, Seam, and related Technologies</description>
	<lastBuildDate>Wed, 10 Mar 2010 20:48:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Wayne Ng</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html/comment-page-1#comment-47741</link>
		<dc:creator>Wayne Ng</dc:creator>
		<pubDate>Fri, 30 Oct 2009 16:53:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html#comment-47741</guid>
		<description>Hi Devon,

In case you are still stuck at this error: 
org.quartz.JobPersistenceException: Couldn&#039;t recover jobs: Couldn&#039;t store trigger: No ClassLoaders found for: org.jboss.seam.async.AsynchronousInvocation

I managed to solve it by looking at this link you posted eariler:
http://www.jboss.com/index.html?module=bb&amp;op=viewtopic&amp;t=115884

1. Ensure that quartz-1.6.5.jar (yes, I am using this version) is copied to the EarContent directory of the ear project.

2. Next ensure that we add the following to application.xml (yes, it has to be a JAVA module):


    ...
    
        quartz-1.6.5.jar
    
    ...


3. Ensure that quartz-1.6.5.jar is included within your jboss instance.
Example: /usr/local/jboss/server/default/lib &lt;- here

No more pain, hopefully.</description>
		<content:encoded><![CDATA[<p>Hi Devon,</p>
<p>In case you are still stuck at this error:<br />
org.quartz.JobPersistenceException: Couldn&#8217;t recover jobs: Couldn&#8217;t store trigger: No ClassLoaders found for: org.jboss.seam.async.AsynchronousInvocation</p>
<p>I managed to solve it by looking at this link you posted eariler:<br />
<a href="http://www.jboss.com/index.html?module=bb&amp;op=viewtopic&amp;t=115884" rel="nofollow">http://www.jboss.com/index.html?module=bb&amp;op=viewtopic&amp;t=115884</a></p>
<p>1. Ensure that quartz-1.6.5.jar (yes, I am using this version) is copied to the EarContent directory of the ear project.</p>
<p>2. Next ensure that we add the following to application.xml (yes, it has to be a JAVA module):</p>
<p>    &#8230;</p>
<p>        quartz-1.6.5.jar</p>
<p>    &#8230;</p>
<p>3. Ensure that quartz-1.6.5.jar is included within your jboss instance.<br />
Example: /usr/local/jboss/server/default/lib &lt;- here</p>
<p>No more pain, hopefully.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devon</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html/comment-page-1#comment-43959</link>
		<dc:creator>Devon</dc:creator>
		<pubDate>Thu, 16 Jul 2009 18:46:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html#comment-43959</guid>
		<description>Very good to know!!!  I haven&#039;t tried since my attempt when I wrote this post.  If I can get my timers using quartz instead of EJB, I should be able to move some apps from ears to wars, which would be nice.  Little lighter weight.

Thanks!</description>
		<content:encoded><![CDATA[<p>Very good to know!!!  I haven&#8217;t tried since my attempt when I wrote this post.  If I can get my timers using quartz instead of EJB, I should be able to move some apps from ears to wars, which would be nice.  Little lighter weight.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Goodrich</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html/comment-page-1#comment-43943</link>
		<dc:creator>Ian Goodrich</dc:creator>
		<pubDate>Thu, 16 Jul 2009 08:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html#comment-43943</guid>
		<description>This thread is six months old, but I came across it, so probably others will too.
I appear to have this working and persistent.
I&#039;m using Jboss 4.2.3, Seam 2.1.2, and the quartz that came with Seam (I think 1.6.0) -- I&#039;ll try upgrading to 1.6.5 shortly.
I had to also add the commons-dbcp-1.3.jar
I created the quartz tables in my database as per the 1.6.5 distro doc/dbTables/mysql innodb script
My seam.quartz.properties looks like this:

# begin
org.quartz.scheduler.instanceName = QuartzScheduler
org.quartz.scheduler.instanceId = 1
org.quartz.scheduler.rmi.export = false
org.quartz.scheduler.rmi.proxy = false

org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 5

org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate
org.quartz.jobStore.dataSource = @db_name@_ds
org.quartz.jobStore.tablePrefix = QRTZ_

org.quartz.dataSource.@db_name@_ds.driver = com.mysql.jdbc.Driver
org.quartz.dataSource.@db_name@_ds.URL = jdbc:mysql://localhost:3306/@db_name@
org.quartz.dataSource.@db_name@_ds.user = @db_user@
org.quartz.dataSource.@db_name@_ds.password = @db_pass@
org.quartz.dataSource.@db_name@_ds.maxConnections = 10
#end

Of course the @db_*@ stuff is ant-replaced which you can do or you can stick you&#039;re own values in.  Obviously, I&#039;m using mysql.  I did notice that the original poster was using postgres -- there&#039;s a different driver (obviously) and less obviously a different driverDelegateClass specifically for postgres in the quartz.jar in the org.quartz.impl.jdbcjobstore package.  But it looks like the original poster already caught this.

The only real trouble I had was that the class that does the work could not be the class called from the UI.  I have no idea why, probably something about scope and/or transactions.  No error messages on this though, just a one-time fire and then silence.

I say it is persistent because i was able to Ctrl-C my jboss and restart it and then the job picked up where it left off and ran to completion.  My class doing the work as application scope and created @Startup which may have something to do with it&#039;s auto-starting -- not sure.  I have also checked the db manually and saw stuff persisted.  I have not tried serializing the QuartzTriggerHandler and cancelling/pausing/etc.  Actually, that was the other little snap I had:  I didn&#039;t understand the return null was going to be intercepted by Seam (although it clearly states this now in the seam docs) and replaced with the real live QuartzTriggerHandler.

Anyway, pretty cool now that it&#039;s working.</description>
		<content:encoded><![CDATA[<p>This thread is six months old, but I came across it, so probably others will too.<br />
I appear to have this working and persistent.<br />
I&#8217;m using Jboss 4.2.3, Seam 2.1.2, and the quartz that came with Seam (I think 1.6.0) &#8212; I&#8217;ll try upgrading to 1.6.5 shortly.<br />
I had to also add the commons-dbcp-1.3.jar<br />
I created the quartz tables in my database as per the 1.6.5 distro doc/dbTables/mysql innodb script<br />
My seam.quartz.properties looks like this:</p>
<p># begin<br />
org.quartz.scheduler.instanceName = QuartzScheduler<br />
org.quartz.scheduler.instanceId = 1<br />
org.quartz.scheduler.rmi.export = false<br />
org.quartz.scheduler.rmi.proxy = false</p>
<p>org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool<br />
org.quartz.threadPool.threadCount = 5</p>
<p>org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX<br />
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate<br />
org.quartz.jobStore.dataSource = @db_name@_ds<br />
org.quartz.jobStore.tablePrefix = QRTZ_</p>
<p>org.quartz.dataSource.@db_name@_ds.driver = com.mysql.jdbc.Driver<br />
org.quartz.dataSource.@db_name@_ds.URL = jdbc:mysql://localhost:3306/@db_name@<br />
org.quartz.dataSource.@db_name@_ds.user = @db_user@<br />
org.quartz.dataSource.@db_name@_ds.password = @db_pass@<br />
org.quartz.dataSource.@db_name@_ds.maxConnections = 10<br />
#end</p>
<p>Of course the @db_*@ stuff is ant-replaced which you can do or you can stick you&#8217;re own values in.  Obviously, I&#8217;m using mysql.  I did notice that the original poster was using postgres &#8212; there&#8217;s a different driver (obviously) and less obviously a different driverDelegateClass specifically for postgres in the quartz.jar in the org.quartz.impl.jdbcjobstore package.  But it looks like the original poster already caught this.</p>
<p>The only real trouble I had was that the class that does the work could not be the class called from the UI.  I have no idea why, probably something about scope and/or transactions.  No error messages on this though, just a one-time fire and then silence.</p>
<p>I say it is persistent because i was able to Ctrl-C my jboss and restart it and then the job picked up where it left off and ran to completion.  My class doing the work as application scope and created @Startup which may have something to do with it&#8217;s auto-starting &#8212; not sure.  I have also checked the db manually and saw stuff persisted.  I have not tried serializing the QuartzTriggerHandler and cancelling/pausing/etc.  Actually, that was the other little snap I had:  I didn&#8217;t understand the return null was going to be intercepted by Seam (although it clearly states this now in the seam docs) and replaced with the real live QuartzTriggerHandler.</p>
<p>Anyway, pretty cool now that it&#8217;s working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vasireddy</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html/comment-page-1#comment-13366</link>
		<dc:creator>vasireddy</dc:creator>
		<pubDate>Fri, 07 Nov 2008 03:39:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html#comment-13366</guid>
		<description>Hi all!

this information is useful, but I have some basic doubts to use the Quartz job scheduling in Seams. Those are,
Where we have to write that method (in Action class, or in entity, or in structure class)
Where we have to call that method (in Action class, or in jsp page)
Where we have to receive that QuartzTriggerHandle
How to use that handle methods resume, pause, cancel( ) and where?
Do we need some more configuration in seam environment to use Quartz?( I have set up quartz in my components.xml and application.xml and in lib folder)

Thank you in advance..</description>
		<content:encoded><![CDATA[<p>Hi all!</p>
<p>this information is useful, but I have some basic doubts to use the Quartz job scheduling in Seams. Those are,<br />
Where we have to write that method (in Action class, or in entity, or in structure class)<br />
Where we have to call that method (in Action class, or in jsp page)<br />
Where we have to receive that QuartzTriggerHandle<br />
How to use that handle methods resume, pause, cancel( ) and where?<br />
Do we need some more configuration in seam environment to use Quartz?( I have set up quartz in my components.xml and application.xml and in lib folder)</p>
<p>Thank you in advance..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devon</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html/comment-page-1#comment-5235</link>
		<dc:creator>Devon</dc:creator>
		<pubDate>Wed, 23 Apr 2008 15:54:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html#comment-5235</guid>
		<description>Interesting!  Thanks for posting your progress!</description>
		<content:encoded><![CDATA[<p>Interesting!  Thanks for posting your progress!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tgodse</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html/comment-page-1#comment-5234</link>
		<dc:creator>tgodse</dc:creator>
		<pubDate>Wed, 23 Apr 2008 15:45:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html#comment-5234</guid>
		<description>Thanks a lot this blog was extremely helpful. The problem was solved after including file into the EAR/lib directly. Now working on persisting the QuartzTriggerHandle. Earlier I was trying to add quartz.jar into app-inf lib where my other jars are but had to create a lib folder with in EAR to make it work. So far working out good. Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks a lot this blog was extremely helpful. The problem was solved after including file into the EAR/lib directly. Now working on persisting the QuartzTriggerHandle. Earlier I was trying to add quartz.jar into app-inf lib where my other jars are but had to create a lib folder with in EAR to make it work. So far working out good. Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tgodse</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html/comment-page-1#comment-5188</link>
		<dc:creator>tgodse</dc:creator>
		<pubDate>Tue, 22 Apr 2008 00:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html#comment-5188</guid>
		<description>Hi first of all thanks a lot Devon your wiki helped a lot but I am still having the same problem that you have.
I saw Tom Goring is not getting the exception after copying quartz.jar into app-inf/lib folder, but I am still getting org.quartz.JobPersistenceException: Couldn&#039;t recover jobs: Couldn&#039;t store trigger: No ClassLoaders found for: org.jboss.seam.async.AsynchronousInvocation. Just an update at the begining I also had rollback error which was due to seam managed transaction (referring to Tom Gorings problem) which was corrected after entering following two properties in the seam-quartz.properties. 
org.quartz.jobStore.nonManagedTXDataSource
org.quartz.dataSource.nonManagedTX.jndiURL=
oh by the way datasouce is also required
Not sure still why I am getting Asynch error please post here if anybody has found any work around.</description>
		<content:encoded><![CDATA[<p>Hi first of all thanks a lot Devon your wiki helped a lot but I am still having the same problem that you have.<br />
I saw Tom Goring is not getting the exception after copying quartz.jar into app-inf/lib folder, but I am still getting org.quartz.JobPersistenceException: Couldn&#8217;t recover jobs: Couldn&#8217;t store trigger: No ClassLoaders found for: org.jboss.seam.async.AsynchronousInvocation. Just an update at the begining I also had rollback error which was due to seam managed transaction (referring to Tom Gorings problem) which was corrected after entering following two properties in the seam-quartz.properties.<br />
org.quartz.jobStore.nonManagedTXDataSource<br />
org.quartz.dataSource.nonManagedTX.jndiURL=<br />
oh by the way datasouce is also required<br />
Not sure still why I am getting Asynch error please post here if anybody has found any work around.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devon</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html/comment-page-1#comment-3956</link>
		<dc:creator>Devon</dc:creator>
		<pubDate>Fri, 15 Feb 2008 18:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html#comment-3956</guid>
		<description>I haven&#039;t gotten it working, although to be honest I&#039;ve been busy with other projects for a while.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t gotten it working, although to be honest I&#8217;ve been busy with other projects for a while.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Goring</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html/comment-page-1#comment-3951</link>
		<dc:creator>Tom Goring</dc:creator>
		<pubDate>Fri, 15 Feb 2008 08:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html#comment-3951</guid>
		<description>Hi, did you get this working? I&#039;ve got past the 

ClassLoaders found for: org.jboss.seam.async.AsynchronousInvocation 

by adding quartz jar into the EAR lib but now I&#039;m getting a rollback issue?</description>
		<content:encoded><![CDATA[<p>Hi, did you get this working? I&#8217;ve got past the </p>
<p>ClassLoaders found for: org.jboss.seam.async.AsynchronousInvocation </p>
<p>by adding quartz jar into the EAR lib but now I&#8217;m getting a rollback issue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Techieexchange</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html/comment-page-1#comment-2593</link>
		<dc:creator>Techieexchange</dc:creator>
		<pubDate>Tue, 13 Nov 2007 19:06:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/quartz-scheduling-and-seam-part-1.html#comment-2593</guid>
		<description>Hi,
 Nice info for Seam+Quartz.

I wrote a step-by-step screencast tutorial to make Seam development as RAD - Rapid Application Development with Eclipse and Tomcat, focusing on developer productivity.

http://techieexchange.wordpress.com/2007/11/11/rad-seam-development-with-eclipse-and-tomcat-step-by-step-tutorial-screencast/

I hope this tutorial will be useful for J2EE/JEE developers.


Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
 Nice info for Seam+Quartz.</p>
<p>I wrote a step-by-step screencast tutorial to make Seam development as RAD &#8211; Rapid Application Development with Eclipse and Tomcat, focusing on developer productivity.</p>
<p><a href="http://techieexchange.wordpress.com/2007/11/11/rad-seam-development-with-eclipse-and-tomcat-step-by-step-tutorial-screencast/" rel="nofollow">http://techieexchange.wordpress.com/2007/11/11/rad-seam-development-with-eclipse-and-tomcat-step-by-step-tutorial-screencast/</a></p>
<p>I hope this tutorial will be useful for J2EE/JEE developers.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
