camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Webb <>
Subject custom netty decoder in OSGi
Date Wed, 22 Oct 2014 18:31:12 GMT
I have created a custom netty decoder using Camel 2.13.2 in ServiceMix
5.1.2.  I would like to register the decoder as a service in ServiceMix.
All goes well, except that when I try and use the decoder in a separate
bundles blueprint, I get the error message:

14:21:21,830 | WARN  | mix-5.1.2/deploy | NettyConfiguration
| 214 - org.apache.camel.camel-netty - 2.13.2 | The decoder
ecoder@1f2293f6 is not @Shareable or an ChannelHandlerFactory instance. The
decoder cannot safely be used.

I added the annotation @Sharable to the decoder and get the same error
message after redeploying.  I even tried creating a class that implements
ChannelHandlerFactory and got the same message.

Is there a better approach to get this working?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message