An issue with ESB when using cloning mediator

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

An issue with ESB when using cloning mediator

Dinali Dabarera
Hi,
I am using ESB for twitter analyzing project, to solve a problem i had when collecting tweets i need to pass the same stream of tweets to two endpoints in the ESB, so that DAS can receive from two different Http receivers. I have used clone mediator to this according to the documentation.

ESB version 4.9
---------------------------------------
my reSequence.

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
         <target>
            <send>
                  <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                  </endpoint>
               </send>
        </target>
        <target>
             <send>
                  <endpoint>
                     <http method="POST" uri="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                  </endpoint>
               </send>
        </target>
    </clone>

</sequence>


--------------------------------------------------------------------------------------------------

But when i save this , No error can be seen, but it save only like this


<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target />
    </clonne>
</sequence>












Does anybody know the issue for this problem?
  

--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: An issue with ESB when using cloning mediator

Jagath Sisirakumara Ariyarathne
Hi,

Your configuration should be corrected as below. You can refer documentations in [1] and [2].

 <sequence name="reqSequence" onError="reqErrorSequence">
        <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
        <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
        <log/>
        <clone>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                </endpoint>
            </target>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                </endpoint>
            </target>
        </clone>
    </sequence>


Thanks.

On Thu, Nov 19, 2015 at 9:40 PM, Dinali Dabarera <[hidden email]> wrote:
Hi,
I am using ESB for twitter analyzing project, to solve a problem i had when collecting tweets i need to pass the same stream of tweets to two endpoints in the ESB, so that DAS can receive from two different Http receivers. I have used clone mediator to this according to the documentation.

ESB version 4.9
---------------------------------------
my reSequence.

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
         <target>
            <send>
                  <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                  </endpoint>
               </send>
        </target>
        <target>
             <send>
                  <endpoint>
                     <http method="POST" uri="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                  </endpoint>
               </send>
        </target>
    </clone>

</sequence>


--------------------------------------------------------------------------------------------------

But when i save this , No error can be seen, but it save only like this


<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target />
    </clonne>
</sequence>












Does anybody know the issue for this problem?
  

--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: An issue with ESB when using cloning mediator

Dinali Dabarera
Hi Jagath,

Although i did the configuration as you told, after i save that it shows like this,

<?xml version="1.0" encoding="UTF-8"?>
<sequence onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target/>
    </clone>
</sequence>

i am wondering why is this? I tried this in two ESB's but the same result. Can not figure out why?

On Thu, Nov 19, 2015 at 10:59 PM, Jagath Sisirakumara Ariyarathne <[hidden email]> wrote:
Hi,

Your configuration should be corrected as below. You can refer documentations in [1] and [2].

 <sequence name="reqSequence" onError="reqErrorSequence">
        <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
        <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
        <log/>
        <clone>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                </endpoint>
            </target>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                </endpoint>
            </target>
        </clone>
    </sequence>


Thanks.

On Thu, Nov 19, 2015 at 9:40 PM, Dinali Dabarera <[hidden email]> wrote:
Hi,
I am using ESB for twitter analyzing project, to solve a problem i had when collecting tweets i need to pass the same stream of tweets to two endpoints in the ESB, so that DAS can receive from two different Http receivers. I have used clone mediator to this according to the documentation.

ESB version 4.9
---------------------------------------
my reSequence.

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
         <target>
            <send>
                  <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                  </endpoint>
               </send>
        </target>
        <target>
             <send>
                  <endpoint>
                     <http method="POST" uri="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                  </endpoint>
               </send>
        </target>
    </clone>

</sequence>


--------------------------------------------------------------------------------------------------

But when i save this , No error can be seen, but it save only like this


<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target />
    </clonne>
</sequence>












Does anybody know the issue for this problem?
  

--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/




--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: An issue with ESB when using cloning mediator

Anuruddha Liyanarachchi
Hi Dinali,

Your target should be wrapped around < sequence > tags as below:

