You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by RomualdoGobbo <Ro...@newlog.it> on 2010/08/11 17:37:15 UTC

Re: troubles camel-example-spring-xquery modified including camel-mina

Claus,
I don't know why the IP Address is logged in this fashion!
In the following <route> portion of camelContext.xml below

    <route>
      <from
uri="mina:tcp://192.168.1.223:3000?textline=true&amp;sync=false"/>
      <to uri="xquery:myTransform.xquery"/>
      <to uri="jms:MyQueue"/>
    </route>


the uri is compliant to the notation (maybe have you to add another "/"?).

The IP is UP and running in our private LAN and is monitored via
HyperTerminal WinSocket since the last day. The aim is to capture the
incoming flow from the above IP address and insert It in the queue.

Many thank for your help.

Romualdo.
P.S. for your convenience the previous attached .rar file contains the
complete project.
-- 
View this message in context: http://camel.465427.n5.nabble.com/troubles-camel-example-spring-xquery-modified-including-camel-mina-tp2471729p2472079.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: troubles camel-example-spring-xquery modified including camel-mina

Posted by RomualdoGobbo <Ro...@newlog.it>.
Hi,
I've find some info in an old post JIRA where you suggested the changing 
/mina:tcp/ flow to solve the problem

from:/*
*/

    /*consumer *(<from
    uri="mina:tcp://192.168.1.223:3000?textline=true&amp;sync=false"/>)/

to/*
*/

    /*producer */(/<to
    uri="mina:tcp://192.168.1.223:3000?textline=true&amp;sync=true"/>/)
    adding a timer before (/<from uri="timer://foo?period=2000"/>/) and
    the loop seems to be OK.

  Unfortunately I've received the following message:

    /[                           foo] MinaProducer                  
    WARN  No payload to send for exchange: Exchange[Message: [Body is
    null]]/

to bear in mind that the tcp flow is at socket level sending in 
continuous mode only text message incoming from TCP/IP distributed 
sensors (quite similar a Serial Port transmission!) without any other 
attributes as Header or Body ... than the raw text.

The final /camelContext.xm/l <route> section is the following:

    /<route>
    <from uri="timer://foo?period=2000"/>
    <to uri="mina:tcp://192.168.1.223:3000?textline=true&amp;sync=true"/>
    <to uri="xquery:myTransform.xquery"/>
    <to uri="jms:MyQueue"/>
    //</route>/

Have you some suggestions?

Best Regards,
Romualdo



Claus Ibsen-2 [via Camel] wrote:
> Hi
>
> Ah the mina component doesn't support consuming from a remote IP address.
> when you do from it's supposed to be the localhost (eg act as a server).
>
> There is a ticket in JIRA to add a new feature to Camel mina to allow
> for what you want.
> Most likely it will be implemented in the camel-netty component.
> Apache Mina seems to be progressing very slow.
> They haven't released Mina 2.0 yet despite working with it for 2+ years.
>
> On Wed, Aug 11, 2010 at 5:37 PM, RomualdoGobbo <[hidden email] 
> </user/SendEmail.jtp?type=node&node=2472558&i=0>> wrote:
>
> >
> > Claus,
> > I don't know why the IP Address is logged in this fashion!
> > In the following <route> portion of camelContext.xml below
> >
> > <route>
> > <from
> > uri="mina:tcp://192.168.1.223:3000?textline=true&sync=false"/>
> > <to uri="xquery:myTransform.xquery"/>
> > <to uri="jms:MyQueue"/>
> > </route>
> >
> >
> > the uri is compliant to the notation (maybe have you to add another 
> "/"?).
> >
> > The IP is UP and running in our private LAN and is monitored via
> > HyperTerminal WinSocket since the last day. The aim is to capture the
> > incoming flow from the above IP address and insert It in the queue.
> >
> > Many thank for your help.
> >
> > Romualdo.
> > P.S. for your convenience the previous attached .rar file contains the
> > complete project.
> > --
> > View this message in context: 
> http://camel.465427.n5.nabble.com/troubles-camel-example-spring-xquery-modified-including-camel-mina-tp2471729p2472079.html 
> <http://camel.465427.n5.nabble.com/troubles-camel-example-spring-xquery-modified-including-camel-mina-tp2471729p2472079.html?by-user=t>
> > Sent from the Camel Development mailing list archive at Nabble.com.
> >
>
>
>
> -- 
> Claus Ibsen
> Apache Camel Committer
>
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com 
> <http://fusesource.com?by-user=t>
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>
>
> ------------------------------------------------------------------------
> View message @ 
> http://camel.465427.n5.nabble.com/troubles-camel-example-spring-xquery-modified-including-camel-mina-tp2471729p2472558.html 
>
> To unsubscribe from Re: troubles camel-example-spring-xquery modified 
> including camel-mina, click here 
> <http://camel.465427.n5.nabble.com/template/NodeServlet.jtp?tpl=unsubscribe_by_code&node=2472079&code=Um9tdWFsZG8uR29iYm9AbmV3bG9nLml0fDI0NzIwNzl8LTEyMjI2NjQ0NQ==>. 
>
>


