Author: jim.ma
Date: 2009-12-09 23:18:20 -0500 (Wed, 09 Dec 2009)
New Revision: 11251
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java
Log:
[JBWS-2791]:revert the use reflection stuff change
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java
===================================================================
---
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java 2009-12-10
04:13:04 UTC (rev 11250)
+++
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java 2009-12-10
04:18:20 UTC (rev 11251)
@@ -129,7 +129,6 @@
//Load additional configurations
loadAdditionalConfigExt(appCtx, servletConfig);
- correctJmsEndpointAddress(endpoint, bus);
}
private void initEndpoint(ServletConfig servletConfig)
@@ -268,52 +267,4 @@
throw new ServletException(e);
}
}
-
- private void correctJmsEndpointAddress(Endpoint endpoint, Bus bus) throws
ServletException {
- for (Server server : bus.getExtension(ServerRegistry.class).getServers()) {
- if (server.getEndpoint() instanceof JaxWsEndpointImpl) {
- JaxWsEndpointImpl endpointImpl = (JaxWsEndpointImpl)server.getEndpoint();
- try
- {
- Field field =
JaxWsEndpointImpl.class.getDeclaredField("implInfo");
- field.setAccessible(true);
- Object object = field.get(endpointImpl);
- if (object != null) {
- JaxWsImplementorInfo implementInfo = (JaxWsImplementorInfo)object;
- Class endpointClass = implementInfo.getImplementorClass();
- if
(endpoint.getTargetBeanClass().getName().equals(endpointClass.getName())
- &&
JMS_NS.equals(server.getEndpoint().getEndpointInfo().getTransportId())) {
- //server.getDestination().getAddress()
- AddressType address =
server.getEndpoint().getEndpointInfo().getExtensor(AddressType.class);
- if (address == null)
- {
- //java first : the address is from jbossws-cxf.xml
- JMSDestination jmsDestination =
(JMSDestination)server.getDestination();
- String url = "jms://" +
jmsDestination.getJmsConfig().getTargetDestination();
- if (jmsDestination.getJmsConfig().getReplyDestination() != null)
{
- url = url + "?replyToName=" +
jmsDestination.getJmsConfig().getReplyDestination();
- endpoint.setAddress(url);
- }
-
- } else
- {
- //wsdl first: the address is from wsdl
- String jmsURL = "jms://" +
address.getJndiDestinationName();
- if (address.getJndiReplyDestinationName() != null)
- {
- jmsURL = jmsURL + "?replyToName=" +
address.getJndiReplyDestinationName();
- endpoint.setAddress(jmsURL);
- }
- }
- }
-
- }
- }
- catch (Exception e)
- {
- throw new ServletException(e);
- }
- }
- }
- }
}
Show replies by date