Web services vs Spring remoting

守給你的承諾、 提交于 2019-12-10 04:17:05

问题


I quite didnt get the difference between a regular web service implemented either through spring or axis versus Remoting.

If my question is not at all related, I am just confused between spring web services vs spring remoting. When to go for remoting and when to go with a web service.

Appreciate your answer


回答1:


Spring Web Services is a dedicated Spring Project (using Spring's own Web Service technology), whereas Spring Remoting is a common approach of integrating different third party remoting technologies.

Spring-WS is always contract-first, while Spring Remoting is often code-first.




回答2:


Your choice of using Spring remoting or web services depends on whether you want to use SOAP or not.

All Spring services should start life as interface-based POJO services, of course. That way you can worry only about implementation and interface; remote access can be an afterthought that way.

Once your Spring POJO service is tested and running, you can choose between a myriad of remoting choices: EJB (RMI-based; Java-only clients), HTTP (any client that can create an HTTP client), web services (SOAP and WSDL), etc. Your choice depends on the types of clients you anticipate and the wire protocol you'd like to use.



来源:https://stackoverflow.com/questions/5298286/web-services-vs-spring-remoting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!