-- 
+-----------------------------------------------------------------------+
Company: NEWLOG Consulting Srl
Message from: Romualdo Gobbo - CEO
Pza Carrobiolo 5 - 20052 MONZA (MB) - ITALY
Tel +39 039 2302833
Fax +39 039 2302832
Mobile +39 335 213886
Geo 45°35'13.8"N/09°16'36.2"E
E-mail: Romualdo.Gobbo@newlog.it
http://www.newlog.it
WAP: wap.newlog.it
+-----------------------------------------------------------------------+

- Disclaimer -
This email and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) or the taking of any action in reliance on the contents, by persons other than the designated recipient(s) is strictly prohibited.

If you have received this email in error, please notify the sender either by telephone or by email and delete the material from any computer.

Thank you for your cooperation.


-- 
View this message in context: http://camel.465427.n5.nabble.com/troubles-camel-example-spring-xquery-modified-including-camel-mina-tp2471729p2473292.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: troubles camel-example-spring-xquery modified including camel-mina

Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, Aug 12, 2010 at 12:01 PM, RomualdoGobbo
<Ro...@newlog.it> wrote:
>
> Hi,
> could you help me to find the JIRA ticket regarding the new feature?
https://issues.apache.org/activemq/browse/CAMEL-1077



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Re: troubles camel-example-spring-xquery modified including camel-mina

Posted by RomualdoGobbo <Ro...@newlog.it>.
Hi,
could you help me to find the JIRA ticket regarding the new feature?
Regards,
Romualdo

