Hi,
I've been looking at Netty (http://www.jboss.org/netty/) and have written a NettyGateway as an exercise and thought that this might be interesting for others.
Workspace : http://anonsvn.jboss.org/repos/labs/labs/jbossesb/workspace/dbevenius/nettygateway/
Quickstart: http://anonsvn.jboss.org/repos/labs/labs/jbossesb/workspace/dbevenius/nettygateway/product/samples/quickstarts/netty_gateway/
This is a very simple example of a client that sends a String to the gateway. The gateway will package the sent String (using the configured decoder) into a ESB Message and dispatch it to the target service using the ServiceInvoker.
This will be a synchronous call and a reply will be returned back to the caller.
Gateway class: http://anonsvn.jboss.org/repos/labs/labs/jbossesb/workspace/dbevenius/nettygateway/product/rosetta/src/org/jboss/soa/esb/listeners/gateway/netty/NettyGatewayListener.java
Netty has quite a few examples and among others it has an http example that might be interesting. The examples and docs can be found here:
http://www.jboss.org/netty/documentation.html
If you take a look and you'd like to see something like this added to the code base then please let us know. All feedback is appreciated.
regards,
/Daniel