Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9AC5B200CA7 for ; Wed, 31 May 2017 04:08:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 99540160BDC; Wed, 31 May 2017 02:08:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DF163160BC9 for ; Wed, 31 May 2017 04:08:24 +0200 (CEST) Received: (qmail 83439 invoked by uid 500); 31 May 2017 02:08:24 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 83423 invoked by uid 99); 31 May 2017 02:08:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2017 02:08:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 47554180BB1 for ; Wed, 31 May 2017 02:08:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.197 X-Spam-Level: X-Spam-Status: No, score=-3.197 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-2.796, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=me.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6HQqYyCUJRUP for ; Wed, 31 May 2017 02:08:21 +0000 (UTC) Received: from pv33p33im-asmtp002.me.com (pv33p33im-asmtp002.me.com [17.142.241.11]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id EE8BA5F21F for ; Wed, 31 May 2017 02:08:20 +0000 (UTC) Received: from process-dkim-sign-daemon.pv33p33im-asmtp002.me.com by pv33p33im-asmtp002.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) id <0OQS00200O9QVM00@pv33p33im-asmtp002.me.com> for dev@activemq.apache.org; Wed, 31 May 2017 02:08:19 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=4d515a; t=1496196499; bh=4Fe/ZPs0guFdAwGK5RhsnN+7F7UkwKe5nF75zg/LqFs=; h=From:Content-type:MIME-version:Date:Subject:Message-id:To; b=MO4NyRxEvIhM/q5dwhauVgo8KgKfyw28cVSWlsk46KOGmRunR09igjX5QWyspIgEy V2BNRW2jNjbTNgfBlPeMLiy5m1zNuSaamr13hntfEp3a1cDC5/SsrGaUaHaovvt7ot XHU5KpOnmXJETKvOUekypVW7kKszBgFJ1xQmK4piQu+BdW6NGBNPhHbqgkWxsgTh6o mv6Sl45hAXqYCgxbO132DtxkMmDTy+Fgg9zBvxP9vNLNYsQANZU34xqEkMILDDQvD6 8rw/MJJvfB0+gXplvZHyMl+dXV3mURW7T7ZwB1I5e0+zgfFtOwqK/qFfVBncKsjPS6 bEtDOGCpZPfWQ== Received: from icloud.com ([127.0.0.1]) by pv33p33im-asmtp002.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) with ESMTPSA id <0OQS005V3OLSI410@pv33p33im-asmtp002.me.com> for dev@activemq.apache.org; Wed, 31 May 2017 02:08:19 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-05-31_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1034 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1701120000 definitions=main-1705310038 From: =?utf-8?Q?Michael_Andr=C3=A9_Pearce?= Content-type: multipart/alternative; boundary=Apple-Mail-16412FA3-3B52-4539-B538-15E879C955C9 Content-transfer-encoding: 7bit MIME-version: 1.0 (1.0) Date: Wed, 31 May 2017 03:08:15 +0100 Subject: Re: [DISCUSS] Custom Object Serialisation Support Message-id: <58D5BCCF-16B8-4C4E-BB2F-04F12D8E7DAA@me.com> References: <95C56966-F848-47A0-B587-9F0E9AAE06F9@me.com> <1D42C4DB-B265-40FA-8C50-80423BC81289@gmail.com> <984A9C1D-72E2-4B62-965C-374C407A45EB@me.com> In-reply-to: <984A9C1D-72E2-4B62-965C-374C407A45EB@me.com> To: dev@activemq.apache.org X-Mailer: iPhone Mail (14F89) archived-at: Wed, 31 May 2017 02:08:25 -0000 --Apple-Mail-16412FA3-3B52-4539-B538-15E879C955C9 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Or even (as we use address now) > byte[] serialize(String address, Object o) >=20 > Object deserialize(String address, byte[] bytes) Sent from my iPhone > On 31 May 2017, at 03:00, Michael Andr=C3=A9 Pearce wrote: >=20 > Hi Matt, >=20 > I think having just a SerDe interface for payload handling separate from a= general interceptor / client side plugin, is beneficial as then it keeps th= e logic for serialsation well encapsulated. And also cleaner if we need to d= o anything (eg sending it as a bytesmessags with a header flag) >=20 > I see this very much like difference in kafka where you have payload seria= lisation (serdes) and custom-plugin (interceptors) >=20 > Also having just a serde makes interface for people to implement and care a= bout much simpler. Eg this is almost the interface I would expect: >=20 > byte[] serialize(Destination destination, Object o) >=20 > Object deserialize(Destination destination, byte[] bytes) >=20 > Nice and simple to implement without having to care about anything else. >=20 > Cheers > Mike >=20 >=20 > Sent from my iPhone >=20 >> On 30 May 2017, at 23:18, Matt Pavlovich wrote: >>=20 >> Michael- >>=20 >> +1 dealing with bytes messages is preferred to object messages and custom= object SerDes is super useful. >>=20 >> What do you think about considering a generic client-side plugin approach= vs just a payload handler?=20 >>=20 >>> On May 30, 2017, at 4:03 PM, Michael Andr=C3=A9 Pearce wrote: >>>=20 >>> If present then this would be used to serialise the Object instead of th= e default, and subsequently create/convert to a BytesMessage, with a header s= et to denote it was custom serialised. >>=20 --Apple-Mail-16412FA3-3B52-4539-B538-15E879C955C9--