11

Has anyone used Spring to configure Netty?

I'm looking for an example or description on how I can configure Netty with Spring.

2 Answers 2

15

Yes, you can. Look at the following jet java game server written in Netty, the servers are all configured using spring. Take a look at the server-beans.xml, netty-handlers.xml etc in this project for reference.

For configuring Netty within a spring web-app look at the following link.
[Update] Recently I have also blogged about doing it with a java only configuration using no xml.

Sign up to request clarification or add additional context in comments.

Comments

0

Well Netty use just simple "pojos" so I see no problem here. Just create your bean definations as usual

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.