I am using the following for me JobDetail:

<bean class="org.quartz.JobDetail">
  <property name="name" value="My Example Job"/>
  <property name="group" value="ServiceMix"/>
  <property name="jobDataMap">
    <bean class="org.quartz.JobDataMap">
      <constructor-arg>
        <map>
          <entry key="destinationName">
            <value>fooDest</value>
           </entry>       
          </map>
         </constructor-arg>
       </bean>
      </property>
     </bean>

According to the spring docs I found, I should not have to use a nested bean tag with the jobDataMap and a constructor arg with a map.  It says I can just use the map tag as the argument for jobDataMap, but I get a class mismatch exception.

It is probably a Spring specific question, but only noticed it when trying to get data in my map for ServiceMix.

Birch

Reply via email to