Stateful HTTP-services require you to pass the jsessionid back and forth between a Java-based HTTP client (like Hessian, REST-client like Jersey/RESTeasy, SOAP, or plain HTTP-connection) as URL-extension or cookie.
JDK 1.6 comes with java.net.CookieManager which handles all the bookkeeping for you.