Foros del Web » Programación para mayores de 30 ;) » Java »

Spring Quartz

Estas en el tema de Spring Quartz en el foro de Java en Foros del Web. Hola tengo la siguiente configuracion para spring 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:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xmlns:flow="http://www.springframework.org/schema/webflow-config" xmlns:jms="http://www.springframework.org/schema/jms" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:lang="http://www.springframework.org/schema/lang" xmlns:osgi="http://www.springframework.org/schema/osgi" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:util="http://www.springframework.org/schema/util" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans ...
  #1 (permalink)  
Antiguo 06/12/2012, 11:25
 
Fecha de Ingreso: noviembre-2012
Mensajes: 2
Antigüedad: 11 años, 6 meses
Puntos: 0
Exclamación Spring Quartz

Hola tengo la siguiente configuracion para spring 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:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:flow="http://www.springframework.org/schema/webflow-config"
xmlns:jms="http://www.springframework.org/schema/jms"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:lang="http://www.springframework.org/schema/lang"
xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd
http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-2.5.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">

<bean class="org.springframework.beans.factory.config.Pr opertyPlaceholderConfigurer">
<property name="locations">
<value>file:/pr/iice/online/pe/web/config/valijavirtualreg.properties</value>
</property>
</bean>

<bean class="org.springframework.scheduling.quartz.Sched ulerFactoryBean">
<property name="triggers">
<list>
<ref bean="cronTablaHistorial"/>
</list>
</property>
</bean>

<bean id="cronTablaHistorial" class="org.springframework.scheduling.quartz.CronT riggerBean">
<property name="jobDetail" ref="schTaskTablaHistorial" />
<property name="cronExpression" value="${VV_CRON_RESUMEN_HISTORIAL}" />
</bean>

<bean id="schTaskTablaHistorial" class="org.springframework.scheduling.quartz.JobDe tailBean">
<property name="jobClass" value="com.bbvabancocontinental.vv.util.SchedulerT ask" />
</bean>
</beans>


donde ${VV_CRON_RESUMEN_HISTORIAL} es un valor en un properties, el cual es: 0 0 0 * * ?

Mi problema viene en que tengo casos que se ejecuta dos veces mi proceso, alguien sabe como solucionarlo?

Etiquetas: spring
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 02:45.