<?xml version="1.0" encoding="UTF-8"?>
<sequence xmlns="http://ws.apache.org/ns/synapse" name="reqSequence" onError="reqErrorSequence">
   <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true" />
   <property name="messageType" scope="axis2" type="STRING" value="application/xml" />
   <log />
   <clone sequential="false">
      <target>
         <sequence>
            <send>
               <endpoint>
                  <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump" />
               </endpoint>
            </send>
         </sequence>
      </target>
      <target>
         <sequence>
            <send>
               <endpoint>
                  <http method="POST" uri="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS" />
               </endpoint>
            </send>
         </sequence>
      </target>
   </clone>
</sequence>

On Thu, Nov 19, 2015 at 11:15 PM, Dinali Dabarera <[hidden email]> wrote:
Hi Jagath,

Although i did the configuration as you told, after i save that it shows like this,

<?xml version="1.0" encoding="UTF-8"?>
<sequence onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target/>
    </clone>
</sequence>

i am wondering why is this? I tried this in two ESB's but the same result. Can not figure out why?

On Thu, Nov 19, 2015 at 10:59 PM, Jagath Sisirakumara Ariyarathne <[hidden email]> wrote:
Hi,

Your configuration should be corrected as below. You can refer documentations in [1] and [2].

 <sequence name="reqSequence" onError="reqErrorSequence">
        <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
        <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
        <log/>
        <clone>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                </endpoint>
            </target>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                </endpoint>
            </target>
        </clone>
    </sequence>


Thanks.

On Thu, Nov 19, 2015 at 9:40 PM, Dinali Dabarera <[hidden email]> wrote:
Hi,
I am using ESB for twitter analyzing project, to solve a problem i had when collecting tweets i need to pass the same stream of tweets to two endpoints in the ESB, so that DAS can receive from two different Http receivers. I have used clone mediator to this according to the documentation.

ESB version 4.9
---------------------------------------
my reSequence.

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
         <target>
            <send>
                  <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                  </endpoint>
               </send>
        </target>
        <target>
             <send>
                  <endpoint>
                     <http method="POST" uri="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                  </endpoint>
               </send>
        </target>
    </clone>

</sequence>


--------------------------------------------------------------------------------------------------

But when i save this , No error can be seen, but it save only like this


<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target />
    </clonne>
</sequence>












Does anybody know the issue for this problem?
  

--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/




--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thanks and Regards,
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel      : +94 112 145 345

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: An issue with ESB when using cloning mediator

Chanaka Fernando
In reply to this post by Dinali Dabarera
Hi Dinali,

Looks like there is a confusing behavior in the management console when configuring the clone mediator. Can you try configuring that through the "source view" directly. Here is a correct configuration for a clone mediator. You can replace your own urls for the below config.

<clone sequential="false">
        <target>
            <endpoint>
                <http uri-template="http://localhost:8280/services/echo"/>
            </endpoint>
        </target>
        <target>
            <endpoint>
                <http uri-template="http://localhost:8280/services/echo"/>
            </endpoint>
        </target>
    </clone>



On Thu, Nov 19, 2015 at 11:15 PM, Dinali Dabarera <[hidden email]> wrote:
Hi Jagath,

Although i did the configuration as you told, after i save that it shows like this,

<?xml version="1.0" encoding="UTF-8"?>
<sequence onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target/>
    </clone>
</sequence>

i am wondering why is this? I tried this in two ESB's but the same result. Can not figure out why?

On Thu, Nov 19, 2015 at 10:59 PM, Jagath Sisirakumara Ariyarathne <[hidden email]> wrote:
Hi,

Your configuration should be corrected as below. You can refer documentations in [1] and [2].

 <sequence name="reqSequence" onError="reqErrorSequence">
        <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
        <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
        <log/>
        <clone>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                </endpoint>
            </target>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                </endpoint>
            </target>
        </clone>
    </sequence>


Thanks.

