Saturday 15 September 2012

java - Sharing a static object between a servlet and a webservice -


I have a servicelet that receives http receipt requests that I would like to be able to share an object that its It also uses a webservice im developing they are both in the same web app container on the same tomcat server, I am not sure how to do any idea of ​​this? You can store things in WebFile by storing them as attributes ( setAttribute

/ getAttribute ) you can create an object in a codification, store it in ServletContext , and then retrieve it and it can You can use it from your web service and servlet.


No comments:

Post a Comment