Issue Details (XML | Word | Printable)

Key: OPENEJB-917
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jarek Gawor
Reporter: Jarek Gawor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenEJB

JAX-WS 2.1: Support for WebServiceContext.getEndpointReference()

Created: 16/Sep/08 05:04 PM   Updated: 24/Sep/08 09:12 PM
Return to search
Component/s: webservices
Affects Version/s: (trunk/openejb3)
Fix Version/s: 3.1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works OPENEJB-917.patch 2008-09-16 05:12 PM Jarek Gawor 13 kB

Resolution Date: 24/Sep/08 09:11 PM


 Description  « Hide
In order to support JAX-WS 2.1, the EjbWsContext.getEndpointReference() methods need to be implemented correctly. Each JAX-WS provider (Axis2, CXF, etc.) has its own way of creating the EndpointReference and so EjbWsContext.getEndpointReference() will need to delegate the call to some provider-specific function to generate the EndpointReference.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jarek Gawor added a comment - 16/Sep/08 05:12 PM
The attached patch adds an AddressingSupport interface that defines getEndpointReference() functions and modifies the EjbWsContext class to delegate the getEndpointReference() calls to the AddressingSupport functions. Each JAX-WS provider will have its own implementation of the AddressingSupport interface and will pass an instance of it on the Web Service invocation (like the MessageContext or Interceptor today).
In cases where the AddressingSupport instance is not passed with the request, the default NoAddressingSupport will be used which will generate the UnsupportedOperationException (just like before).

Jarek Gawor added a comment - 16/Sep/08 05:46 PM
Btw, the is org.apache.openejb.core.singleton.EjbWsContext and org.apache.openejb.core.stateless.EjbWsContext which are identical at this point. If they are going to be the same in the future, it might be nicer to have one copy of this class and move it to org.apache.openejb.core.webservices package (or something like that).

David Blevins added a comment - 24/Sep/08 09:11 PM
Sending container/openejb-core/src/main/java/org/apache/openejb/core/singleton/EjbWsContext.java
Sending container/openejb-core/src/main/java/org/apache/openejb/core/singleton/SingletonContainer.java
Sending container/openejb-core/src/main/java/org/apache/openejb/core/stateless/EjbWsContext.java
Sending container/openejb-core/src/main/java/org/apache/openejb/core/stateless/StatelessContainer.java
Adding container/openejb-core/src/main/java/org/apache/openejb/core/webservices/AddressingSupport.java
Adding container/openejb-core/src/main/java/org/apache/openejb/core/webservices/NoAddressingSupport.java
Transmitting file data ......
Committed revision 698737.