On Thu, Nov 19, 2015 at 9:40 PM, Dinali Dabarera <[hidden email]> wrote:
Hi,
I am using ESB for twitter analyzing project, to solve a problem i had when collecting tweets i need to pass the same stream of tweets to two endpoints in the ESB, so that DAS can receive from two different Http receivers. I have used clone mediator to this according to the documentation.

ESB version 4.9
---------------------------------------
my reSequence.

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
         <target>
            <send>
                  <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                  </endpoint>
               </send>
        </target>
        <target>
             <send>
                  <endpoint>
                     <http method="POST" uri="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                  </endpoint>
               </send>
        </target>
    </clone>

</sequence>


--------------------------------------------------------------------------------------------------

But when i save this , No error can be seen, but it save only like this


<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target />
    </clonne>
</sequence>












Does anybody know the issue for this problem?
  

--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
<a href="tel:077-0198933" value="+94770198933" target="_blank">077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/




--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
<a href="tel:077-0198933" value="+94770198933" target="_blank">077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you and Best Regards,
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya





_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: An issue with ESB when using cloning mediator

Chanaka Fernando
In reply to this post by Anuruddha Liyanarachchi
Hi Anuruddha,

Sequence is not "mandatory" for a clone target. But if you define a sequence, then you need to add a send or call mediator to configure an endpoint. Instead you can directly configure "endpoint" without specifying any sequence as I have mentioned above.

On Thu, Nov 19, 2015 at 11:31 PM, Anuruddha Liyanarachchi <[hidden email]> wrote:
Hi Dinali,

Your target should be wrapped around < sequence > tags as below:

<?xml version="1.0" encoding="UTF-8"?>
<sequence xmlns="http://ws.apache.org/ns/synapse" name="reqSequence" onError="reqErrorSequence">
   <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true" />
   <property name="messageType" scope="axis2" type="STRING" value="application/xml" />
   <log />
   <clone sequential="false">
      <target>
         <sequence>
            <send>
               <endpoint>
                  <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump" />
               </endpoint>
            </send>
         </sequence>
      </target>
      <target>
         <sequence>
            <send>
               <endpoint>
                  <http method="POST" uri="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS" />
               </endpoint>
            </send>
         </sequence>
      </target>
   </clone>
</sequence>

On Thu, Nov 19, 2015 at 11:15 PM, Dinali Dabarera <[hidden email]> wrote:
Hi Jagath,

Although i did the configuration as you told, after i save that it shows like this,

<?xml version="1.0" encoding="UTF-8"?>
<sequence onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target/>
    </clone>
</sequence>

i am wondering why is this? I tried this in two ESB's but the same result. Can not figure out why?

On Thu, Nov 19, 2015 at 10:59 PM, Jagath Sisirakumara Ariyarathne <[hidden email]> wrote:
Hi,

Your configuration should be corrected as below. You can refer documentations in [1] and [2].

 <sequence name="reqSequence" onError="reqErrorSequence">
        <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
        <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
        <log/>
        <clone>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                </endpoint>
            </target>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                </endpoint>
            </target>
        </clone>
    </sequence>


Thanks.

On Thu, Nov 19, 2015 at 9:40 PM, Dinali Dabarera <[hidden email]> wrote:
Hi,
I am using ESB for twitter analyzing project, to solve a problem i had when collecting tweets i need to pass the same stream of tweets to two endpoints in the ESB, so that DAS can receive from two different Http receivers. I have used clone mediator to this according to the documentation.

ESB version 4.9
---------------------------------------
my reSequence.

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
         <target>
            <send>
                  <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                  </endpoint>
               </send>
        </target>
        <target>
             <send>
                  <endpoint>
                     <http method="POST" uri="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                  </endpoint>
               </send>
        </target>
    </clone>

</sequence>


--------------------------------------------------------------------------------------------------

But when i save this , No error can be seen, but it save only like this


<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target />
    </clonne>
</sequence>












Does anybody know the issue for this problem?
  

--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
<a href="tel:077-0198933" value="+94770198933" target="_blank">077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/




--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
<a href="tel:077-0198933" value="+94770198933" target="_blank">077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thanks and Regards,
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel      : +94 112 145 345

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you and Best Regards,
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya





_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: An issue with ESB when using cloning mediator

Dinali Dabarera
In reply to this post by Chanaka Fernando
Hi Chanak,


On Thu, Nov 19, 2015 at 11:32 PM, Chanaka Fernando <[hidden email]> wrote:
Hi Dinali,

Looks like there is a confusing behavior in the management console when configuring the clone mediator. Can you try configuring that through the "source view" directly. Here is a correct configuration for a clone mediator. You can replace your own urls for the below config.

<clone sequential="false">
        <target>
            <endpoint>
                <http uri-template="http://localhost:8280/services/echo"/>
            </endpoint>
        </target>
        <target>
            <endpoint>
                <http uri-template="http://localhost:8280/services/echo"/>
            </endpoint>
        </target>
    </clone>



On Thu, Nov 19, 2015 at 11:15 PM, Dinali Dabarera <[hidden email]> wrote:
Hi Jagath,

Although i did the configuration as you told, after i save that it shows like this,

<?xml version="1.0" encoding="UTF-8"?>
<sequence onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target/>
    </clone>
</sequence>

i am wondering why is this? I tried this in two ESB's but the same result. Can not figure out why?

On Thu, Nov 19, 2015 at 10:59 PM, Jagath Sisirakumara Ariyarathne <[hidden email]> wrote:
Hi,

Your configuration should be corrected as below. You can refer documentations in [1] and [2].

 <sequence name="reqSequence" onError="reqErrorSequence">
        <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
        <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
        <log/>
        <clone>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                </endpoint>
            </target>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                </endpoint>
            </target>
        </clone>
    </sequence>


Thanks.

On Thu, Nov 19, 2015 at 9:40 PM, Dinali Dabarera <[hidden email]> wrote:
Hi,
I am using ESB for twitter analyzing project, to solve a problem i had when collecting tweets i need to pass the same stream of tweets to two endpoints in the ESB, so that DAS can receive from two different Http receivers. I have used clone mediator to this according to the documentation.

ESB version 4.9
---------------------------------------
my reSequence.

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
         <target>
            <send>
                  <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                  </endpoint>
               </send>
        </target>
        <target>
             <send>
                  <endpoint>
                     <http method="POST" uri="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                  </endpoint>
               </send>
        </target>
    </clone>

</sequence>


--------------------------------------------------------------------------------------------------

But when i save this , No error can be seen, but it save only like this


<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target />
    </clonne>
</sequence>












Does anybody know the issue for this problem?
  

--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
<a href="tel:077-0198933" value="+94770198933" target="_blank">077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/




--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
<a href="tel:077-0198933" value="+94770198933" target="_blank">077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you and Best Regards,
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: <a href="tel:%2B94%20773337238" value="+94773337238" target="_blank">+94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya







--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: An issue with ESB when using cloning mediator

Dinali Dabarera
Hi Chanaka,
     I did as you said. It saved in the source view. But sequence code is as previous no change.

<?xml version="1.0" encoding="UTF-8"?>
<sequence onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target/>
    </clone>
</sequence>


Will this be a problem?

But I get this error message on the console.

[2015-11-20 08:12:31,934]  WARN - Axis2SynapseEnvironment Exception encountered but no fault handler found - message dropped
[2015-11-20 08:12:31,934] ERROR - GenericPollingConsumer Error while processing the Custom Inbound EP Message.
[2015-11-20 08:12:31,937]  WARN - SequenceMediator onError handler : reqErrorSequence for sequence : reqSequence cannot be found
[2015-11-20 08:12:31,937]  INFO - LogMediator To: , MessageID: urn:uuid:EEDA87928AF99E56BB1447987353060, Direction: request
[2015-11-20 08:12:31,937] ERROR - SequenceMediator not initialized, endpoint must be in initialized state
java.lang.IllegalStateException: not initialized, endpoint must be in initialized state
    at org.apache.synapse.endpoints.AbstractEndpoint.readyToSend(AbstractEndpoint.java:281)
    at org.apache.synapse.endpoints.HTTPEndpoint.send(HTTPEndpoint.java:84)
    at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:105)
    at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
    at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
    at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
    at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectInbound(Axis2SynapseEnvironment.java:369)
    at org.wso2.carbon.inbound.endpoint.protocol.generic.GenericPollingConsumer.injectMessage(GenericPollingConsumer.java:117)
    at org.wso2.carbon.inbound.endpoint.protocol.generic.GenericPollingConsumer.injectMessage(GenericPollingConsumer.java:75)
    at org.wso2.carbon.inbound.twitter.poll.TwitterStreamData.injectTwitterMessage(TwitterStreamData.java:206)
    at org.wso2.carbon.inbound.twitter.poll.TwitterStreamData$StatusListenerImpl.onStatus(TwitterStreamData.java:355)
    at twitter4j.StatusStreamImpl.onStatus(StatusStreamImpl.java:75)
    at twitter4j.StatusStreamBase$1.run(StatusStreamBase.java:105)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)


Why this happens "
SequenceMediator not initialized, endpoint must be in initialized state
java.lang.IllegalStateException: not initialized, endpoint must be in initialized state"

I can't change the sequence side it doesn't change.



Cheers!

On Fri, Nov 20, 2015 at 8:10 AM, Dinali Dabarera <[hidden email]> wrote:
Hi Chanak,


On Thu, Nov 19, 2015 at 11:32 PM, Chanaka Fernando <[hidden email]> wrote:
Hi Dinali,

Looks like there is a confusing behavior in the management console when configuring the clone mediator. Can you try configuring that through the "source view" directly. Here is a correct configuration for a clone mediator. You can replace your own urls for the below config.

<clone sequential="false">
        <target>
            <endpoint>
                <http uri-template="http://localhost:8280/services/echo"/>
            </endpoint>
        </target>
        <target>
            <endpoint>
                <http uri-template="http://localhost:8280/services/echo"/>
            </endpoint>
        </target>
    </clone>



On Thu, Nov 19, 2015 at 11:15 PM, Dinali Dabarera <[hidden email]> wrote:
Hi Jagath,

Although i did the configuration as you told, after i save that it shows like this,

<?xml version="1.0" encoding="UTF-8"?>
<sequence onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target/>
    </clone>
</sequence>

i am wondering why is this? I tried this in two ESB's but the same result. Can not figure out why?

On Thu, Nov 19, 2015 at 10:59 PM, Jagath Sisirakumara Ariyarathne <[hidden email]> wrote:
Hi,

Your configuration should be corrected as below. You can refer documentations in [1] and [2].

 <sequence name="reqSequence" onError="reqErrorSequence">
        <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
        <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
        <log/>
        <clone>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                </endpoint>
            </target>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                </endpoint>
            </target>
        </clone>
    </sequence>


Thanks.

On Thu, Nov 19, 2015 at 9:40 PM, Dinali Dabarera <[hidden email]> wrote:
Hi,
I am using ESB for twitter analyzing project, to solve a problem i had when collecting tweets i need to pass the same stream of tweets to two endpoints in the ESB, so that DAS can receive from two different Http receivers. I have used clone mediator to this according to the documentation.

ESB version 4.9
---------------------------------------
my reSequence.

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
         <target>
            <send>
                  <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                  </endpoint>
               </send>
        </target>
        <target>
             <send>
                  <endpoint>
                     <http method="POST" uri="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                  </endpoint>
               </send>
        </target>
    </clone>

</sequence>


--------------------------------------------------------------------------------------------------

But when i save this , No error can be seen, but it save only like this


<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target />
    </clonne>
</sequence>












Does anybody know the issue for this problem?
  

