If it'd be useful to people, I can make a WAR file you can deploy, rather than needing to go through CVS, etc. The activation procedures for most common WAR containers are listed at http://biomoby.open-bio.org/CVS_CONTENT/moby-live/Java/docs/sawsdlServlet.html#deploy

On the other hand, the most lightweight way to deploy a servlet if you're only interested in hosting the one is to use the Tiny Java Web Server in your code and load the SoapServlet class directly using its API. In its simpliest form the code would be:

SoapServlet soapServlet = new SoapServlet();

final Acme.Serve.Serve srv = new Acme.Serve.Serve();
java.util.Properties properties = new java.util.Properties();
properties.put("port", portNum);  //pick a portNum above 1024
srv.arguments = properties;
srv.addServlet(servletPath, soapServlet); // our deployment
Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
        public void run() {
                       try {
                           srv.notifyStop();
                       }catch(Exception e) {
logger.warn("Trouble shutting down SOAP proxy servlet on port "
                                       + portNum + ": " + e);
                       }
                       srv.destroyAllServlets();
                   }
               }));
new Thread(){public void run(){srv.serve();}}.start();

Regards,

Paul

Jerzy Orlowski wrote:
Hi

I managed to get the code (attached).
See download instructions at
http://biomoby.open-bio.org/CVS_CONTENT/moby-live/Java/docs/CVS.html
http://biomoby.open-bio.org/CVS_CONTENT/moby-live/Java/docs/Download.html#easyservlet

However, I have never deployed a servlet before. Could anyone help me?

Jerzy


Alan R Williams wrote:
Thanks for the pointer Paul.  Where is the best place to see the code?
It's probably sensible for the "workflow running from a portlet"
people to look at it for comparison.

Thanks in advance,

Alan

------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information





------------------------------------------------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
------------------------------------------------------------------------

_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information

Reply via email to