【发布时间】:2012-02-13 19:41:49
【问题描述】:
我试图遵循这个例子
http://www.mulesoft.org/documentation/display/MULE3USER/Building+Web+Services+with+CXF
在一个遗留项目上,然后我创建一个主类,它的主方法像这样启动 spring(或者我认为这就是这样做的方法)
XmlBeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource(
"mule-config.xml"));
但是我然后 telnet 到我的 web 服务端口,它不起作用!!!
- 它应该启动它自己的 Web 容器/服务器,还是我需要部署到 tomcat 或某个应用服务器来完成这项工作
- 如果#1 的答案是需要部署,为什么在他们的示例中指定了一个绝对网址,就像它会为您启动一个?
如何让它工作?
这是我的 xml..
<flow name="helloService">
<http:inbound-endpoint address="http://localhost:63081/enrollment" exchange-pattern="request-response">
<cxf:jaxws-service serviceClass="com.ifp.esb.integration.ingest.EnrollmentWS"/>
</http:inbound-endpoint>
<component>
<spring-object bean="enrollmentBean" />
</component>
</flow>
【问题讨论】:
标签: mule