【发布时间】:2013-07-10 18:52:37
【问题描述】:
Flow 根本不会进入实现类。应该如何获取到实现类的流程?
我想知道 Impl 类 implements 服务类是否无关紧要。
但是它提出了另一个问题,如果多个 impl 类正在实现 serviceClass 接口。流量将流向何方?
我需要在 Impl 类上声明一些注释吗?或者无法识别 Impl 类,我只需要将其视为另一个 bean 并将其添加到我的 web 服务路由中。
这是设置。
applicationContext.xml
<cxf:cxfEndpoint id="tryWebService" address="http://localhost:15080/PORTAL/webservices/tryWebService"
serviceClass="webservice.TryWebServiceImpl"
/>
<route>
<from uri="cxf:bean:tryWebService"/>
<to uri="stream:out"/>
</route>
界面
@WebService
public interface TryWebService {
public void acceptRequest(String xmlString);
}
实施
public class ACORDWebServiceImpl implements ACORDWebService
{
public void acceptTXLife(String xmlString)
{
try
{
dosomething
【问题讨论】:
标签: cxf apache-camel