--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
<a href="tel:077-0198933" value="+94770198933" target="_blank">077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/




--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
<a href="tel:077-0198933" value="+94770198933" target="_blank">077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you and Best Regards,
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: <a href="tel:%2B94%20773337238" value="+94773337238" target="_blank">+94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya







--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933



--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: An issue with ESB when using cloning mediator

hmrajas1990
Hi Dinali,
Actually GenericPollingConsumer  will produce this error[1] if the Sequence name you given in the Custom inbound configuration miss. in sample [2] if you miss to create sequence  reqSequence   you will get this error. in your case you didn't set any name for sequence.
 
[1] [2015-11-20 08:12:31,934] ERROR - GenericPollingConsumer Error while processing the Custom Inbound EP Message.

[2]<inboundEndpoint xmlns="http://ws.apache.org/ns/synapse"
                 name="TwitterInboundEP"
                 sequence="reqSequence"
                 onError="reqErrorSequence"
                 class="org.wso2.carbon.inbound.twitter.poll.TwitterStreamData"
                 suspend="false">
   <parameters>
      <parameter name="sequential">true</parameter>
      <parameter name="interval">10</parameter>
      <parameter name="coordination">true</parameter>
      <parameter name="connection.twitter.consumerKey">KCHme1tyBln7L9E0zVte1PzFs</parameter>
      <parameter name="connection.twitter.consumerSecret">zQPn5OlMDcV0AFBC6MxhnNaLXMJCUGRIyeE1XogTwUou5tgC4a</parameter>
      <parameter name="connection.twitter.accessToken">3250392756-WLKUJstoqy2WL9HLMuvenpiZRkLOPayi8ca82uz</parameter>
      <parameter name="connection.twitter.accessSecret">56q7Fi4AEMy6xMJ4PTOuu7f3VcAYvO7PuSUHGSs9trWJU</parameter>
      <parameter name="twitter.operation">site</parameter>
      <parameter name="twitter.track">happy</parameter>
   </parameters>
</inboundEndpoint>


On Fri, Nov 20, 2015 at 8:15 AM, Dinali Dabarera <[hidden email]> wrote:
Hi Chanaka,
     I did as you said. It saved in the source view. But sequence code is as previous no change.

<?xml version="1.0" encoding="UTF-8"?>
<sequence onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target/>
    </clone>
</sequence>


Will this be a problem?

But I get this error message on the console.

[2015-11-20 08:12:31,934]  WARN - Axis2SynapseEnvironment Exception encountered but no fault handler found - message dropped
[2015-11-20 08:12:31,934] ERROR - GenericPollingConsumer Error while processing the Custom Inbound EP Message.
[2015-11-20 08:12:31,937]  WARN - SequenceMediator onError handler : reqErrorSequence for sequence : reqSequence cannot be found
[2015-11-20 08:12:31,937]  INFO - LogMediator To: , MessageID: urn:uuid:EEDA87928AF99E56BB1447987353060, Direction: request
[2015-11-20 08:12:31,937] ERROR - SequenceMediator not initialized, endpoint must be in initialized state
java.lang.IllegalStateException: not initialized, endpoint must be in initialized state
    at org.apache.synapse.endpoints.AbstractEndpoint.readyToSend(AbstractEndpoint.java:281)
    at org.apache.synapse.endpoints.HTTPEndpoint.send(HTTPEndpoint.java:84)
    at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:105)
    at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
    at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
    at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
    at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectInbound(Axis2SynapseEnvironment.java:369)
    at org.wso2.carbon.inbound.endpoint.protocol.generic.GenericPollingConsumer.injectMessage(GenericPollingConsumer.java:117)
    at org.wso2.carbon.inbound.endpoint.protocol.generic.GenericPollingConsumer.injectMessage(GenericPollingConsumer.java:75)
    at org.wso2.carbon.inbound.twitter.poll.TwitterStreamData.injectTwitterMessage(TwitterStreamData.java:206)
    at org.wso2.carbon.inbound.twitter.poll.TwitterStreamData$StatusListenerImpl.onStatus(TwitterStreamData.java:355)
    at twitter4j.StatusStreamImpl.onStatus(StatusStreamImpl.java:75)
    at twitter4j.StatusStreamBase$1.run(StatusStreamBase.java:105)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)


