<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Quartz 2.0 bulk scheduleJobs"]]></title>
		<link>http://forums.terracotta.org/forums/posts/list/17.page</link>
		<description><![CDATA[Latest messages posted in the topic "Quartz 2.0 bulk scheduleJobs"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Quartz 2.0 bulk scheduleJobs</title>
				<description><![CDATA[ Hi all,


I have been testing the new release 2.0 adding a bulk of jobs but I am getting the following error.

Exception in thread "main" org.quartz.JobPersistenceException: The job (null) referenced by the trigger does not exist.

Basically what I am doing is:

 Map<JobDetail, List<Trigger>> triggersAndJobs;
  triggersAndJobs = new HashMap<JobDetail, List<Trigger>>();

 for (int count = 1; count <= _numberOfJobs; count++) {
       JobDetail job =   newJob(SimpleJob_1.class).withDescription("holaJob").withIdentity("job" + count, "group_1").requestRecovery() // ask scheduler to re-execute this job if it was in progress when the scheduler went down...
                    .build();

   //SimpleTrigger trigger = (SimpleTrigger)  newTrigger().withDescription("holatriger").withIdentity("trigger_" + count, "group1").startAt(startTime).build();

 List<Trigger> list = new ArrayList();
            list.add( trigger);

   triggersAndJobs.put(job, list);

}
   sched.scheduleJobs(triggersAndJobs, false);


What am I doing wrong in the above example.

Do you have any example of bulk of jobs?


Any help will be much appreciated.

Thank you.

Regards]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/4776.page#24326</guid>
				<link>http://forums.terracotta.org/forums/posts/list/4776.page#24326</link>
				<pubDate><![CDATA[Mon, 10 Jan 2011 09:17:56]]> GMT</pubDate>
				<author><![CDATA[ Dckc]]></author>
			</item>
			<item>
				<title>Re:Quartz 2.0 bulk scheduleJobs</title>
				<description><![CDATA[ Is it "group1" or "group_1?"
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/4776.page#24335</guid>
				<link>http://forums.terracotta.org/forums/posts/list/4776.page#24335</link>
				<pubDate><![CDATA[Mon, 10 Jan 2011 15:31:29]]> GMT</pubDate>
				<author><![CDATA[ gkeim]]></author>
			</item>
			<item>
				<title>Re:Quartz 2.0 bulk scheduleJobs</title>
				<description><![CDATA[ Thank for your reply.


I found the error it was the group and more importantly the method   ".forJob(job)"

 SimpleTrigger trigger = (SimpleTrigger) newTrigger()
                    .withDescription("holatriger")
                    .withIdentity("trigger_" + count, "group_1")
                   <b> .forJob(job)</b>
                    .startAt(startTime)
                    .build();

I find it hard to test the new Quartz version since there is no an API description and not enough examples.

It will be great to have an API or anything that help.

Thank you.

Regards,

Daniel A.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/4776.page#24345</guid>
				<link>http://forums.terracotta.org/forums/posts/list/4776.page#24345</link>
				<pubDate><![CDATA[Tue, 11 Jan 2011 00:37:57]]> GMT</pubDate>
				<author><![CDATA[ Dckc]]></author>
			</item>
			<item>
				<title>Re:Quartz 2.0 bulk scheduleJobs</title>
				<description><![CDATA[ The docs are Definitely something we are working on. Just a heads up that all the samples in the kit have been updated and may be helpful to you in the meantime.

Cheers,
Steve]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/4776.page#24353</guid>
				<link>http://forums.terracotta.org/forums/posts/list/4776.page#24353</link>
				<pubDate><![CDATA[Tue, 11 Jan 2011 07:28:54]]> GMT</pubDate>
				<author><![CDATA[ steve]]></author>
			</item>
			<item>
				<title>Re:Quartz 2.0 bulk scheduleJobs</title>
				<description><![CDATA[ I've created the following JIRA ticket to track this issue:

https://jira.terracotta.org/jira/browse/QTZ-116
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/4776.page#24385</guid>
				<link>http://forums.terracotta.org/forums/posts/list/4776.page#24385</link>
				<pubDate><![CDATA[Wed, 12 Jan 2011 15:09:19]]> GMT</pubDate>
				<author><![CDATA[ gkeim]]></author>
			</item>
	</channel>
</rss>