Following my series of OSGi questions, now it's time for DS start/stop. Let' s say that I have the GreeterServer, which listens on the TCP port N.
If I were to use an activator, I would wrap the activator's stop method, so I could stop the server correctly (doing proper cleanup). However, with DS this looks kind of automatic and focused on instances. Maybe I'm missing something, but how would you implement cleanup and proper close of the server using DS? Thanks for all the input, Rodrigo

