Skip to main content

Java

Migrating Logback Configuration from XML to Groovy

I’ve recently switched logback configuration of our application from XML to Groovy. Configuration file is not about 5 times smaller and can be displayed on one screen! Groovy helped to remove duplicating parts of configurations by using for loop. The moving was easy thanks to online conversion tool. And don’t forget to add a groovy-all runtime dependency to your project config.

Netty: How to Initiate SSL Handshake From Client

I have had spent some time recently making netty 3.6 sending some message when connection has been established.

What documentation suggests to do is to extend SimpleChannelUpstreamHandler and override method channelConnected(...). It works fine unless SslHandler is used in the pipeline. If handler is present, channelConnected() was never called on my handler.