Hi everybody,
write it just to share our interseting results :
We have our own Java Mail Server - full size
application. We got to implement remote control to
this thing - thru servlets. Instead of making some
kind of middleware (sockets, RMI, etc...) we tried to
start and run Mail Server under the same JVM as for
servlets - under ServletExec...
It was enough to make one static method (kind of
App app = App.getNewInstance();) which invokes
main App's method, and one static class variable -
App app.
Every servlet tries to get instance of Application
- just the first has luck to start it, others get the
pointer "app" and this way get access to all public
variables/methods.
Conclusion : minor changes in application allow to
convert it to something (Servletion?) servlet driven,
without lost the possibility to run the application
usual way (java app...).
Looks like games with static classes brought good
crop. The technic is not too complicated, results are
impressive. We are running NT4, IIS4, ServletExec2...
Have anybody something similar ?
Alex Semenov. Wired Solutions Inc. Toronto.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html