Hi

I have committed a fix. So when a new 2.0-SNAPSHOT is build and
deployed on the maven repo, could you try it out?


On Tue, Mar 24, 2009 at 8:12 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:
> Hi
>
> I have had a quick look and it looks like a bug in Camel. I have
> created a ticket for it
> https://issues.apache.org/activemq/browse/CAMEL-1480
>
> Not many uses the old 1.0.2 JMS API hence not discovered before.
>
> If WebSphereMQ 5.3 support the new 1.1 JMS API then the MQ client
> .jars you have on your classpath must also be JMS 1.1 ready.
>
> But I will get a fix for the old 1.0.2 API. Then you can test it using
> a 2.0-SNAPSHOT version.
> See the Apache Camel downloads page for how to setup maven to look in
> the Apache SNAPSHOT repo.
>
>
>
>
> On Mon, Mar 23, 2009 at 7:56 PM, funkychap <funkycha...@hotmail.com> wrote:
>>
>>
>> Hi,
>>
>> I only tried with camel 2. If you want me to try with lower versions, i
>> can.Let me know.
>>
>> Thanks,
>>
>> Claus Ibsen-2 wrote:
>>>
>>> Hi
>>>
>>> The best solution would be if MQ can use JMS 1.1 api:
>>> You might need to setup the JMS connection factory in MQ to be JMS 1.1 as
>>> well.
>>> There might be some option in MQ somewhere to configure this.
>>>
>>>
>>> Did it work with Camel 1.x or have you only tried 2.0m1?
>>>
>>> I will look into this in the morning when I am at work again.
>>> Maybe there is something we can do in Camel to support good old IBM :)
>>>
>>>
>>>
>>> On Mon, Mar 23, 2009 at 7:33 PM, funkychap <funkycha...@hotmail.com>
>>> wrote:
>>>>
>>>>
>>>> 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.
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> 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-tp22665483p22666810.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/
>



-- 
Claus Ibsen
Apache Camel Committer

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

Reply via email to