Author: jim.ma
Date: 2014-06-21 21:24:38 -0400 (Sat, 21 Jun 2014)
New Revision: 18755
Modified:
container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java
container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml
Log:
[JBWS-3733]:Add endpointMetrics in EndpointService
Modified:
container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java
===================================================================
---
container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java 2014-06-20
17:34:46 UTC (rev 18754)
+++
container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java 2014-06-22
01:24:38 UTC (rev 18755)
@@ -63,9 +63,11 @@
import org.jboss.ws.common.management.AbstractServerConfig;
import org.jboss.ws.common.management.ManagedEndpoint;
import org.jboss.ws.common.monitoring.ManagedRecordProcessor;
+import org.jboss.wsf.spi.SPIProvider;
import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.wsf.spi.deployment.Endpoint;
import org.jboss.wsf.spi.deployment.EndpointType;
+import org.jboss.wsf.spi.management.EndpointMetricsFactory;
import org.jboss.wsf.spi.security.EJBMethodSecurityAttributeProvider;
/**
@@ -114,6 +116,8 @@
for (final RecordProcessor processor : processors) {
registerRecordProcessor(processor, endpoint);
}
+ final EndpointMetricsFactory factory =
SPIProvider.getInstance().getSPI(EndpointMetricsFactory.class);
+ endpoint.setEndpointMetrics(factory.newEndpointMetrics());
registerEndpoint(endpoint);
endpoint.getLifecycleHandler().start(endpoint);
}
Modified:
container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml
===================================================================
---
container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml 2014-06-20
17:34:46 UTC (rev 18754)
+++
container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml 2014-06-22
01:24:38 UTC (rev 18755)
@@ -48,10 +48,6 @@
<property name="last"
class="boolean">true</property>
</deploymentAspect>
- <deploymentAspect
class="org.jboss.ws.common.deployment.EndpointMetricsDeploymentAspect">
- <property name="provides"
class="java.lang.String">EndpointMetrics</property>
- </deploymentAspect>
-
<deploymentAspect
class="org.jboss.ws.common.deployment.EndpointNameDeploymentAspect">
<property name="requires"
class="java.lang.String">URLPattern</property>
<property name="provides"
class="java.lang.String">EndpointName</property>
Show replies by date