我是想以此爲榜樣如何加載騾子XML配置
http://www.mulesoft.org/documentation/display/MULE3USER/Building+Web+Services+with+CXF
上的遺留項目,所以後來我創建一個主類與啓動春天像這樣一個主要方法(或我認爲這是如何做到這一點)
XmlBeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource(
"mule-config.xml"));
但我然後telnet到我有我的web服務的端口,它不工作!
- 是不是應該開始它自己的web容器/服務器或做我需要部署到Tomcat或一些應用服務器,使這項工作
- 如果答案#1需要部署,爲什麼會出現在他們的例子中指定的絕對url就像它會爲你啓動一個?
如何讓這個工作?
這裏是我的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>