Re: Issue with use of SSLFilter with a custom codec

2013-01-06 Thread James Gough
Thanks, Claus. I'll try to get something later this week. On 1/6/13 2:22 AM, Claus Ibsen wrote: Hi James Thanks for sharing your solution. Do you mind help us with updating the camel-mina docs with your use-case and solution? http://camel.apache.org/mina If so feel free to log a JIRA ticket

Re: Issue with use of SSLFilter with a custom codec

2013-01-06 Thread Claus Ibsen
Hi James Thanks for sharing your solution. Do you mind help us with updating the camel-mina docs with your use-case and solution? http://camel.apache.org/mina If so feel free to log a JIRA ticket and attach a .txt file with a little description of the use-case and the Camel route snippet. Then w

Re: Issue with use of SSLFilter with a custom codec

2013-01-04 Thread James Gough
Solution found (or stumbled upon): I added the following filter to my resources.groovy file: myCodecFilter(org.apache.mina.filter.codec.ProtocolCodecFilter, mycodec) And I changed the URL so that: 1. I removed the codec entry 2. I added "&allowDefaultCodec=false" to disable the adding of the

Re: Issue with use of SSLFilter with a custom codec

2013-01-04 Thread James Gough
More data points: -It doesn't matter whether I set the client field to true, it behaves the same way no matter what the field is set to -When I called the "sendMessage" method with the grails routing plugin, it was fine with me passing it a string until I added the SSLFilter, then it threw a

Re: Issue with use of SSLFilter with a custom codec

2013-01-03 Thread James Gough
I'm using Camel 2.9.0 with the Mina 1.x component with the mina-filter-ssl component imported. I am using the Grails routing plugin's sendMessage method to the following URL: "mina:tcp://${hostname}:${port}?sync=false&minaLogger=true&codec=#mycodec&filters=#sslClientFilter" The SSLFilter is

Re: Issue with use of SSLFilter with a custom codec

2013-01-03 Thread Claus Ibsen
Hi What Camel version are you using? And which Camel component are you referring to? Could it be camel-mina ? eg the Mina 1.x based component? And how have you configured the Camel component/route? On Thu, Jan 3, 2013 at 1:11 AM, James Gough wrote: > I am trying to use SSLFilter with a custom

Issue with use of SSLFilter with a custom codec

2013-01-02 Thread James Gough
I am trying to use SSLFilter with a custom codec, but it appears that my client (for which I have called SSLFilter's "setUseClientMode" method with a setting of true), is calling SSLFilter prior to calling the codec, and it calls the decoder's decode method rather than the encoder's encode meth