You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Lukas O." <lu...@sonynetservices.com> on 2007/03/07 13:41:11 UTC

Access to AxisEngine

Hello.

I want to get the corect instance of AxisEngine when starting up jetty.
I am doing this like this (only important calls included):

private HttpServer server;
...
            // Create the server
            server = new HttpServer();

            // Create a port listener
            SocketListener listener = new SocketListener();
            listener.setPort(serverPort.intValue());
            server.addListener(listener);

            // Create a context
            HttpContext context = new HttpContext();
            context.setContextPath("/");
            server.addContext(context);

            // Create a servlet container
            servlets = new ServletHandler();
            context.addHandler(servlets);
            ...
            String className = AxisServlet.class.getName();
            String publishingPoint = "/services/*";
            ServletHolder servletHolder = servlets.addServlet(className,
                 publishingPoint, className, publishingPoint);
            ...
            server.start();

This starts the server and publishes axis.
I can access axis correctly.

However I have not yet deployed any service to axis.
I would prefer not to send a soap request to publish it
(the WSDD api/code provides methods to do that)
so I need the AxisEngine instance to deploy,
however I have not yet managed/found out how to get it.

Can you tell me how to get the AxisEngine instance?
-- 
View this message in context: http://www.nabble.com/Access-to-AxisEngine-tf3361843.html#a9352118
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org