Why this happens "
SequenceMediator not initialized, endpoint must be in initialized state
java.lang.IllegalStateException: not initialized, endpoint must be in initialized state"

I can't change the sequence side it doesn't change.



Cheers!

On Fri, Nov 20, 2015 at 8:10 AM, Dinali Dabarera <[hidden email]> wrote:
Hi Chanak,


On Thu, Nov 19, 2015 at 11:32 PM, Chanaka Fernando <[hidden email]> wrote:
Hi Dinali,

Looks like there is a confusing behavior in the management console when configuring the clone mediator. Can you try configuring that through the "source view" directly. Here is a correct configuration for a clone mediator. You can replace your own urls for the below config.

<clone sequential="false">
        <target>
            <endpoint>
                <http uri-template="http://localhost:8280/services/echo"/>
            </endpoint>
        </target>
        <target>
            <endpoint>
                <http uri-template="http://localhost:8280/services/echo"/>
            </endpoint>
        </target>
    </clone>



On Thu, Nov 19, 2015 at 11:15 PM, Dinali Dabarera <[hidden email]> wrote:
Hi Jagath,

Although i did the configuration as you told, after i save that it shows like this,

<?xml version="1.0" encoding="UTF-8"?>
<sequence onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target/>
    </clone>
</sequence>

i am wondering why is this? I tried this in two ESB's but the same result. Can not figure out why?

On Thu, Nov 19, 2015 at 10:59 PM, Jagath Sisirakumara Ariyarathne <[hidden email]> wrote:
Hi,

Your configuration should be corrected as below. You can refer documentations in [1] and [2].

 <sequence name="reqSequence" onError="reqErrorSequence">
        <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
        <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
        <log/>
        <clone>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                </endpoint>
            </target>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                </endpoint>
            </target>
        </clone>
    </sequence>


Thanks.

On Thu, Nov 19, 2015 at 9:40 PM, Dinali Dabarera <[hidden email]> wrote:
Hi,
I am using ESB for twitter analyzing project, to solve a problem i had when collecting tweets i need to pass the same stream of tweets to two endpoints in the ESB, so that DAS can receive from two different Http receivers. I have used clone mediator to this according to the documentation.

ESB version 4.9
---------------------------------------
my reSequence.

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
         <target>
            <send>
                  <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                  </endpoint>
               </send>
        </target>
        <target>
             <send>
                  <endpoint>
                     <http method="POST" uri="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                  </endpoint>
               </send>
        </target>
    </clone>

</sequence>


--------------------------------------------------------------------------------------------------

But when i save this , No error can be seen, but it save only like this


<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target />
    </clonne>
</sequence>












Does anybody know the issue for this problem?
  

--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
<a href="tel:077-0198933" value="+94770198933" target="_blank">077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/




--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
<a href="tel:077-0198933" value="+94770198933" target="_blank">077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you and Best Regards,
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: <a href="tel:%2B94%20773337238" value="+94773337238" target="_blank">+94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya







--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933



--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | +94752833834
Email   | [hidden email]

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: An issue with ESB when using cloning mediator

Dinali Dabarera
In reply to this post by Jagath Sisirakumara Ariyarathne
Hi,
I solved this problem.

The problem happen i tried to take the stream from registry in ESB. By mistake I have saved these streams on the registry without just saving them.

I deleted those streams and created new ones and just saved and closed.

Then it worked perfectly fine now. Two Endpoints which have cloned streams works perfecting.

I think when cloning the stream should taken directly not from registry. It was my final conclusion.


Thanks & Cheers!

On Thu, Nov 19, 2015 at 10:59 PM, Jagath Sisirakumara Ariyarathne <[hidden email]> wrote:
Hi,

