What do you mean by "set it as a request property" ? Didn't you use cookie?<div>BTW, there is a trap, fmt tag will raise an exception when the request header "Accept-Language" is empty, </div><div><br>
<div class="gmail_quote">2011/12/14 Thomas Göttlich <span dir="ltr"><<a href="mailto:guo.tuomi@googlemail.com">guo.tuomi@googlemail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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><font color="#888888"><br>Thomas<br>
</font><br>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br></div>