You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by kbohnenberger <ke...@mantech.com> on 2009/04/14 20:10:54 UTC

snapshot clone

I'm having trouble getting clone to work.
Here is what I have:
...
    <proxy name="receiveJMSKoList" transports="jms">
        <target>
            <inSequence>
                <property action="set" name="OUT_ONLY" value="true"/>
   	            <sequence key="validateJmsKoList"/>
                <clone continueParent="false">                 
                  <target>
                     <sequence key="lniSequence"/>
                  </target>
                  <target>
                     <sequence key="ircSequence"/>
                  </target>
                </clone>
            </inSequence>
        </target>
        <parameter name="transport.jms.ContentType">
            <rules>
                <jmsProperty>contentType</jmsProperty>
                <default>application/xml</default>
            </rules>
        </parameter>
        <parameter
name="transport.jms.ConnectionFactory">incomingQueueFactory</parameter>
        <parameter
name="transport.jms.Destination">cn=incomingQueue</parameter>
    </proxy>
...

Incoming messages produce this in the log:
2009-04-14 14:07:47,780 [-] [jms-Worker-2] DEBUG CloneMediator Start : Clone
mediator
2009-04-14 14:07:47,780 [-] [jms-Worker-2] DEBUG CloneMediator Submitting 1
of 2 messages for processing in parallel
2009-04-14 14:07:47,780 [-] [jms-Worker-2] DEBUG Axis2SynapseEnvironment
Creating Message Context
2009-04-14 14:07:47,783 [-] [jms-Worker-2]  INFO MessageHelper Parent's
Fault Stack : [] : Child's Fault Stack :[]
2009-04-14 14:07:47,784 [-] [jms-Worker-2] DEBUG Axis2SynapseEnvironment
Injecting MessageContext for asynchronous mediation using the : Anonymous
Sequence
2009-04-14 14:07:47,784 [-] [jms-Worker-2] DEBUG CloneMediator Submitting 2
of 2 messages for processing in parallel
2009-04-14 14:07:47,784 [-] [jms-Worker-2] DEBUG Axis2SynapseEnvironment
Creating Message Context
2009-04-14 14:07:47,787 [-] [jms-Worker-2]  INFO MessageHelper Parent's
Fault Stack : [] : Child's Fault Stack :[]
2009-04-14 14:07:47,787 [-] [jms-Worker-2] DEBUG Axis2SynapseEnvironment
Injecting MessageContext for asynchronous mediation using the : Anonymous
Sequence
2009-04-14 14:07:47,787 [-] [jms-Worker-2] DEBUG CloneMediator End : Clone
mediator

Any thoughts?
-- 
View this message in context: http://www.nabble.com/snapshot-clone-tp23044928p23044928.html
Sent from the Synapse - User mailing list archive at Nabble.com.


Re: snapshot clone

Posted by Keith Bohnenberger <ke...@mantech.com>.
I got this to work ...
I had to change:
>                   <target>
>                      <sequence key="lniSequence"/>
>                   </target>
to:
<target sequence="lniSequence"/>

To get it to work.

With the first way, the code seemed to think there was an anonymous sequence
in the target that did nothing.  It didn't pick up the sequence element
inside the target element.

Keith


On 4/14/09 2:10 PM, "Keith Bohnenberger" <ke...@mantech.com>
wrote:

> 
> I'm having trouble getting clone to work.
> Here is what I have:
> ...
>     <proxy name="receiveJMSKoList" transports="jms">
>         <target>
>             <inSequence>
>                 <property action="set" name="OUT_ONLY" value="true"/>
>            <sequence key="validateJmsKoList"/>
>                 <clone continueParent="false">
>                   <target>
>                      <sequence key="lniSequence"/>
>                   </target>
>                   <target>
>                      <sequence key="ircSequence"/>
>                   </target>
>                 </clone>
>             </inSequence>
>         </target>
>         <parameter name="transport.jms.ContentType">
>             <rules>
>                 <jmsProperty>contentType</jmsProperty>
>                 <default>application/xml</default>
>             </rules>
>         </parameter>
>         <parameter
> name="transport.jms.ConnectionFactory">incomingQueueFactory</parameter>
>         <parameter
> name="transport.jms.Destination">cn=incomingQueue</parameter>
>     </proxy>
> ...
> 
> Incoming messages produce this in the log:
> 2009-04-14 14:07:47,780 [-] [jms-Worker-2] DEBUG CloneMediator Start : Clone
> mediator
> 2009-04-14 14:07:47,780 [-] [jms-Worker-2] DEBUG CloneMediator Submitting 1
> of 2 messages for processing in parallel
> 2009-04-14 14:07:47,780 [-] [jms-Worker-2] DEBUG Axis2SynapseEnvironment
> Creating Message Context
> 2009-04-14 14:07:47,783 [-] [jms-Worker-2]  INFO MessageHelper Parent's
> Fault Stack : [] : Child's Fault Stack :[]
> 2009-04-14 14:07:47,784 [-] [jms-Worker-2] DEBUG Axis2SynapseEnvironment
> Injecting MessageContext for asynchronous mediation using the : Anonymous
> Sequence
> 2009-04-14 14:07:47,784 [-] [jms-Worker-2] DEBUG CloneMediator Submitting 2
> of 2 messages for processing in parallel
> 2009-04-14 14:07:47,784 [-] [jms-Worker-2] DEBUG Axis2SynapseEnvironment
> Creating Message Context
> 2009-04-14 14:07:47,787 [-] [jms-Worker-2]  INFO MessageHelper Parent's
> Fault Stack : [] : Child's Fault Stack :[]
> 2009-04-14 14:07:47,787 [-] [jms-Worker-2] DEBUG Axis2SynapseEnvironment
> Injecting MessageContext for asynchronous mediation using the : Anonymous
> Sequence
> 2009-04-14 14:07:47,787 [-] [jms-Worker-2] DEBUG CloneMediator End : Clone
> mediator
> 
> Any thoughts?

This communication, along with any attachments, is covered by federal and state law governing electronic communications and may contain company proprietary and legally privileged information.  
If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, use or copying of this message is strictly prohibited.  
If you have received this in error, please reply immediately to the sender and delete this message.  Thank you.