Hi,
you cannot force servlet to create a session with the id you provided. I
agree that we have to support sessionless consuming possible. I've
created a Jira issue for this
https://issues.apache.org/activemq/browse/AMQ-1960
Cheers
--
Dejan Bosanac
http://www.ttmsolutions.com - get a free ActiveMQ user guide
ActiveMQ in Action - http://www.manning.com/snyder/
Scripting in Java - http://www.scriptinginjava.net
OneWhoMikes wrote:
> 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:
> http://www.mojavelinux.com/blog/archives/2006/11/disabling_session_cookies_in_jetty/
> http://www.mojavelinux.com/blog/archives/2006/11/disabling_session_cookies_in_jetty/
> http://docs.codehaus.org/display/JETTY/SessionIds
> http://docs.codehaus.org/display/JETTY/SessionIds
>
> 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"
> "http://jetty.mortbay.org/configure.dtd">
> <Configure class="org.mortbay.jetty.webapp.WebAppContext">
> <Get name="sessionHandler">
> <Get name="sessionManager">
> <Set name="usingCookies" type="boolean">false</Set>
> </Get>
> </Get>
>
> <Set name="initParams">
> <Map>
> <Entry>
> <Item>org.mortbay.jetty.servlet.SessionURL</Item>
> <Item>xsessionid</Item>
> </Entry>
> </Map>
> </Set>
> </Configure>
>
>
> 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.
>
>
> Thanks,
>
> Mike
>
>
|