hey mark,
thanks for your reply.
yah, this is the general approach. usually there is some other spring consuming framework that takes care of all the beans.
in this context though, there is no other framework involved in the application. it is a server application based on
jboss netty. the architecture is set up to have a service layer. as of now, they are all wired together in a ServiceLocator class, as all of these services are singletons and are instantiated once in a static initializer and that's it.
now though, a service cannot run as a singleton. and that's where i find it's easier to hand this task over to spring.
as for the service consuming classes, these can be message handlers that are triggered by the netty framework that need some services to perform their task.