Your configuration should be corrected as below. You can refer documentations in [1] and [2].

 <sequence name="reqSequence" onError="reqErrorSequence">
        <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
        <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
        <log/>
        <clone>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                </endpoint>
            </target>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                </endpoint>
            </target>
        </clone>
    </sequence>


Thanks.

On Thu, Nov 19, 2015 at 9:40 PM, Dinali Dabarera <[hidden email]> wrote:
Hi,
I am using ESB for twitter analyzing project, to solve a problem i had when collecting tweets i need to pass the same stream of tweets to two endpoints in the ESB, so that DAS can receive from two different Http receivers. I have used clone mediator to this according to the documentation.

ESB version 4.9
---------------------------------------
my reSequence.

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
         <target>
            <send>
                  <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                  </endpoint>
               </send>
        </target>
        <target>
             <send>
                  <endpoint>
                     <http method="POST" uri="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                  </endpoint>
               </send>
        </target>
    </clone>

</sequence>


--------------------------------------------------------------------------------------------------

But when i save this , No error can be seen, but it save only like this


<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target />
    </clonne>
</sequence>












Does anybody know the issue for this problem?
  

--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/




--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: An issue with ESB when using cloning mediator

Dinali Dabarera
Hi Chanaka,
 
     The  code you gave for the cloning endpoint was the only thing that worked for me,

<clone sequential="false">
        <target>
            <endpoint>
                <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
            </endpoint>
        </target>
        <target>
            <endpoint>
                <http method="POST" uri-template="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
            </endpoint>
        </target>
    </clone>




Thanks :)


On Mon, Nov 23, 2015 at 9:56 AM, Dinali Dabarera <[hidden email]> wrote:
Hi,
I solved this problem.

The problem happen i tried to take the stream from registry in ESB. By mistake I have saved these streams on the registry without just saving them.

I deleted those streams and created new ones and just saved and closed.

Then it worked perfectly fine now. Two Endpoints which have cloned streams works perfecting.

I think when cloning the stream should taken directly not from registry. It was my final conclusion.


Thanks & Cheers!

On Thu, Nov 19, 2015 at 10:59 PM, Jagath Sisirakumara Ariyarathne <[hidden email]> wrote:
Hi,

Your configuration should be corrected as below. You can refer documentations in [1] and [2].

 <sequence name="reqSequence" onError="reqErrorSequence">
        <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
        <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
        <log/>
        <clone>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                </endpoint>
            </target>
            <target>
                <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                </endpoint>
            </target>
        </clone>
    </sequence>


Thanks.

On Thu, Nov 19, 2015 at 9:40 PM, Dinali Dabarera <[hidden email]> wrote:
Hi,
I am using ESB for twitter analyzing project, to solve a problem i had when collecting tweets i need to pass the same stream of tweets to two endpoints in the ESB, so that DAS can receive from two different Http receivers. I have used clone mediator to this according to the documentation.

ESB version 4.9
---------------------------------------
my reSequence.

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
         <target>
            <send>
                  <endpoint>
                    <http method="POST" uri-template="http://localhost:9766/endpoints/httpReciever/trump"/>
                  </endpoint>
               </send>
        </target>
        <target>
             <send>
                  <endpoint>
                     <http method="POST" uri="http://localhost:9766/endpoints/httpRecieverTrumpO/trumpALLTWEETS"/>
                  </endpoint>
               </send>
        </target>
    </clone>

</sequence>


--------------------------------------------------------------------------------------------------

But when i save this , No error can be seen, but it save only like this


<?xml version="1.0" encoding="UTF-8"?>
<sequence name="reqSequence" onError="reqErrorSequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="OUT_ONLY" scope="default" type="BOOLEAN" value="true"/>
    <property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
    <log/>
    <clone sequential="false">
        <target/>
        <target />
    </clonne>
</sequence>












Does anybody know the issue for this problem?
  

--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/




--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933



--
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev