Author: alessio.soldano(a)jboss.com
Date: 2011-05-19 12:03:44 -0400 (Thu, 19 May 2011)
New Revision: 14419
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws1909/TestEndpointImpl.java
Log:
Avoid injection just for logging
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws1909/TestEndpointImpl.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws1909/TestEndpointImpl.java 2011-05-19
15:31:41 UTC (rev 14418)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws1909/TestEndpointImpl.java 2011-05-19
16:03:44 UTC (rev 14419)
@@ -23,9 +23,7 @@
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import javax.annotation.Resource;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebService;
@@ -35,10 +33,7 @@
import javax.xml.namespace.QName;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.ws.WebServiceContext;
-import javax.xml.ws.handler.MessageContext;
-import org.jboss.logging.Logger;
import org.jboss.wsf.spi.SPIProvider;
import org.jboss.wsf.spi.SPIProviderResolver;
import org.jboss.wsf.spi.classloading.ClassLoaderProvider;
@@ -54,21 +49,9 @@
@Stateless
public class TestEndpointImpl implements TestEndpoint
{
- // provide logging
- private final static Logger log = Logger.getLogger(TestEndpointImpl.class);
-
- @Resource
- WebServiceContext context;
-
@WebMethod
public String echo(String input)
{
- MessageContext msgContext = context.getMessageContext();
- for (String key : msgContext.keySet())
- {
- log.info(key + "=" + msgContext.get(key));
- }
-
ClassLoader cl =
ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader();
SPIProvider spiProvider = SPIProviderResolver.getInstance(cl).getProvider();
EndpointRegistry registry = spiProvider.getSPI(EndpointRegistryFactory.class,
cl).getEndpointRegistry();
Show replies by thread