Hi

Can you try with JMS 1.1?
useVersion102=false



On Mon, Mar 23, 2009 at 7:05 PM, funkychap <funkycha...@hotmail.com> wrote:
>
> HI,
>
> I am trying to run the example provided in the camel manual.
>
> "Better JMS Transport for CXF Webservice using Apache Camel".
>
> I made changes to the connection factory to point to the iBM MQ 5.3. I
> changed the wsdl to my service wsdl. When i am trying to run, i am getting
> the exception:
>
> 2009-03-23 12:18:09,322 ERROR [org.apache.camel.processor.DeadLetterChannel]
> - Failed delivery for exchangeId: ID-W2GZHS8301-4436-1237828678058-0-0. On
> delivery attempt: 5 caught: java.lang.ClassCastException:
> org.apache.camel.component.jms.JmsConfiguration$CamelJmsTeemplate102
> java.lang.ClassCastException:
> org.apache.camel.component.jms.JmsConfiguration$CamelJmsTeemplate102
>        at 
> org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:175)
>        at 
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:68)
>        at
> org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:49)
>        at
> org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:78)
>        at
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:115)
>
> Any Ideas:
>
> My client.xml is listed below:
> <bean id="ibmmq" class="org.apache.camel.component.jms.JmsComponent">
>                <property name="connectionFactory">
>                        <bean class="com.ibm.mq.jms.MQQueueConnectionFactory">
>                                <property name="transportType">
>                                        <util:constant
> static-field="com.ibm.mq.jms.JMSC.MQJMS_TP_CLIENT_MQ_TCPIP"/>
>                                </property>
>                                <property name="queueManager" 
> value="QM_w2gzhs8301"/>
>                                <property name="hostName" 
> value="XXX.XXX.XX.XX"/>
>                                <property name="port" value="1414"/>
>                        </bean>
>                </property>
>                <property name="useVersion102" value="true" />
>                <!--<property name="messageConverter" 
> ref="messageConverter102"/>
>
>        --></bean>
>
>                <bean id="messageConverter102"
> class="org.springframework.jms.support.converter.SimpleMessageConverter102"/>
>
>                <client id="CustomerService" 
> xmlns="http://cxf.apache.org/jaxws";
>                                                                         
> xmlns:enr="http://www.enrollment.com/RefreshService";
>                                                                         
> serviceName="enr:EnrollmentRefreshService"
>                                                                         
> endpointName="enr:EnrollmentRefreshService"
>                                                                         
> address="camel://direct:CustomerService"
>
> serviceClass="com.enrollment.refreshservice.EnrollmentRefreshService">
>                                                                         
> <features>
>                        <!-- Enables logging of SOAP messages. -->
>                        <logging xmlns="http://cxf.apache.org/core"; />
>                </features>
>                </client>
>
>
>
>        <camelContext id="camelContext" trace="true"
> xmlns="http://camel.apache.org/schema/spring";>
>                <route>
>                        <from uri="direct:CustomerService" />
>                        <to uri="ibmmq://queue:My.QUEUE" />
>                </route>
>        </camelContext>
> --
> View this message in context: 
> http://www.nabble.com/Apache-Camel-2.0-M1-java.lang.ClassCastException%3A-org.apache.camel.component.jms.JmsConfiguration%24CamelJmsTeemplate102-tp22665483p22665483.html
> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/

Reply via email to