Topic
  • No replies
SEFUVAN
SEFUVAN
1 Post

Pinned topic Spring-jms - JNDI lookpup for IBM activationSpec is not working

‏2013-05-02T06:36:09Z |

 

Server : WPS7

 

Code: [spring-config.xml]

 

<bean id="messageListener" class="com.mot.vcms.failurereports.listener.JMSEmitterListener">
</bean>
<bean id="was-resourceAdapter" class="org.springframework.jca.support.ResourceAdapterFactoryBean">
    <property name="resourceAdapter">
       <bean class="com.ibm.ws.sib.api.jmsra.impl.JmsJcaResourceAdapterImpl"/>
     </property>
    <property name="workManager">
       <bean class="org.springframework.jca.work.SimpleTaskWorkManager">
        <property name="asyncTaskExecutor">
          <bean class="org.springframework.scheduling.commonj.WorkManagerTaskExecutor">
        <property name="workManagerName" value="wm/NASPolling" />
      </bean>
    </property>
   </bean>
  </property>
</bean>
<jee:jndi-lookup id="activationSpec1" jndi-name="jms/cei/EAMSQueueActivationSpec" resource-ref="true" /> 
<bean id="eventConsumer" class="org.springframework.jms.listener.endpoint.JmsMessageEndpointManager">
<property name="resourceAdapter" ref="was-resourceAdapter" />
<property name="activationSpec"  ref="activationSpec1" />
<property name="messageListener" ref="messageListener"/>
</bean>

 

web.xml:

 

<resource-ref>        
<description>Activation Spec</description>
<res-ref-name>jms/cei/EAMSQueueActivationSpec</res-ref-name>
<res-type>com.ibm.ws.sib.api.jmsra.impl.JmsJcaActivationSpecImpl</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>

 

 

 

 

Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.ibm.ejs.j2c.ActivationSpecBindingInfo' to required type 'javax.resource.spi.ActivationSpec' for property 'activationSpec'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.ibm.ejs.j2c.ActivationSpecBindingInfo] to required type [javax.resource.spi.ActivationSpec] for property 'activationSpec': no matching editors or conversion strategy found
 

 

Can someone please help resolving this..