Hi Michael From: "Michael" <[EMAIL PROTECTED]> > I'm working on exactly this. I have it working so I can attach my > source file. I cut & pasted a lot of code from the ManagerServlet > class. I would like to propose refactoring the ManagerServlet class to > separate the servlet specific parts and the non-servlet parts. This > would facilitate reuse outside a servlet engine. I'm curious what James > thinks about this. > > In the mean time, here is my code. It's not pretty (I hardcoded some > stuff just to get it working) but it will at least get you going.
While tidying up my inbox I stumbled on this old message I'd missed - sorry Michael. I'm not sure if you saw it or not but I refactored Messenger a little a week or two ago so that it can be run quite happily from the command line (via the org.apache.commons.messagelet.Main class) or from inside a Servlet engine by performing a similar refactor to the one you posted. It might be nice to support Messenger inside an Avalon container also. The only downside right now is that the MessageDrivenObject takes a ServletContext on initialisation; we should refactor that to maybe an MDOContext to avoid being dependend on the Servlet engine. James ------- http://radio.weblogs.com/0112098/ __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: <mailto:commons-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:commons-user-help@;jakarta.apache.org>
