Skip navigation links

Package com.sun.xml.ws.transport.local

Transport implementations that work inside the single JVM.

See: Description

Package com.sun.xml.ws.transport.local Description

Transport implementations that work inside the single JVM. Useful for testing.

Transports implemented in this package work off the exploded war file image in the file system — it should have the same file layout that you deploy into, say, Tomcat. They then look for WEB-INF/sun-jaxws.xml to determine what services are in the application, and then deploy them in a servlet-like environment.

This package comes with two transports. One is the legacy "local" transport, which effectively deploys a new service instance every time you create a new proxy/dispatch. This is not only waste of computation, but it prevents services of the same application from talking with each other.

The "in-vm" transport is the modern version of the local transport that fixes this problem. You first deploy a new application by using InVmServer, obtain its address, configure the JAX-WS RI with that endpoint, then use that to talk to the running service.

Skip navigation links

Copyright © 2015 Oracle Corporation. All rights reserved.