So, all our ticketRegistry.xml has in it is below.  Should we just comment out 
everything under <!-- Quartz -->?

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:p="http://www.springframework.org/schema/p";
       xmlns:tx="http://www.springframework.org/schema/tx";
       xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.springframework.org/schema/tx 
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd";>
       
    <!-- Ticket Registry -->
    <bean id="ticketRegistry" 
class="org.jasig.cas.ticket.registry.JpaTicketRegistry">
        <constructor-arg index="0" ref="entityManagerFactory" />
    </bean>
    
        <bean id="entityManagerFactory" 
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
                <property name="dataSource" ref="dataSource"/>
                <property name="jpaVendorAdapter">
                        <bean 
class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
                                <property name="generateDdl" value="true"/>
                                <property name="showSql" value="false" />
                        </bean>
                </property>
                <property name="jpaProperties">
                        <props>
                                <prop 
key="hibernate.dialect">org.hibernate.dialect.DB2Dialect</prop>
                                <prop key="hibernate.hbm2ddl.auto">update</prop>
                        </props>
                </property>
        </bean>

        <bean id="transactionManager" 
class="org.springframework.orm.jpa.JpaTransactionManager"
                p:entityManagerFactory-ref="entityManagerFactory" />

        <tx:annotation-driven transaction-manager="transactionManager"/>

        <bean
                id="dataSource"
                class="com.mchange.v2.c3p0.ComboPooledDataSource"
                p:driverClass="${database.driverClass}"
                p:jdbcUrl="${database.url}"
                p:user="${database.user}"
                p:password="${database.password}"
                p:initialPoolSize="${database.pool.minSize}"
                p:minPoolSize="${database.pool.minSize}"
                p:maxPoolSize="${database.pool.maxSize}"
                p:maxIdleTimeExcessConnections="${database.pool.maxIdleTime}"
                p:checkoutTimeout="${database.pool.maxWait}"
                p:acquireIncrement="${database.pool.acquireIncrement}"
                p:acquireRetryAttempts="${database.pool.acquireRetryAttempts}"
                p:acquireRetryDelay="${database.pool.acquireRetryDelay}"
                
p:idleConnectionTestPeriod="${database.pool.idleConnectionTestPeriod}"
                p:preferredTestQuery="${database.pool.connectionHealthQuery}"
        />
  
        <!--Quartz -->
        <!-- TICKET REGISTRY CLEANER -->
        <bean id="ticketRegistryCleaner" 
class="org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner"
                p:ticketRegistry-ref="ticketRegistry" />
        
        <bean id="jobDetailTicketRegistryCleaner" 
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"
                p:targetObject-ref="ticketRegistryCleaner"
                p:targetMethod="clean" />
        
        <bean id="triggerJobDetailTicketRegistryCleaner" 
class="org.springframework.scheduling.quartz.SimpleTriggerBean"
                p:jobDetail-ref="jobDetailTicketRegistryCleaner"
                p:startDelay="20000"
                p:repeatInterval="5000000" />

        <bean id="scheduler" 
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
                <property name="triggers">
                        <list>
                                <ref
                                        
local="triggerJobDetailTicketRegistryCleaner" />
                        </list>
                </property>
        </bean>
</beans>

Thanks.

-----Original Message-----
From: Marvin Addison [mailto:[email protected]] 
Sent: Tuesday, April 22, 2014 9:16 AM
To: [email protected]
Subject: Re: [cas-user] TGT table not getting cleaned up

> How would I go about removing the Java/Quartz job?

Please review the first Spring configuration example on the following page:

https://wiki.jasig.org/display/CASUM/JpaTicketRegistry

The comments in the sample are fairly detailed and the cleaner job is fairly 
obvious.

M

--
You are currently subscribed to [email protected] as: 
[email protected] To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to