Hi,<br><br>we have a system that frequently queries OpenCMS for content (which is delivered as JSON).<br>Thus we use java.net.URL, open a connection and read the response from OpenCMS.<br><br>This works fine but we observed that for each request a new http session object is created.<br>
In order to prevent this, we'd like to reuse the session and thus we extract the JSESSIONID from the response header and on subsequent requests we set it as a request property.<br><br>However, OpenCMS tries to get its own session associated with that JSESSIONID and fails, since it is a 33-character string as opposed to the 36-character string that is required by CmsUUID (actually the internally used UUID).<br>
We thus get this exception: java.lang.NumberFormatException: UUID has to be represented by the standard 36-char representation<br><br>I could change the JSESSIONID to be 36-characters long but it still isn't a valid UUID (which has to contain dashes).<br>
<br>Does anyone know how we can reuse the same http and OpenCMS sessions for internal requests made by our system?<br><br>Thanks in advance.<br><br>Thomas<br>