You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Muhammad Ichsan <ic...@gmail.com> on 2014/05/06 12:26:50 UTC

Optional sync for Netty

Hi All

Is it possible to make response to be optional in Netty component?

The following routes still make all the response sent back to its
clients, regardless the body is.

<route>
   <from uri="netty:tcp://localhost:5150?textline=true" />
   <to uri="replyMaker" />
   <choice>
      <when>
         <simple>${body} == 'intan'</simple>
         <to uri="direct:just-in" />
      </when>
   </choice>
</route>

<route>
   <from uri="direct:just-in" />
   <setExchangePattern pattern="InOnly" /><!-- No effect. Implicit
sync=true in netty is stronger? -->
   <to uri="printingProcessor" />
</route>

Thanks

-- 
~The best men are men who benefit to others
http://www.michsan.web.id 一緒に勉強しましょう!

Yang berkualitas memang beda rasanya!
http://rizqi-cookies.com

Re: Optional sync for Netty

Posted by Muhammad Ichsan <ic...@gmail.com>.
On Tue, May 6, 2014 at 7:07 PM, Charles Moulliard <ch...@gmail.com> wrote:
> s optional, what did you plan to return to your client
> calling your TCP Server exposed by nett


There is a situation when my application is failed to get response
from a third party, the client must also get the same condition.





-- 
~The best men are men who benefit to others
http://www.michsan.web.id 一緒に勉強しましょう!

Yang berkualitas memang beda rasanya!
http://rizqi-cookies.com

Re: Optional sync for Netty

Posted by Charles Moulliard <ch...@gmail.com>.
If the response is optional, what did you plan to return to your client
calling your TCP Server exposed by netty component ?


On Tue, May 6, 2014 at 12:26 PM, Muhammad Ichsan <ic...@gmail.com> wrote:

> Hi All
>
> Is it possible to make response to be optional in Netty component?
>
> The following routes still make all the response sent back to its
> clients, regardless the body is.
>
> <route>
>    <from uri="netty:tcp://localhost:5150?textline=true" />
>    <to uri="replyMaker" />
>    <choice>
>       <when>
>          <simple>${body} == 'intan'</simple>
>          <to uri="direct:just-in" />
>       </when>
>    </choice>
> </route>
>
> <route>
>    <from uri="direct:just-in" />
>    <setExchangePattern pattern="InOnly" /><!-- No effect. Implicit
> sync=true in netty is stronger? -->
>    <to uri="printingProcessor" />
> </route>
>
> Thanks
>
> --
> ~The best men are men who benefit to others
> http://www.michsan.web.id 一緒に勉強しましょう!
>
> Yang berkualitas memang beda rasanya!
> http://rizqi-cookies.com
>



-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io