activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OneWhoMikes <>
Subject Passing in Session ID from client for REST based Messaging
Date Tue, 30 Sep 2008 17:20:46 GMT

I want to configure ActiveMQ to look for a session id in the URL from a
client REST request.  This would allow for the client to pass along it's own
ID, instead of the server generating one and setting a cookie.

I found the following posts: 

Using the above references as a guide, I created the following jetty-web.xml
file in my webapp's WEB-INF directory:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
    <Get name="sessionHandler">
        <Get name="sessionManager">
            <Set name="usingCookies" type="boolean">false</Set>

    <Set name="initParams">

This configuration does disable the cookies, but a new session is being
created for every request - regardless of what I pass in as the "xsessionid"
parameter with the request.

Any help would be greatly appreciated.



View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message