You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by "Sunil.2.Tiwari" <st...@TechMahindra.com> on 2009/08/01 15:09:27 UTC
RE: Synapse ESB and IBM MQ issue
Hi Asankha,
Could you please detail how can I use the latest stable build to upgrade Synapse version (Steps)?
So that I overcome MQ-JMS connection factory name/ destination queue name mismatch problem.
http://hudson.zones.apache.org/hudson/job/Synapse%20-%20Trunk/lastStableBuild/
That is the only solution I can see for this problem.
Thanks & Regards
Sunil Kumar Tiwari | Tech Mahindra Ltd.
(Office: 009120 6641 7136 Mobile: 0091 9767644210)
Email: sunil.tiwari2@techmahindra.com
________________________________
From: Asankha Perera [mailto:asankha.apache@gmail.com] On Behalf Of Asankha C. Perera
Sent: Friday, July 31, 2009 6:14 PM
To: user@synapse.apache.org; Sunil.2.Tiwari
Subject: Re: Synapse ESB and IBM MQ issue
Hi Sunil
First of all, please subscribe to the mailing list to receive our replies off the list. For this time, I have copied this reply directly to you
I am trying to evaluate Apache Synapse. Goal is to pick message from IBM-MQ queue and log it using a ESB Proxy Service.
The problem seems to be here:
2009-07-31 10:51:39,844 [localhost] [WrapperSimpleAppMain] INFO JMSListener Starting to listen on destination : MyMDBQueue of type queue for service TestMQProxy
2009-07-31 10:51:39,844 [localhost] [WrapperSimpleAppMain] INFO JMSConnectionFactory Mapped JNDI name : MyMDBQueue and JMS Destination name : queue://testqmgr/MyMDBQueue against service : TestMQProxy
2009-07-31 10:51:39,907 [localhost] [WrapperSimpleAppMain] INFO ServerManager Ready for processing
2009-07-31 10:52:02,173 [localhost] [asyncDelivery0] DEBUG JMSMessageReceiver Received JMS message to destination : null
Note that the JMS message received, cannot give out its Destination name (in the last line above) - I think its caused by MQ using a Queue name and a JNDI destination name that differs. However I think this is already fixed in the trunk, could you try with the latest snapshot build found here:
http://hudson.zones.apache.org/hudson/job/Synapse%20-%20Trunk/lastStableBuild/
<inSequence>
<property action="set" name="OUT_ONLY" value="true"/>
</inSequence>
<outSequence>
<log level="full" separator=", "/>
<send/>
</outSequence>
BTW, if you just want to dump the message, move the <log...> into the inSequence, and after that place a <drop/>. You wont need anything else there..
cheers
asankha
--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org
http://esbmagic.blogspot.com
============================================================================================================================
Disclaimer:
This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.
============================================================================================================================
RE: Apache Synapse and Oracle AQ
Posted by "Sunil.2.Tiwari" <st...@TechMahindra.com>.
Thanks a lot Hiranya for your inputs.
I am trying on this side.
Incase anybody did R&D on Synapse ESB & AQ linking, his inputs will be helpful.
Thanks & Regards
Sunil Kumar Tiwari | Tech Mahindra Ltd.
(Office: 009120 6641 7136 Mobile: 0091 9767644210)
Email: sunil.tiwari2@techmahindra.com
-----Original Message-----
From: Hiranya Jayathilaka [mailto:hiranya911@gmail.com]
Sent: Tuesday, August 11, 2009 1:53 PM
To: user@synapse.apache.org
Subject: Re: Apache Synapse and Oracle AQ
On Tue, Aug 11, 2009 at 1:44 PM, Hiranya Jayathilaka
<hi...@gmail.com>wrote:
> Hi Sunil,
>
> On Tue, Aug 11, 2009 at 11:22 AM, Sunil.2.Tiwari <
> st0031200@techmahindra.com> wrote:
>
>>
>> Hello everybody,
>>
>> Looking for linking Apache Synapse ESB & Oracle AQ (Advanced Queue).
>> Goal is to Enqueue/Dequeue messages from Oracle AQ using Synapse ESB
>>
>> Any idea how to do this?
>> May Apache Synapse ESB communicate with Oracle AQ directly? similar to IBM
>> MQ or Active MQ.
>
>
> I'm not very familiar with Oracle AQ. Does it provide any JNDI support like
> Active MQ does? In that case we'll be able to get it working with Synapse
> out of the box. See if that provides an
> javax.naming.spi.InitialContextFactory implementation.
>
A little bit of Googling around revealed a class called "
oracle.jms.AQjmsInitialContextFactory" which might be what you are looking
for.
Thanks,
Hiranya
>
> Thanks,
> Hiranya
>
>
>>
>>
>> Link, documents will be helpful.
>>
>> Thanks & Regards
>> Sunil Kumar Tiwari | Tech Mahindra Ltd.
>> (Office: 009120 6641 7136 Mobile: 0091 9767644210)
>> Email: sunil.tiwari2@techmahindra.com
>>
>>
>> ============================================================================================================================
>>
>>
>> Disclaimer:
>>
>> This message and the information contained herein is proprietary and
>> confidential and subject to the Tech Mahindra policy statement, you may
>> review the policy at <a href="http://www.techmahindra.com/Disclaimer.html
>> ">http://www.techmahindra.com/Disclaimer.html</a> externally and <a
>> href="http://tim.techmahindra.com/Disclaimer.html">
>> http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech
>> Mahindra.
>>
>>
>> ============================================================================================================================
>>
>
>
>
> --
> Hiranya Jayathilaka
> Software Engineer;
> WSO2 Inc.; http://wso2.org
> E-mail: hiranya@wso2.com; Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
>
--
Hiranya Jayathilaka
Software Engineer;
WSO2 Inc.; http://wso2.org
E-mail: hiranya@wso2.com; Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
============================================================================================================================
Disclaimer:
This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.
============================================================================================================================
Re: Apache Synapse and Oracle AQ
Posted by Hiranya Jayathilaka <hi...@gmail.com>.
On Tue, Aug 11, 2009 at 1:44 PM, Hiranya Jayathilaka
<hi...@gmail.com>wrote:
> Hi Sunil,
>
> On Tue, Aug 11, 2009 at 11:22 AM, Sunil.2.Tiwari <
> st0031200@techmahindra.com> wrote:
>
>>
>> Hello everybody,
>>
>> Looking for linking Apache Synapse ESB & Oracle AQ (Advanced Queue).
>> Goal is to Enqueue/Dequeue messages from Oracle AQ using Synapse ESB
>>
>> Any idea how to do this?
>> May Apache Synapse ESB communicate with Oracle AQ directly? similar to IBM
>> MQ or Active MQ.
>
>
> I'm not very familiar with Oracle AQ. Does it provide any JNDI support like
> Active MQ does? In that case we'll be able to get it working with Synapse
> out of the box. See if that provides an
> javax.naming.spi.InitialContextFactory implementation.
>
A little bit of Googling around revealed a class called "
oracle.jms.AQjmsInitialContextFactory" which might be what you are looking
for.
Thanks,
Hiranya
>
> Thanks,
> Hiranya
>
>
>>
>>
>> Link, documents will be helpful.
>>
>> Thanks & Regards
>> Sunil Kumar Tiwari | Tech Mahindra Ltd.
>> (Office: 009120 6641 7136 Mobile: 0091 9767644210)
>> Email: sunil.tiwari2@techmahindra.com
>>
>>
>> ============================================================================================================================
>>
>>
>> Disclaimer:
>>
>> This message and the information contained herein is proprietary and
>> confidential and subject to the Tech Mahindra policy statement, you may
>> review the policy at <a href="http://www.techmahindra.com/Disclaimer.html
>> ">http://www.techmahindra.com/Disclaimer.html</a> externally and <a
>> href="http://tim.techmahindra.com/Disclaimer.html">
>> http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech
>> Mahindra.
>>
>>
>> ============================================================================================================================
>>
>
>
>
> --
> Hiranya Jayathilaka
> Software Engineer;
> WSO2 Inc.; http://wso2.org
> E-mail: hiranya@wso2.com; Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
>
--
Hiranya Jayathilaka
Software Engineer;
WSO2 Inc.; http://wso2.org
E-mail: hiranya@wso2.com; Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
Re: Apache Synapse and Oracle AQ
Posted by Hiranya Jayathilaka <hi...@gmail.com>.
Hi Sunil,
On Tue, Aug 11, 2009 at 11:22 AM, Sunil.2.Tiwari <st0031200@techmahindra.com
> wrote:
>
> Hello everybody,
>
> Looking for linking Apache Synapse ESB & Oracle AQ (Advanced Queue).
> Goal is to Enqueue/Dequeue messages from Oracle AQ using Synapse ESB
>
> Any idea how to do this?
> May Apache Synapse ESB communicate with Oracle AQ directly? similar to IBM
> MQ or Active MQ.
I'm not very familiar with Oracle AQ. Does it provide any JNDI support like
Active MQ does? In that case we'll be able to get it working with Synapse
out of the box. See if that provides an
javax.naming.spi.InitialContextFactory implementation.
Thanks,
Hiranya
>
>
> Link, documents will be helpful.
>
> Thanks & Regards
> Sunil Kumar Tiwari | Tech Mahindra Ltd.
> (Office: 009120 6641 7136 Mobile: 0091 9767644210)
> Email: sunil.tiwari2@techmahindra.com
>
>
> ============================================================================================================================
>
>
> Disclaimer:
>
> This message and the information contained herein is proprietary and
> confidential and subject to the Tech Mahindra policy statement, you may
> review the policy at <a href="http://www.techmahindra.com/Disclaimer.html
> ">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="
> http://tim.techmahindra.com/Disclaimer.html">
> http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech
> Mahindra.
>
>
> ============================================================================================================================
>
--
Hiranya Jayathilaka
Software Engineer;
WSO2 Inc.; http://wso2.org
E-mail: hiranya@wso2.com; Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
RE: Synapse ESB and IBM MQ sender issue
Posted by "Sunil.2.Tiwari" <st...@TechMahindra.com>.
Hi Rajika,
Attaching stack trace log and axi2.xml.
I am using synapse-1.4.0-SNAPSHOT
Thanks & Regards
Sunil Kumar Tiwari | Tech Mahindra Ltd.
(Office: 009120 6641 7136 Mobile: 0091 9767644210)
Email: sunil.tiwari2@techmahindra.com
-----Original Message-----
From: Rajika Kumarasiri [mailto:rajika@wso2.com]
Sent: Wednesday, August 05, 2009 5:22 PM
To: user@synapse.apache.org
Subject: Re: Synapse ESB and IBM MQ sender issue
On Wed, Aug 5, 2009 at 5:18 PM, Sunil.2.Tiwari
<st...@techmahindra.com>wrote:
hi Sunil,
Having the stack trace will be useful to identify the problem.
-Rajika
>
> Hello everybody,
> I am trying to read (enqueu) message from MQ queue and post(dequeue) it
> into response MQ queue.
> Getting exception (PFA for exception) over Synapse ESB console for proxy
> service when PS is trying to post (dequeue) message to MQ response queue.
> Proxy Service Synapse.xml:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> <proxy name="ReceiverQCFPS" transports="jms" startOnLoad="true"
> statistics="enable">
> <parameter name="transport.jms.JMSSpecVersion">1.0</parameter>
> <parameter name="transport.jms.Destination">MyMDBQueue</parameter>
> <parameter name="transport.PollInterval">15</parameter>
> <target>
> <inSequence>
> <log level="full" separator=", "/>
> <property action="set" name="OUT_ONLY" value="true"/>
> </inSequence>
> <endpoint>
> <address
> uri="jms:/MyReplyQueue?transport.jms.ConnectionFactoryJNDIName=SenderQCF&java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory&java.naming.provider.url=file:/C:/JNDI-Directory&transport.jms.ConnectionFactoryType=queue"/>
> </endpoint>
> <outSequence>
> <log level="full" separator=", "/>
> <send/>
> <log level="full" separator=", "/>
> </outSequence>
> </target>
> </proxy>
> </definitions>
>
> Any idea where is the problem.
>
> Thanks & Regards
> Sunil Kumar Tiwari | I&B2B | Tech Mahindra Ltd.
> (Office: 009120 6641 7136 Mobile: 0091 9767644210)
> Email: sunil.tiwari2@techmahindra.com
>
>
>
> ============================================================================================================================
>
>
> Disclaimer:
>
> This message and the information contained herein is proprietary and
> confidential and subject to the Tech Mahindra policy statement, you may
> review the policy at <a href="http://www.techmahindra.com/Disclaimer.html
> ">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="
> http://tim.techmahindra.com/Disclaimer.html">
> http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech
> Mahindra.
>
>
> ============================================================================================================================
--
http://wso2.org
http://llvm.org
http://www.minix3.org/
============================================================================================================================
Disclaimer:
This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.
============================================================================================================================
Re: Synapse ESB and IBM MQ sender issue
Posted by Rajika Kumarasiri <ra...@wso2.com>.
On Wed, Aug 5, 2009 at 5:18 PM, Sunil.2.Tiwari
<st...@techmahindra.com>wrote:
hi Sunil,
Having the stack trace will be useful to identify the problem.
-Rajika
>
> Hello everybody,
> I am trying to read (enqueu) message from MQ queue and post(dequeue) it
> into response MQ queue.
> Getting exception (PFA for exception) over Synapse ESB console for proxy
> service when PS is trying to post (dequeue) message to MQ response queue.
> Proxy Service Synapse.xml:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> <proxy name="ReceiverQCFPS" transports="jms" startOnLoad="true"
> statistics="enable">
> <parameter name="transport.jms.JMSSpecVersion">1.0</parameter>
> <parameter name="transport.jms.Destination">MyMDBQueue</parameter>
> <parameter name="transport.PollInterval">15</parameter>
> <target>
> <inSequence>
> <log level="full" separator=", "/>
> <property action="set" name="OUT_ONLY" value="true"/>
> </inSequence>
> <endpoint>
> <address
> uri="jms:/MyReplyQueue?transport.jms.ConnectionFactoryJNDIName=SenderQCF&java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory&java.naming.provider.url=file:/C:/JNDI-Directory&transport.jms.ConnectionFactoryType=queue"/>
> </endpoint>
> <outSequence>
> <log level="full" separator=", "/>
> <send/>
> <log level="full" separator=", "/>
> </outSequence>
> </target>
> </proxy>
> </definitions>
>
> Any idea where is the problem.
>
> Thanks & Regards
> Sunil Kumar Tiwari | I&B2B | Tech Mahindra Ltd.
> (Office: 009120 6641 7136 Mobile: 0091 9767644210)
> Email: sunil.tiwari2@techmahindra.com
>
>
>
> ============================================================================================================================
>
>
> Disclaimer:
>
> This message and the information contained herein is proprietary and
> confidential and subject to the Tech Mahindra policy statement, you may
> review the policy at <a href="http://www.techmahindra.com/Disclaimer.html
> ">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="
> http://tim.techmahindra.com/Disclaimer.html">
> http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech
> Mahindra.
>
>
> ============================================================================================================================
--
http://wso2.org
http://llvm.org
http://www.minix3.org/
Apache Synapse and Oracle AQ
Posted by "Sunil.2.Tiwari" <st...@TechMahindra.com>.
Hello everybody,
Looking for linking Apache Synapse ESB & Oracle AQ (Advanced Queue).
Goal is to Enqueue/Dequeue messages from Oracle AQ using Synapse ESB
Any idea how to do this?
May Apache Synapse ESB communicate with Oracle AQ directly? similar to IBM MQ or Active MQ.
Link, documents will be helpful.
Thanks & Regards
Sunil Kumar Tiwari | Tech Mahindra Ltd.
(Office: 009120 6641 7136 Mobile: 0091 9767644210)
Email: sunil.tiwari2@techmahindra.com
============================================================================================================================
Disclaimer:
This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.
============================================================================================================================
Re: Synapse ESB and IBM MQ issue
Posted by "Asankha C. Perera" <as...@apache.org>.
Hi Sunil
> Thanks Asankha
> I got it resolved by adding JMS specification 1.0 in proxy service parameter.
> MQ transport is working for me now.
>
Good to hear!
cheers
asankha
--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org
http://esbmagic.blogspot.com
RE: Synapse ESB and IBM MQ issue
Posted by "Sunil.2.Tiwari" <st...@TechMahindra.com>.
Thanks Asankha
I got it resolved by adding JMS specification 1.0 in proxy service parameter.
MQ transport is working for me now.
Thanks & Regards
Sunil Kumar Tiwari | Tech Mahindra Ltd.
(Office: 009120 6641 7136 Mobile: 0091 9767644210)
Email: sunil.tiwari2@techmahindra.com
-----Original Message-----
From: Asankha Perera [mailto:asankha.apache@gmail.com] On Behalf Of Asankha C. Perera
Sent: Tuesday, August 04, 2009 8:50 PM
To: user@synapse.apache.org
Subject: Re: Synapse ESB and IBM MQ issue
Hi Sunil
> Attaching log by increasing log level.
>
> Any idea how to over come/handle this MQ related error.
>
Seems like a basic JMS consumer creation error.. thus could you try to
run the simple producer and consumer as per [1] against your MQ provider
with the same configuration you've used for Synapse? Once thats working,
it will be simpler to copy any tweaked parameters/settings to Synapse
more easily
cheers
asankha
[1] http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JMS5.html
Esp
http://java.sun.com/j2ee/1.4/docs/tutorial/examples/jms/simple/src/SimpleSynchConsumer.java
and the SimpleProducer
--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org
http://esbmagic.blogspot.com
============================================================================================================================
Disclaimer:
This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.
============================================================================================================================
RE: Synapse ESB and IBM MQ sender issue
Posted by "Sunil.2.Tiwari" <st...@TechMahindra.com>.
Cheers mate!!
Thanks Asankha.
Its working now :)
Thanks & Regards
Sunil Kumar Tiwari | I&B2B | Tech Mahindra Ltd.
(Office: 009120 6641 7136 Mobile: 0091 9767644210)
Email: sunil.tiwari2@techmahindra.com
-----Original Message-----
From: Asankha Perera [mailto:asankha.apache@gmail.com] On Behalf Of Asankha C. Perera
Sent: Wednesday, August 05, 2009 6:06 PM
To: user@synapse.apache.org
Subject: Re: Synapse ESB and IBM MQ sender issue
Hi Sunil
> I am trying to read (enqueu) message from MQ queue and post(dequeue) it into response MQ queue.
> Getting exception (PFA for exception) over Synapse ESB console for proxy service when PS is trying to post (dequeue) message to MQ response queue.
>
By default your configuration would read a message (along with all of
its transport level headers - i.e. JMS headers) and write them back as
read. However, some of the headers read (e.g. JMS_REDELIVERED) does not
seem writable with your JMS provider. With SYNAPSE-478 we fixed this to
work according to the JMS specs, but the header in question passes
through our filter.
Hence you could remove this header from the transport headers read
before the write like follows:
<inSequence>
...
<property name="JMS_REDELIVERED" action="remove" scope="transport"/>
</inSequence>
cheers
asankha
[1] http://issues.apache.org/jira/browse/SYNAPSE-478 (See the last two
comments of this)
--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org
http://esbmagic.blogspot.com
============================================================================================================================
Disclaimer:
This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.
============================================================================================================================
Re: Synapse ESB and IBM MQ sender issue
Posted by "Asankha C. Perera" <as...@apache.org>.
Hi Sunil
> I am trying to read (enqueu) message from MQ queue and post(dequeue) it into response MQ queue.
> Getting exception (PFA for exception) over Synapse ESB console for proxy service when PS is trying to post (dequeue) message to MQ response queue.
>
By default your configuration would read a message (along with all of
its transport level headers - i.e. JMS headers) and write them back as
read. However, some of the headers read (e.g. JMS_REDELIVERED) does not
seem writable with your JMS provider. With SYNAPSE-478 we fixed this to
work according to the JMS specs, but the header in question passes
through our filter.
Hence you could remove this header from the transport headers read
before the write like follows:
<inSequence>
...
<property name="JMS_REDELIVERED" action="remove" scope="transport"/>
</inSequence>
cheers
asankha
[1] http://issues.apache.org/jira/browse/SYNAPSE-478 (See the last two
comments of this)
--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org
http://esbmagic.blogspot.com
Synapse ESB and IBM MQ sender issue
Posted by "Sunil.2.Tiwari" <st...@TechMahindra.com>.
Hello everybody,
I am trying to read (enqueu) message from MQ queue and post(dequeue) it into response MQ queue.
Getting exception (PFA for exception) over Synapse ESB console for proxy service when PS is trying to post (dequeue) message to MQ response queue.
Proxy Service Synapse.xml:
<definitions xmlns="http://ws.apache.org/ns/synapse">
<proxy name="ReceiverQCFPS" transports="jms" startOnLoad="true" statistics="enable">
<parameter name="transport.jms.JMSSpecVersion">1.0</parameter>
<parameter name="transport.jms.Destination">MyMDBQueue</parameter>
<parameter name="transport.PollInterval">15</parameter>
<target>
<inSequence>
<log level="full" separator=", "/>
<property action="set" name="OUT_ONLY" value="true"/>
</inSequence>
<endpoint>
<address uri="jms:/MyReplyQueue?transport.jms.ConnectionFactoryJNDIName=SenderQCF&java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory&java.naming.provider.url=file:/C:/JNDI-Directory&transport.jms.ConnectionFactoryType=queue"/>
</endpoint>
<outSequence>
<log level="full" separator=", "/>
<send/>
<log level="full" separator=", "/>
</outSequence>
</target>
</proxy>
</definitions>
Any idea where is the problem.
Thanks & Regards
Sunil Kumar Tiwari | I&B2B | Tech Mahindra Ltd.
(Office: 009120 6641 7136 Mobile: 0091 9767644210)
Email: sunil.tiwari2@techmahindra.com
============================================================================================================================
Disclaimer:
This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.
============================================================================================================================
Re: Synapse ESB and IBM MQ issue
Posted by "Asankha C. Perera" <as...@apache.org>.
Hi Sunil
> Attaching log by increasing log level.
>
> Any idea how to over come/handle this MQ related error.
>
Seems like a basic JMS consumer creation error.. thus could you try to
run the simple producer and consumer as per [1] against your MQ provider
with the same configuration you've used for Synapse? Once thats working,
it will be simpler to copy any tweaked parameters/settings to Synapse
more easily
cheers
asankha
[1] http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JMS5.html
Esp
http://java.sun.com/j2ee/1.4/docs/tutorial/examples/jms/simple/src/SimpleSynchConsumer.java
and the SimpleProducer
--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org
http://esbmagic.blogspot.com
RE: Synapse ESB and IBM MQ issue
Posted by "Sunil.2.Tiwari" <st...@TechMahindra.com>.
Hi,
Attaching log by increasing log level.
Any idea how to over come/handle this MQ related error.
Thanks,
Thanks & Regards
Sunil Kumar Tiwari | Tech Mahindra Ltd.
(Office: 009120 6641 7136 Mobile: 0091 9767644210)
Email: sunil.tiwari2@techmahindra.com
________________________________
From: Sunil.2.Tiwari [mailto:st0031200@TechMahindra.com]
Sent: Monday, August 03, 2009 10:18 PM
To: user@synapse.apache.org
Subject: RE: Synapse ESB and IBM MQ issue
Hi,
I am getting exception while deploying MQ-Queue listener proxy service. Using latest synapse built for development. When trying to deploy proxy service getting attached error.
Proxy Service Synapse.xml::
<definitions xmlns="http://ws.apache.org/ns/synapse">
<proxy name="ReceiverQCFPS" transports="jms" startOnLoad="true" statistics="enable">
<parameter name="transport.jms.Destination">MyMDBQueue</parameter>
<target>
<inSequence>
<log level="full" separator=", "/>
<drop/>
</inSequence>
</target>
</proxy>
</definitions>
Eception snap shot (PFA for complete log)::
2009-08-03 15:00:32,218 [-] [jms-Worker-1] ERROR ServiceTaskManager Error creating JMS consumer for service : ReceiverQC
FPS
javax.jms.IllegalStateException: MQJMS1112: JMS1.1 Invalid operation for domain specific object
at com.ibm.mq.jms.MQQueueSession.createConsumer(MQQueueSession.java:398)
at org.apache.axis2.transport.jms.JMSUtils.createConsumer(JMSUtils.java:634)
at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.createConsumer(ServiceTaskManager.java:
835)
Any idea how overcome this exception.
Thanks & Regards
Sunil Kumar Tiwari | Tech Mahindra Ltd.
(Office: 009120 6641 7136 Mobile: 0091 9767644210)
Email: sunil.tiwari2@techmahindra.com
-----Original Message-----
From: Asankha Perera [mailto:asankha.apache@gmail.com] On Behalf Of Asankha C. Perera
Sent: Saturday, August 01, 2009 8:50 PM
To: user@synapse.apache.org
Subject: Re: Synapse ESB and IBM MQ issue
Hi Sunil
>
> Could you please detail how can I use the latest stable build to
> upgrade Synapse version (Steps)?
>
None in particular.. just extract the last nightly build from the
location I specified, extract the Zip file, and just change the
synapse.xml found at the same place as before in the 1.2 release
>
> So that I overcome MQ-JMS connection factory name/ destination queue
> name mismatch problem.
>
If you hit any issues, do keep the user@ list informed, so you do not
need to Cc: emails direct to me
cheers
asankha
--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org
http://esbmagic.blogspot.com
============================================================================================================================
Disclaimer:
This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally and http://tim.techmahindra.com/Disclaimer.html internally within Tech Mahindra.
============================================================================================================================
============================================================================================================================
Disclaimer:
This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.
============================================================================================================================
RE: Synapse ESB and IBM MQ issue
Posted by "Sunil.2.Tiwari" <st...@TechMahindra.com>.
Hi,
I am getting exception while deploying MQ-Queue listener proxy service. Using latest synapse built for development. When trying to deploy proxy service getting attached error.
Proxy Service Synapse.xml::
<definitions xmlns="http://ws.apache.org/ns/synapse">
<proxy name="ReceiverQCFPS" transports="jms" startOnLoad="true" statistics="enable">
<parameter name="transport.jms.Destination">MyMDBQueue</parameter>
<target>
<inSequence>
<log level="full" separator=", "/>
<drop/>
</inSequence>
</target>
</proxy>
</definitions>
Eception snap shot (PFA for complete log)::
2009-08-03 15:00:32,218 [-] [jms-Worker-1] ERROR ServiceTaskManager Error creating JMS consumer for service : ReceiverQC
FPS
javax.jms.IllegalStateException: MQJMS1112: JMS1.1 Invalid operation for domain specific object
at com.ibm.mq.jms.MQQueueSession.createConsumer(MQQueueSession.java:398)
at org.apache.axis2.transport.jms.JMSUtils.createConsumer(JMSUtils.java:634)
at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.createConsumer(ServiceTaskManager.java:
835)
Any idea how overcome this exception.
Thanks & Regards
Sunil Kumar Tiwari | Tech Mahindra Ltd.
(Office: 009120 6641 7136 Mobile: 0091 9767644210)
Email: sunil.tiwari2@techmahindra.com
-----Original Message-----
From: Asankha Perera [mailto:asankha.apache@gmail.com] On Behalf Of Asankha C. Perera
Sent: Saturday, August 01, 2009 8:50 PM
To: user@synapse.apache.org
Subject: Re: Synapse ESB and IBM MQ issue
Hi Sunil
>
> Could you please detail how can I use the latest stable build to
> upgrade Synapse version (Steps)?
>
None in particular.. just extract the last nightly build from the
location I specified, extract the Zip file, and just change the
synapse.xml found at the same place as before in the 1.2 release
>
> So that I overcome MQ-JMS connection factory name/ destination queue
> name mismatch problem.
>
If you hit any issues, do keep the user@ list informed, so you do not
need to Cc: emails direct to me
cheers
asankha
--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org
http://esbmagic.blogspot.com
============================================================================================================================
Disclaimer:
This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.
============================================================================================================================
Re: Synapse ESB and IBM MQ issue
Posted by "Asankha C. Perera" <as...@apache.org>.
Hi Sunil
>
> Could you please detail how can I use the latest stable build to
> upgrade Synapse version (Steps)?
>
None in particular.. just extract the last nightly build from the
location I specified, extract the Zip file, and just change the
synapse.xml found at the same place as before in the 1.2 release
>
> So that I overcome MQ-JMS connection factory name/ destination queue
> name mismatch problem.
>
If you hit any issues, do keep the user@ list informed, so you do not
need to Cc: emails direct to me
cheers
asankha
--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org
http://esbmagic.blogspot.com