title: Java web service without a web application server
body: <p>We have a message processing server, which </p>
  
  <ul>
  <li>start a few threads</li>
  <li>processing the message</li>
  <li>interact with the database etc.....</li>
  </ul>
  
  <p>now the client want to have a <strong>web service server</strong> on the server, they will be able to querying the message processing server, with a web service client. e.g. give me all the messages for today, or delete the message with id....</p>
  
  <p>the problem are:          </p>
  
  <ul>
  <li>The server just a standard j2se application, doesn't run inside                   application server, like tomcat or glassfish. </li>
  <li>To handle a Http request, do I need to implement a http server? </li>
  <li>I would like to use the nice j2ee annotation such as @webservice, @webmothod etc...
  is there any library or framework I can use</li>
  </ul>