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

Retrieve ServletRequest and ServletResponse

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jbossws-1.0.0
    • None
    • jbossws-native
    • None

      I found a reference to using the MessageContext to retrieve this information:
      Code:

      MessageContext messageContext = this.ctx.getMessageContext();
      HttpServletRequest request = (HttpServletRequest) messageContext.getProperty("transport.http.servletRequest");

      but I looked at my message context at runtime and it wasn't holding any property. The ServletEndpointContextImpl (the JBWS object implementing ServletEndpointContext) does contain references to the HttpServletRequest and HttpServletResponse.

      What is the J2EE-compliant way to retrieve this information?

            tdiesler@redhat.com Thomas Diesler
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: