简体   繁体   中英

Supporting multiple versions of web-services

I have web-services implemented with Dropwizrad. These web-services are being developed for an mobile app. Consider a scenarios where version 1.0 of the application is out, multiple users are accessing it. Now there major changes to be done to web-services which will be compatible with only new version of the application. To tackle this I will have to host two versions of web-services, one for the legacy users and other for the latest version of the application. Is there any way I can run different versions of the same web-services in the same container . So that clients could make choice between the the version of web-services to be user more like

http://myHost/web-services-v1

http://myHost/web-services-v2

只要Web服务独立存在于自己的webapp(war文件)中,并具有自己的依赖关系( WEB-INF/classesWEB-INF/lib ),那么您就可以在2个不同的上下文根目录上运行2个单独的webapp,并且没人会彼此意识到。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM