Package com.sun.xml.ws.test.container.gf
Class GlassfishContainer
java.lang.Object
com.sun.xml.ws.test.container.AbstractApplicationContainer
com.sun.xml.ws.test.container.gf.GlassfishContainer
- All Implemented Interfaces:
ApplicationContainer
ApplicationContainer implementation for Glassfish.
Connection is made via JMX, so this works with GF running anywhere.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeploy(DeployedService service) Starts a service inside a container, making it ready to process requests.Returns the transport that this container uses for testing.voidshutdown()Stops the container.voidstart()Starts the container.Methods inherited from class com.sun.xml.ws.test.container.AbstractApplicationContainer
assembleWar, copyRuntimeLibraries, createWARZip, getUnsupportedUses, updateWsgenOpts, updateWsitClient
-
Constructor Details
-
GlassfishContainer
public GlassfishContainer(WsTool wsimport, WsTool wsgen, URL httpServerUrl, String host, int port, String userName, String password, boolean httpspi) throws Exception - Parameters:
httpServerUrl- URL of the HTTP server. This is where we access deployed applications.host- The host name of the JMX connection.port- The administration TCP port. Usually 4848.userName- Admin user name. Needed to connect to the admin port.password- Admin user password.- Throws:
Exception
-
-
Method Details
-
getTransport
Description copied from interface:ApplicationContainerReturns the transport that this container uses for testing.- Returns:
- For example, "http", "local", "tcp", "jms", etc. It should match the scheme portion of the endpoint address URI. Never null. This value is compared in the descriptor's transport declaration to decide wheter to run a test or not.
-
start
Description copied from interface:ApplicationContainerStarts the container. This is invoked at the very beginning before any service is deployed.- Throws:
Exception
-
shutdown
Description copied from interface:ApplicationContainerStops the container. This is invoked at the end to clean up any resources.- Throws:
Exception
-
deploy
Description copied from interface:ApplicationContainerStarts a service inside a container, making it ready to process requests.- Throws:
Exception
-