Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3004

JAX-WS Port injected using @WebServiceRef retains last message

XMLWordPrintable

    • Workaround Exists
    • Hide

      Inject a service instead and create the port at the time of the call, this will leave the port instance to be garbage collected along with the message after the call has completed.

      Show
      Inject a service instead and create the port at the time of the call, this will leave the port instance to be garbage collected along with the message after the call has completed.

      The class org.jboss.ws.core.CommonClient contains the following member variable: -

      // Output parameters
      protected EndpointInvocation epInv;

      Within CommonClient this variable is only accessed from within the invoke method and each time the invoke method is called the EndpointInvocation is recreated - however the member variable is in place as org.jboss.ws.core.jaxrpc.client.CallImpl which extends CommonClient access it for subsequent calls.

              darran.lofthouse@redhat.com Darran Lofthouse
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: