wink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z424brave <kelly.dam...@btinternet.com>
Subject Using MessageBodyWriter in WebSphere with Session cookies enabled
Date Thu, 14 Aug 2014 17:48:26 GMT
Hi

I am using a custom MessageBodyHandler which is opening and closing an
OutputStreamWriter to send JSON output as the response.

The container is WebSphere which has session cookies enabled. However
WebSphere is attempting to set the session cookie after I have closed the
OutputStream so it fails and I get this message

"SESN0066E : Response is already committed to client. Session cookie cannot
be set."

I need to retain the session cookie because we are running with multiple WAS
clones on multiple servers. Also because of this I don't want to try and set
the session cookie myself because WAS appends the WAS cloneid to the session
id when setting the JSESSIONID cookie.  

Cheers ... Damian



--
View this message in context: http://apache-wink-users.3471013.n2.nabble.com/Using-MessageBodyWriter-in-WebSphere-with-Session-cookies-enabled-tp7572816.html
Sent from the Apache Wink Users mailing list archive at Nabble.com.

Mime
View raw message