简体   繁体   English

宁静的Web服务xml更新

[英]Restful web service xml update

I have a restful web service created on netbeans and connected to a database. 我在netbeans上创建了一个宁静的Web服务,并将其连接到数据库。 when I start and deploy the web Service, it works great and returns the right information, but if I do any update in the database the xml content don't update, it just still returning xml with the old content. 当我启动并部署Web Service时,它可以很好地工作并返回正确的信息,但是如果我在数据库中进行任何更新,则xml内容都不会更新,它只会返回包含旧内容的xml。 To return the updated content I need to redeploy the web service. 要返回更新的内容,我需要重新部署Web服务。 Anyone knows how to solve the problem? 有人知道如何解决问题吗?

Fist of all, isolate if the data on the DB gets updated by running a query. 首先,确定是否通过运行查询来更新数据库上的数据。 If it fails you might need to make sure that you're committing the data properly. 如果失败,则可能需要确保正确提交数据。

If the data is properly stored, you might have cache issues. 如果数据存储正确,则可能存在缓存问题。 Please post some sample code of your application so that we can provide deeper insights (controller and service layer). 请发布您的应用程序的一些示例代码,以便我们提供更深入的见解(控制器和服务层)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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