#------------------------------------------------------------------------------- # Copyright (c) 2011, BAE Systems. # Developed with the sponsorship of the Defense Advanced Research Projects Agency (DARPA). # # Permission is hereby granted, free of charge, to any person obtaining a copy of this data, # including any software or models in source or binary form, as well as any drawings, # specifications, and documentation (collectively "the Data"), to deal in the Data without restriction, # including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Data, and to permit persons to whom the Data is furnished to do so, # subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all copies or substantial # portions of the Data. # # THE DATA IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING # BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE # AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, SPONSORS, DEVELOPERS, CONTRIBUTORS, # OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # DATA OR THE USE OR OTHER DEALINGS IN THE DATA. #------------------------------------------------------------------------------- This document covers the LegacyWrapper and the Amil Webservices LegacyWrapper: LegacyWrapper provides a web services interface to legacy code. The interface is via http requests. Input: A command line put in parameter=command Output: result code: int output string: in parameter=result error string URL: http://LegacyWrapper/exec/* is mapped to the exec servlet. http://LegacyWrapper/exec/execute will run command. See the http://localhost:8080/LegacyWrapper/exec/execForm for an exacmpl of the call. Amil: Notes: This is based on Spring MVC Framework. I am taking the MVC Demo example and transforming it to work for me. I have a working version. I need to go over the poms to get the rest of the good stuff to put into parent poms. Server - how do I make a Server project that we can use and perhaps deploy. In [Server/Apache Tomcat v6.0-config] there are only the Tomcat config files. We need the Tomcat runtime somewhere. [Server/Tomcat6-bin] I do not think trunk should end up in your workspace directory. I put common-aux into the project; and now need to remove it. com.springsource.training.common common-aux 1.1.2.RELEASE Why is bin/ there? Who created it? Can I get rid of it? I thought all Maven build stuff went into target/. Let's write some new tests and then get rid of the old tests. I have had some odd behavior in trying to run on the server - seems like log4j.xml file might not get unpublished, or other items that are deleted may not get unpublished. Cleaning the server seems to have helped. I put back the /LegacyWrapper/src/main/resources/log4j.xml file, and we are still ok. Not sure what the problem was. I also thought that it was the @controller annotation on WrapperController, but it seems not.