public final class InVmServer extends Object
This transport lets you deploy services in a servlet-like environment within the same VM. Unlike the local transport, which deploys a new server instance every time a new transport tube is created, in-VM transport maintains a server instance outside the transport, allowing multiple clients to talk to the same in-VM service instance.
For this reason, in-VM transport requires explicit "deploy" and "undeploy" operations.
| Constructor and Description |
|---|
InVmServer(File explodedWarDir) |
InVmServer(String id,
File explodedWarDir)
Deploys a new server instance.
|
InVmServer(String id,
List<WSEndpoint> endpoints) |
| Modifier and Type | Method and Description |
|---|---|
static InVmServer |
get(String id)
Obtains the running instance from the ID, or returns null
if not found.
|
String |
toString() |
void |
undeploy()
Gracefully terminates this service.
|
public InVmServer(@NotNull
String id,
File explodedWarDir)
throws IOException
id - Every server instance needs to have an unique ID.
If you want to set the ID by yourself, use this version.
Otherwise use the single argument version.explodedWarDir - The exploded war file image in the file system,
where services are loaded from.IOExceptionpublic InVmServer(@NotNull
String id,
List<WSEndpoint> endpoints)
throws IOException
IOExceptionpublic InVmServer(File explodedWarDir) throws IOException
IOExceptionpublic void undeploy()
@Nullable public static InVmServer get(String id)
Copyright © 2015 Oracle Corporation. All rights reserved.