DarVar
DarVar

Reputation: 18144

Configuring Netty with Spring IoC

Has anyone used Spring to configure Netty?

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

Upvotes: 11

Views: 11442

Answers (2)

Abe
Abe

Reputation: 9031

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.

Upvotes: 15

Norman Maurer
Norman Maurer

Reputation: 23567

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

Upvotes: 0

Related Questions