当前位置: 代码迷 >> Web前端 >> Axis2――web服务读取jar方式
  详细解决方案

Axis2――web服务读取jar方式

热度:197   发布时间:2012-09-03 09:48:39.0
Axis2――web服务读取jar模式

Axis2 web服务要使用持久层框架,那么就会涉及到Entity的导入

但是Entity放到aar中,axis却找不到,所以那阅读了官网,发现了这个和大家分享,下面的方法就能解决上面的问题

?

在server.xml中加入

其中ServiceTCCL中属性有:default,composite,service

default读axis2/lib

composite读包括上面的,加上aar中的

service 包括上面的,加上tomcat/lib

<serviceGroup>
  <service name="MyService" class="sample.my.service">
    <parameter name="ServiceTCCL">composite</parameter>
    ...
  </service>
</serviceGroup>