Author: jim.ma
Date: 2013-06-25 02:28:04 -0400 (Tue, 25 Jun 2013)
New Revision: 17735
Modified:
container/jboss72/branches/jbossws-jboss720/server-integration/src/main/java/org/jboss/as/webservices/publish/EndpointPublisherImpl.java
Log:
Back port JBWS-3654
Modified:
container/jboss72/branches/jbossws-jboss720/server-integration/src/main/java/org/jboss/as/webservices/publish/EndpointPublisherImpl.java
===================================================================
---
container/jboss72/branches/jbossws-jboss720/server-integration/src/main/java/org/jboss/as/webservices/publish/EndpointPublisherImpl.java 2013-06-25
06:14:04 UTC (rev 17734)
+++
container/jboss72/branches/jbossws-jboss720/server-integration/src/main/java/org/jboss/as/webservices/publish/EndpointPublisherImpl.java 2013-06-25
06:28:04 UTC (rev 17735)
@@ -130,9 +130,11 @@
dam.deploy(dep);
// [JBWS-3441] hack - fallback JAXWS invocation handler for dynamically
generated deployments
for (Endpoint ep : dep.getService().getEndpoints()) {
- ep.setState(EndpointState.STOPPED);
- ep.setInvocationHandler(new InvocationHandlerJAXWS());
- ep.setState(EndpointState.STARTED);
+ synchronized (ep) {
+ ep.setState(EndpointState.STOPPED);
+ ep.setInvocationHandler(new InvocationHandlerJAXWS());
+ ep.setState(EndpointState.STARTED);
+ }
}
} finally {
if (dep != null) {
Show replies by date