11

Has anyone used Spring to configure Netty?

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

fsenart
  • 5,661
  • 2
  • 35
  • 54
DarVar
  • 16,882
  • 29
  • 97
  • 146

2 Answers2

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.

Community
  • 1
  • 1
Abe
  • 8,623
  • 10
  • 50
  • 74
0

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

Norman Maurer
  • 23,104
  • 2
  • 33
  • 31