joon
12-23-2008, 07:59 AM
Hi,
I'm trying to configure the AdoJobStore in Spring.Scheduling.Quartz.Example.2005 to persist the jobs information into the Oracle DB. Below are the configuration details I've added to the spring-objects.xml
...
<object type="Spring.Scheduling.Quartz.SchedulerFactoryObject, Spring.Scheduling.Quartz">
<property name="triggers">
<list>
<ref object="cronTrigger" />
<ref object="simpleTrigger" />
</list>
</property>
<property name="quartzProperties">
<dictionary>
<entry key="quartz.jobStore.type" value="Quartz.Impl.AdoJobStore.JobStoreTX, Quartz"/>
<entry key="quartz.jobStore.driverDelegateType" value="Quartz.Impl.AdoJobStore.StdAdoDelegate, Quartz"/>
<entry key="quartz.jobStore.tablePrefix" value="CHX_" />
<entry key="quartz.jobStore.dataSource" value="myDs"/>
<entry key="quartz.jobStore.myDs.connectionString" value="User Id=chx_owner;Password=password123;Data Source=dev612;Pooling=yes;Connection Lifetime=500;Max Pool Size=20;Min Pool Size=5;Connection Timeout=10000000;Decr Pool Size=2;Incr Pool Size=5;"/>
<entry key="quartz.jobStore.myDs.provider" value="OracleClient-20"/>
<entry key="quartz.jobStore.useProperties" value="true" />
</dictionary>
</property>
</object>
...
And the following is the exception I've encountered:
Spring.Objects.Factory.ObjectCreationException: Error creating object with name
'Spring.Scheduling.Quartz.SchedulerFactoryObject#0 ' defined in
'file [C:\devl\Spring.NET\build\VS.NET.2005\Spring.Schedu ling.Quartz.Example\Debug\spring-objects.xml] line 49' :
Initialization of object failed : JobStore type 'Quartz.Impl.AdoJobStore.JobStoreTX, Quartz' props could not be configured. --->
Quartz.SchedulerException: JobStore type 'Quartz.Impl.AdoJobStore.JobStoreTX, Quartz' props could not be configured. --->
Quartz.SchedulerConfigException: Could not parse property 'myDs.provider' into correct data type: No property 'MyDs.provider'
---> System.MemberAccessException: No property 'MyDs.provider'
at Quartz.Util.ObjectUtils.SetObjectProperties(Object obj, NameValueCollection props)
--- End of inner exception stack trace ---
May I know if someone there has done something similar and can share some sample configuration (AdoJobStore to oracle DB) pls?
Regards,
Joon
I'm trying to configure the AdoJobStore in Spring.Scheduling.Quartz.Example.2005 to persist the jobs information into the Oracle DB. Below are the configuration details I've added to the spring-objects.xml
...
<object type="Spring.Scheduling.Quartz.SchedulerFactoryObject, Spring.Scheduling.Quartz">
<property name="triggers">
<list>
<ref object="cronTrigger" />
<ref object="simpleTrigger" />
</list>
</property>
<property name="quartzProperties">
<dictionary>
<entry key="quartz.jobStore.type" value="Quartz.Impl.AdoJobStore.JobStoreTX, Quartz"/>
<entry key="quartz.jobStore.driverDelegateType" value="Quartz.Impl.AdoJobStore.StdAdoDelegate, Quartz"/>
<entry key="quartz.jobStore.tablePrefix" value="CHX_" />
<entry key="quartz.jobStore.dataSource" value="myDs"/>
<entry key="quartz.jobStore.myDs.connectionString" value="User Id=chx_owner;Password=password123;Data Source=dev612;Pooling=yes;Connection Lifetime=500;Max Pool Size=20;Min Pool Size=5;Connection Timeout=10000000;Decr Pool Size=2;Incr Pool Size=5;"/>
<entry key="quartz.jobStore.myDs.provider" value="OracleClient-20"/>
<entry key="quartz.jobStore.useProperties" value="true" />
</dictionary>
</property>
</object>
...
And the following is the exception I've encountered:
Spring.Objects.Factory.ObjectCreationException: Error creating object with name
'Spring.Scheduling.Quartz.SchedulerFactoryObject#0 ' defined in
'file [C:\devl\Spring.NET\build\VS.NET.2005\Spring.Schedu ling.Quartz.Example\Debug\spring-objects.xml] line 49' :
Initialization of object failed : JobStore type 'Quartz.Impl.AdoJobStore.JobStoreTX, Quartz' props could not be configured. --->
Quartz.SchedulerException: JobStore type 'Quartz.Impl.AdoJobStore.JobStoreTX, Quartz' props could not be configured. --->
Quartz.SchedulerConfigException: Could not parse property 'myDs.provider' into correct data type: No property 'MyDs.provider'
---> System.MemberAccessException: No property 'MyDs.provider'
at Quartz.Util.ObjectUtils.SetObjectProperties(Object obj, NameValueCollection props)
--- End of inner exception stack trace ---
May I know if someone there has done something similar and can share some sample configuration (AdoJobStore to oracle DB) pls?
Regards,
Joon