Ale*_*lex 5 java migration spring axis
我必须从Spring 2.5迁移到3.0.我的网络服务仍与轴1.4,Spring 2.5的我是相当简单的运行,每个类别的服务实现的扩展了ServletEndpointSupport.在Spring 3.0中,不推荐使用ServletEndpointSupport.
例如:
public class PersonBindingImpl extends ServletEndpointSupport implements PersonPortType {
public PersonDaten PersonQueryRequest(XPAPersonRequest request) throws RemoteException, XPAException {
PersonsImpl persons = getWebApplicationContext().getBean("personImpl", PersonsImpl.class);
return persons.getAllByGroup(request.getGroup());
}
}
Run Code Online (Sandbox Code Playgroud)
有没有办法以Spring 2.5中的简单方式在Spring 3中获取ApplicationContext.
仅仅因为ServletEndpointSupport它已被弃用,并不意味着您不应该使用它,它只是意味着它仅支持过时或过时的机制 - 在本例中为 JAX-RPC(轴 1)。javadocServletEndpointSupport说:
已弃用,转而支持 JAX-WS
org.springframework.remoting.jaxws
换句话说,Axis 1 本身已经过时了(如您所知),因此 Spring 3 没有为其提供最新的支持。
这与大量 Spring 2.5 之前的应用程序仍然使用旧的Controller层次结构类似,旧的层次结构在 Spring 3 中已被弃用,但不会很快消失。
| 归档时间: |
|
| 查看次数: |
2682 次 |
| 最近记录: |