Claus Ibsen-2 [via Camel] wrote:
> Hi
>
> Ah the mina component doesn't support consuming from a remote IP address.
> when you do from it's supposed to be the localhost (eg act as a server).
>
> There is a ticket in JIRA to add a new feature to Camel mina to allow
> for what you want.
> Most likely it will be implemented in the camel-netty component.
> Apache Mina seems to be progressing very slow.
> They haven't released Mina 2.0 yet despite working with it for 2+ years.
>
> On Wed, Aug 11, 2010 at 5:37 PM, RomualdoGobbo <[hidden email] 
> </user/SendEmail.jtp?type=node&node=2472558&i=0>> wrote:
>
> >
> > Claus,
> > I don't know why the IP Address is logged in this fashion!
> > In the following <route> portion of camelContext.xml below
> >
> > <route>
> > <from
> > uri="mina:tcp://192.168.1.223:3000?textline=true&sync=false"/>
> > <to uri="xquery:myTransform.xquery"/>
> > <to uri="jms:MyQueue"/>
> > </route>
> >
> >
> > the uri is compliant to the notation (maybe have you to add another 
> "/"?).
> >
> > The IP is UP and running in our private LAN and is monitored via
> > HyperTerminal WinSocket since the last day. The aim is to capture the
> > incoming flow from the above IP address and insert It in the queue.
> >
> > Many thank for your help.
> >
> > Romualdo.
> > P.S. for your convenience the previous attached .rar file contains the
> > complete project.
> > --
> > View this message in context: 
> http://camel.465427.n5.nabble.com/troubles-camel-example-spring-xquery-modified-including-camel-mina-tp2471729p2472079.html 
> <http://camel.465427.n5.nabble.com/troubles-camel-example-spring-xquery-modified-including-camel-mina-tp2471729p2472079.html?by-user=t>
> > Sent from the Camel Development mailing list archive at Nabble.com.
> >
>
>
>
> -- 
> Claus Ibsen
> Apache Camel Committer
>
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com 
> <http://fusesource.com?by-user=t>
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>
>
> ------------------------------------------------------------------------
> View message @ 
> http://camel.465427.n5.nabble.com/troubles-camel-example-spring-xquery-modified-including-camel-mina-tp2471729p2472558.html 
>
> To unsubscribe from Re: troubles camel-example-spring-xquery modified 
> including camel-mina, click here 
> <http://camel.465427.n5.nabble.com/template/NodeServlet.jtp?tpl=unsubscribe_by_code&node=2472079&code=Um9tdWFsZG8uR29iYm9AbmV3bG9nLml0fDI0NzIwNzl8LTEyMjI2NjQ0NQ==>. 
>
>


-- 
+-----------------------------------------------------------------------+
Company: NEWLOG Consulting Srl
Message from: Romualdo Gobbo - CEO
Pza Carrobiolo 5 - 20052 MONZA (MB) - ITALY
Tel +39 039 2302833
Fax +39 039 2302832
Mobile +39 335 213886
Geo 45°35'13.8"N/09°16'36.2"E
E-mail: Romualdo.Gobbo@newlog.it
http://www.newlog.it
WAP: wap.newlog.it
+-----------------------------------------------------------------------+

- Disclaimer -
This email and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) or the taking of any action in reliance on the contents, by persons other than the designated recipient(s) is strictly prohibited.

If you have received this email in error, please notify the sender either by telephone or by email and delete the material from any computer.

Thank you for your cooperation.


-- 
View this message in context: http://camel.465427.n5.nabble.com/troubles-camel-example-spring-xquery-modified-including-camel-mina-tp2471729p2473061.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: troubles camel-example-spring-xquery modified including camel-mina

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Ah the mina component doesn't support consuming from a remote IP address.
when you do from it's supposed to be the localhost (eg act as a server).

There is a ticket in JIRA to add a new feature to Camel mina to allow
for what you want.
Most likely it will be implemented in the camel-netty component.
Apache Mina seems to be progressing very slow.
They haven't released Mina 2.0 yet despite working with it for 2+ years.

On Wed, Aug 11, 2010 at 5:37 PM, RomualdoGobbo <Ro...@newlog.it> wrote:
>
> Claus,
> I don't know why the IP Address is logged in this fashion!
> In the following <route> portion of camelContext.xml below
>
>    <route>
>      <from
> uri="mina:tcp://192.168.1.223:3000?textline=true&amp;sync=false"/>
>      <to uri="xquery:myTransform.xquery"/>
>      <to uri="jms:MyQueue"/>
>    </route>
>
>
> the uri is compliant to the notation (maybe have you to add another "/"?).
>
> The IP is UP and running in our private LAN and is monitored via
> HyperTerminal WinSocket since the last day. The aim is to capture the
> incoming flow from the above IP address and insert It in the queue.
>
> Many thank for your help.
>
> Romualdo.
> P.S. for your convenience the previous attached .rar file contains the
> complete project.
> --
> View this message in context: http://camel.465427.n5.nabble.com/troubles-camel-example-spring-xquery-modified-including-camel-mina-tp2471729p2472079.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus