Re: [camel-mina2] Bug in default UDP codec (Mina2UdpProtocolCodecFactory)?

2012-12-09 Thread Mikael Fernandus Simalango
On Mon, Dec 3, 2012 at 6:58 PM, Claus Ibsen wrote: > On Mon, Dec 3, 2012 at 10:44 AM, Christian Ohr > wrote: >> The HL7 Codec works on TCP messages, not UDP. On the other hand I >> don't think that the codec really depends on that. >> Note that HL7 messages have specific begin and end bytes that

Re: [camel-mina2] Bug in default UDP codec (Mina2UdpProtocolCodecFactory)?

2012-12-03 Thread Claus Ibsen
On Mon, Dec 3, 2012 at 10:44 AM, Christian Ohr wrote: > The HL7 Codec works on TCP messages, not UDP. On the other hand I > don't think that the codec really depends on that. > Note that HL7 messages have specific begin and end bytes that make it > rather easy to cumulate the parts. > Ah yeah goo

Re: [camel-mina2] Bug in default UDP codec (Mina2UdpProtocolCodecFactory)?

2012-12-03 Thread Christian Ohr
The HL7 Codec works on TCP messages, not UDP. On the other hand I don't think that the codec really depends on that. Note that HL7 messages have specific begin and end bytes that make it rather easy to cumulate the parts. Christian 2012/12/3 Claus Ibsen : > Hi > > The camel-hl7 component has a mi

Re: [camel-mina2] Bug in default UDP codec (Mina2UdpProtocolCodecFactory)?

2012-12-03 Thread Claus Ibsen
Hi The camel-hl7 component has a mina codec that works with hl7 message formats. And I think there is some logic in there to "assemble" udp messages that is larger than 2048. I remembered some patches we got years ago about something related to this. Maybe take a peek in the camel-hl7 source code

Re: [camel-mina2] Bug in default UDP codec (Mina2UdpProtocolCodecFactory)?

2012-11-26 Thread Mikael Fernandus Simalango
On Sat, Nov 24, 2012 at 5:29 PM, Claus Ibsen wrote: > > So have you tried with setting auto expand = false in camel-mina2, and > see if that fixes the issue for you? > > Hi Claus, Thanks for your comment. I have conducted more tests to trace the root cause. Unfortunately, setting auto expand to

Re: [camel-mina2] Bug in default UDP codec (Mina2UdpProtocolCodecFactory)?

2012-11-24 Thread Claus Ibsen
On Thu, Nov 22, 2012 at 8:04 AM, Mikael Fernandus S wrote: > Hi, > > While testing Camel Mina 2 component, we noticed that big message > payload received via UDP endpoint was always truncated to 2048 bytes > at Mina2Consumer. We did some investigation and found out that this > problem was caused b

Re: [camel-mina2] Bug in default UDP codec (Mina2UdpProtocolCodecFactory)?

2012-11-22 Thread Mikael Fernandus Simalango
Here I provide a sample test case to reproduce the surprising behavior. public class Mina2UdpTest extends CamelTestSupport { private static volatile int port; private static volatile String longMessage = "A very long UTF-8 string with length more than 2048 bytes"; @BeforeClass pub

[camel-mina2] Bug in default UDP codec (Mina2UdpProtocolCodecFactory)?

2012-11-21 Thread Mikael Fernandus S
Hi, While testing Camel Mina 2 component, we noticed that big message payload received via UDP endpoint was always truncated to 2048 bytes at Mina2Consumer. We did some investigation and found out that this problem was caused by the default UDP codec. Comparing default UDP codec in Mina 2 with its