From user-return-634-apmail-wink-user-archive=wink.apache.org@wink.apache.org Thu Aug 14 19:08:53 2014 Return-Path: X-Original-To: apmail-wink-user-archive@www.apache.org Delivered-To: apmail-wink-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 152301198D for ; Thu, 14 Aug 2014 19:08:53 +0000 (UTC) Received: (qmail 4059 invoked by uid 500); 14 Aug 2014 19:08:53 -0000 Delivered-To: apmail-wink-user-archive@wink.apache.org Received: (qmail 4005 invoked by uid 500); 14 Aug 2014 19:08:52 -0000 Mailing-List: contact user-help@wink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@wink.apache.org Delivered-To: mailing list user@wink.apache.org Delivered-To: moderator for user@wink.apache.org Received: (qmail 89190 invoked by uid 500); 14 Aug 2014 17:49:31 -0000 Delivered-To: apmail-incubator-wink-user@incubator.apache.org X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Date: Thu, 14 Aug 2014 10:48:26 -0700 (PDT) From: z424brave To: wink-user@incubator.apache.org Message-ID: <1408038506276-7572816.post@n2.nabble.com> Subject: Using MessageBodyWriter in WebSphere with Session cookies enabled MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.