Announcement Announcement Module
Collapse
No announcement yet.
JobDetailBean and Managers Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JobDetailBean and Managers

    Hi,

    Simple question how can i pass managers to quartz job like for controller ?

    I try this code but doesn't work :

    Code:
    	<bean name="sigTraitement" class="org.springframework.scheduling.quartz.JobDetailBean">
    		<property name="jobClass">
    			<value>org.......MonTraitement</value>
    		</property>
    		<property name="jobDataAsMap">
    			<map>
    				<entry key="authentificationManager"><value><ref bean="authentificationManager"/></value></entry>
    				<entry key="entrepriseManager"><value><ref bean="entrepriseManager"/></value></entry>
    				<entry key="localisationManager"><value><ref bean="localisationManager"/></value></entry>
    			</map>
    		</property>
    	</bean>
    Thanks,

    Fabien.

  • #2
    Fabien,

    When using <ref ..> in your configuration, do not use <value>:
    Code:
       <bean name="sigTraitement" class="org.springframework.scheduling.quartz.JobDetailBean"> 
          <property name="jobClass"> 
             <value>org.......MonTraitement</value> 
          </property> 
          <property name="jobDataAsMap"> 
             <map> 
                <entry key="authentificationManager"><ref bean="authentificationManager"/></entry> 
                <entry key="entrepriseManager"><ref bean="entrepriseManager"/></entry> 
                <entry key="localisationManager"><ref bean="localisationManager"/></entry> 
             </map> 
          </property> 
       </bean>
    <value> désactive l'effet de <ref ...>

    HTH

    Comment

    Working...
    X