Hello Claus,

I tested the changes in my environment (sent a message, removed network
connectivity and sent another message, waited until the connection timed
out, restored network connectivity and sent another message). They worked.
Thanks!

regards,
Gareth


Claus Ibsen-2 wrote:
> 
> On Tue, May 11, 2010 at 8:35 AM, Claus Ibsen <claus.ib...@gmail.com>
> wrote:
>> Hi Gareth
>>
>> Thanks for your findings. I will get it committed to trunk. (Apache
>> SVN is not working at this moment).
>>
> 
> Committed fixes to trunk. Gareth can you test it on your system?
> 
>>
>> On Tue, May 11, 2010 at 4:55 AM, Gareth Collins
>> <gareth_coll...@hotmail.com> wrote:
>>>
>>> I made a fix for the SSLHandler issue which worked for me (it will now
>>> reconnect correctly):
>>>
>>> (1) In NettyProducer.java - moved initialization of TCP clientPipeline
>>> from
>>> setupTCPCommunication to openConnection. clientPipeline is now retrieved
>>> from the factory every time a connection is made:
>>>
>>>    private void openConnection() throws Exception {
>>>        ChannelFuture channelFuture;
>>>
>>>        if (clientPipelineFactory == null) {
>>>            clientPipelineFactory = new ClientPipelineFactory(this);
>>>        }
>>>        clientPipeline = clientPipelineFactory.getPipeline();
>>>        clientBootstrap.setPipeline(clientPipeline);
>>>
>>> (2) In ClientPipelineFactory, every time the ChannelPipeline is
>>> retrieved
>>> SSL is reinitialized:
>>>
>>>    public ChannelPipeline getPipeline() throws Exception {
>>>        if (channelPipeline != null) {
>>>                // reinitialize ssl
>>>                if (channelPipeline.remove("ssl") != null)
>>>                {
>>>                      
>>>  channelPipeline.addFirst("ssl",configureClientSSLOnDemand());
>>>                }
>>>            return channelPipeline;
>>>        }
>>>
>>> If similar changes could be made in SVN, it would be much appreciated.
>>>
>>> thanks in advance,
>>> Gareth Collins
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Recovery-From-Netty-Connection-Drop-tp28467631p28519411.html
>>> Sent from the Camel - Users 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
>>
> 
> 
> 
> -- 
> 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
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Recovery-From-Netty-Connection-Drop-tp28467631p28525522.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to