Return-Path: X-Original-To: apmail-cayenne-commits-archive@www.apache.org Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D47E91D7 for ; Tue, 22 Nov 2011 07:58:41 +0000 (UTC) Received: (qmail 69259 invoked by uid 500); 22 Nov 2011 07:58:41 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 69215 invoked by uid 500); 22 Nov 2011 07:58:35 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 69207 invoked by uid 99); 22 Nov 2011 07:58:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2011 07:58:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2011 07:58:30 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 979BF238897A for ; Tue, 22 Nov 2011 07:58:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1204848 - in /cayenne/main/trunk: docs/doc/src/main/resources/RELEASE-NOTES.txt framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/hessian/HessianConnection.java Date: Tue, 22 Nov 2011 07:58:10 -0000 To: commits@cayenne.apache.org From: aadamchik@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111122075810.979BF238897A@eris.apache.org> Author: aadamchik Date: Tue Nov 22 07:58:09 2011 New Revision: 1204848 URL: http://svn.apache.org/viewvc?rev=1204848&view=rev Log: CAY-1629 [PATCH] Can't add custom Hessian serializers to the client patch by John Huss Modified: cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/hessian/HessianConnection.java Modified: cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt URL: http://svn.apache.org/viewvc/cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt?rev=1204848&r1=1204847&r2=1204848&view=diff ============================================================================== --- cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt (original) +++ cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt Tue Nov 22 07:58:09 2011 @@ -16,6 +16,7 @@ Changes/New Features Since 3.1M3: CAY-1603 Improve custom ExtendedType registration API CAY-1608 Implement constructor injection support for DefaultAdhocObjectFactory CAY-1618 Create database adapters instances with proper injection +CAY-1629 [PATCH] Can't add custom Hessian serializers to the client CAY-1637 [PATCH] DataContextFactory is cumbersome to customize CAY-1638 [PATCH] Can't disable validation for CayenneContext CAY-1639 cayenne-lifecycle: don't call String representation of ObjectId a UUID Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/hessian/HessianConnection.java URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/hessian/HessianConnection.java?rev=1204848&r1=1204847&r2=1204848&view=diff ============================================================================== --- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/hessian/HessianConnection.java (original) +++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/hessian/HessianConnection.java Tue Nov 22 07:58:09 2011 @@ -31,6 +31,7 @@ import org.apache.commons.logging.LogFac import com.caucho.hessian.client.HessianRuntimeException; import com.caucho.hessian.io.HessianProtocolException; +import com.caucho.hessian.io.SerializerFactory; /** * An ClientConnection that passes messages to a remotely deployed HessianService. It @@ -56,7 +57,8 @@ public class HessianConnection extends B protected RemoteSession session; protected RemoteService service; - + protected SerializerFactory serializerFactory; + /** * Creates HessianConnection that will establish dedicated session and will not use * HTTP basic authentication. @@ -197,6 +199,9 @@ public class HessianConnection extends B factory.setUser(userName); factory.setPassword(password); factory.setReadTimeout(getReadTimeout()); + + this.serializerFactory = factory.getSerializerFactory(); + try { this.service = (RemoteService) factory.create(RemoteService.class, url); } @@ -268,4 +273,9 @@ public class HessianConnection extends B return Util.unwindException(th); } + + public SerializerFactory getSerializerFactory() { + return serializerFactory; + } + }