[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Quartz dataSource usage issue  XML
Forum Index -> Quartz
Author Message
ajay4b

journeyman

Joined: 03/02/2010 17:22:33
Messages: 16
Offline

I am getting the following error in my application. Apparently its becuase QuartzOraclePool went out of resources.

I am using JobStoreCMT , with 'quartzDataSource' and 'quartzNonManagedDataSoruce'

my question is why org.quartz.impl.jdbcjobstore.JobStoreCMT.getNonManagedTXConnection() is using 'quartzDataSoruce' instead of 'quartzNonManagedDataSoruce'

No resources currently available in pool "quartzDataSource" to allocate to applications, please increase the size of the pool and retry..
org.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'springNonTxDataSource.dev-scheduler':
weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException:
No resources currently available in pool QuartzOraclePool to allocate to applications,
please increase the size of the pool and retry..
[See nested exception: weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool ILOraclePool to allocate to applications, please increase the size of the pool and retry..]
at org.quartz.impl.jdbcjobstore.JobStoreCMT.getNonManagedTXConnection(JobStoreCMT.java:167)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.doCheckin(JobStoreSupport.java:3167)
at org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3811)
at org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.run(JobStoreSupport.java:3847)
jhouse

consul

Joined: 11/06/2009 15:29:56
Messages: 466
Offline

can you post your configuration (quartz.properties)?
ajay4b

journeyman

Joined: 03/02/2010 17:22:33
Messages: 16
Offline

Hi James,

following are the properties I am configuring through Spring SchedulerFactoryBean. Just to clarify, I am not concerned about the ResourceLimitException, my question is why it is using XA quartzDataSource while it should be using quartzNonManagedDataSoruce().
Thanks for your response in advance.

<bean id="schedulerFactoryBean" class="org.springframework.scheduling.quartz.SchedulerFactoryBean" lazy-init="true">
<property name="autoStartup" value="${scheduler.autoStartup}" /> <!-- true -->
<property name="waitForJobsToCompleteOnShutdown" value="${scheduler.waitForJobsToCompleteOnShutdown}" /> <!-- true -->
<property name="schedulerName" value="${scheduler.name}" /> <!-- dev-scheduler-->
<property name="startupDelay" value="${scheduler.startupDelay}" /> <!-- 0 secs -->
<!-- Spring tx and ds configuration -->
<property name="dataSource">
<ref bean="quartzDataSource"/>
</property>
<property name="transactionManager">
<ref bean="transactionManager"/>
</property>
<property name="quartzProperties">
<props>
<prop key="org.quartz.scheduler.instanceId">AUTO</prop>
<prop key="org.quartz.threadPool.class">org.quartz.simpl.SimpleThreadPool</prop>
<prop key="org.quartz.threadPool.threadCount">${scheduler.threadCount}</prop> <!-- 5 -->
<prop key="org.quartz.threadPool.threadPriority">5</prop>
<prop key="org.quartz.jobStore.isClustered">${scheduler.isClustered}</prop> <!-- true -->
<prop key="org.quartz.jobStore.misfireThreshold">${scheduler.misfireThreshold}</prop><!-- OK -->

<prop key="org.quartz.jobStore.class">org.quartz.impl.jdbcjobstore.JobStoreCMT</prop>
<!-- WebLogicOracleDelegate handles Blobs correctly when Oracle is being used from within of Weblogic -->
<prop key="org.quartz.jobStore.driverDelegateClass">org.quartz.impl.jdbcjobstore.oracle.weblogic.WebLogicOracleDelegate</prop>
<prop key="org.quartz.jobStore.tablePrefix">QRTZ_</prop>

<prop key="org.quartz.jobStore.nonManagedTXDataSource">quartzNonManagedDataSoruce</prop>

</props>
</property>
</bean>
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team