I got this when i tried it:

2009-03-23 13:31:25,636 INFO
[org.apache.camel.processor.interceptor.TraceInterceptor] -
ID-W2GZHS8301-1159-1237833080668-2-0 >>> direct:CustomerService -->
to(ibmmq://queue:My.QUEUE), Pattern:InOut, Headers:{content.type=text/xml,
SOAPAction=""}, BodyType:byte[], Body:<soap:Envelope .....</soap:Envelope>
Exception in thread "main" java.lang.AbstractMethodError:
com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;
        at
org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
        at
org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:378)
        at
org.springframework.jms.listener.AbstractJmsListeningContainer.establishSharedConnection(AbstractJmsListeningContainer.java:346)
        at
org.springframework.jms.listener.AbstractJmsListeningContainer.doStart(AbstractJmsListeningContainer.java:258)
        at
org.springframework.jms.listener.SimpleMessageListenerContainer.doStart(SimpleMessageListenerContainer.java:175)
        at
org.springframework.jms.listener.AbstractJmsListeningContainer.initialize(AbstractJmsListeningContainer.java:171)
        at
org.springframework.jms.listener.AbstractJmsListeningContainer.afterPropertiesSet(AbstractJmsListeningContainer.java:134)
        at
org.apache.camel.component.jms.requestor.Requestor.doStart(Requestor.java:205)
        at

Claus Ibsen-2 wrote:
> 
> 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/
> 
> 

-- 
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-tp22665483p22666334.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Reply via email to