You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by John Lilley <jo...@redpointglobal.com.INVALID> on 2022/11/30 14:09:35 UTC

JMS bytes vs Artemis CoreMessage bytes

Greetings,

I am trying to implement a logging ActiveMQServerPlugin that understands how to format the contents of our application messages.  But our clients are JMS and our client code makes JMS calls:
BytesMessage m = session.createBytesMessage();
m.writeBytes(bytes);

When those packets are handled by our server plugin, and I do
public void beforeSend(ServerSession session, Transaction tx, Message message, boolean direct, boolean noAutoCreateQueue) {
var cm = (CoreMessage)message;
var bytes = cm.getDataBuffer().byteBuf().array();

First, is it correct to downcast to CoreMessage?
Second, will the bytes be identical to the bytes I put into the JMS message, or will Artemis add some “framing” around it?

Thanks
John



[rg] <https://www.redpointglobal.com/>

John Lilley

Data Management Chief Architect, Redpoint Global Inc.

888 Worcester Street, Suite 200 Wellesley, MA 02482

M: +1 7209385761<tel:+1%207209385761> | john.lilley@redpointglobal.com<ma...@redpointglobal.com>

PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is confidential and is intended solely for the use of the individual(s) to whom it is addressed. If you believe you received this e-mail in error, please notify the sender immediately, delete the e-mail from your computer and do not copy, print or disclose it to anyone else. If you properly received this e-mail as a customer, partner or vendor of Redpoint, you should maintain its contents in confidence subject to the terms and conditions of your agreement(s) with Redpoint.

RE: JMS bytes vs Artemis CoreMessage bytes

Posted by John Lilley <jo...@redpointglobal.com.INVALID>.
Thanks Justin!
Since this is only a logger plugin, I just do a lot of checks and ignore anything unexpected.  And it works!
John





[rg] <https://www.redpointglobal.com/>

John Lilley

Data Management Chief Architect, Redpoint Global Inc.

888 Worcester Street, Suite 200 Wellesley, MA 02482

M: +1 7209385761<tel:+1%207209385761> | john.lilley@redpointglobal.com<ma...@redpointglobal.com>
From: Justin Bertram <jb...@apache.org>
Sent: Wednesday, November 30, 2022 9:13 AM
To: users@activemq.apache.org
Subject: Re: JMS bytes vs Artemis CoreMessage bytes

*** [Caution] This email is from an external source. Please use caution responding, opening attachments or clicking embedded links. ***

That will only be true for applications using the core JMS client or the OpenWire JMS client. If the client application is using the Qpid JMS client it won't be a CoreMessage. It will be an AMQPMessage.

Regardless, it's always good to have such checks in place to confirm expectations and deal with exceptions gracefully rather than assuming them and risking some kind of breaking failure.


Justin

On Wed, Nov 30, 2022 at 10:06 AM John Lilley <jo...@redpointglobal.com.invalid>> wrote:
I’ve verified it is indeed a CoreMessage



[rg]<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,xeMun_pF48LdlncyfriKqwXUhjrfV5vB2igeOzj9eFwWWjDDaH6uaED780FGGvmi1dsT1vhkxNnIb0lDe1yGvTRxT8eupHFPHF6U9pyg2xhAcWb7CkdRDg_IjiM,&typo=1>

John Lilley

Data Management Chief Architect, Redpoint Global Inc.

888 Worcester Street, Suite 200 Wellesley, MA 02482

M: +1 7209385761<tel:+1%207209385761> | john.lilley@redpointglobal.com<ma...@redpointglobal.com>
From: John Lilley <jo...@redpointglobal.com.INVALID>>
Sent: Wednesday, November 30, 2022 8:42 AM
To: users@activemq.apache.org<ma...@activemq.apache.org>
Subject: RE: JMS bytes vs Artemis CoreMessage bytes

*** [Caution] This email is from an external source. Please use caution responding, opening attachments or clicking embedded links. ***

Thanks Justin!

If I send a JMS BytesMessage, should that end up being a CoreMessage in the server?

john



<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>

John Lilley <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>

Data Management Chief Architect, Redpoint Global Inc. <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>

888 Worcester Street, Suite 200 Wellesley, MA 02482 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>

M: +1 7209385761 | john.lilley@redpointglobal.com <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
From: Justin Bertram <jb...@apache.org>
Sent: Wednesday, November 30, 2022 8:33 AM
To: users@activemq.apache.org
Subject: Re: JMS bytes vs Artemis CoreMessage bytes<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
*** [Caution] This email is from an external source. Please use caution responding, opening attachments or clicking embedded links. ***<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
> First, is it correct to downcast to CoreMessage?<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
Only if it actually is an instance of CoreMessage. I recommend you add an instanceof check to be sure.<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
> Second, will the bytes be identical to the bytes I put into the JMS message, or will Artemis add some “framing” around it?<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
The bytes should be the same as far as I can tell.<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
Justin<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
On Wed, Nov 30, 2022 at 8:10 AM John Lilley <jo...@redpointglobal.com.invalid> wrote:<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
Greetings,<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
I am trying to implement a logging ActiveMQServerPlugin that understands how to format the contents of our application messages.  But our clients are JMS and our client code makes JMS calls:<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
BytesMessage m = session.createBytesMessage();
m.writeBytes(bytes);<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
When those packets are handled by our server plugin, and I do<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
public void beforeSend(ServerSession session, Transaction tx, Message message, boolean direct, boolean noAutoCreateQueue) {<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
var cm = (CoreMessage)message;
var bytes = cm.getDataBuffer().byteBuf().array();<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
First, is it correct to downcast to CoreMessage?<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
Second, will the bytes be identical to the bytes I put into the JMS message, or will Artemis add some “framing” around it?<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
Thanks<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
John<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>

<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>

John Lilley <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>

Data Management Chief Architect, Redpoint Global Inc. <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>

888 Worcester Street, Suite 200 Wellesley, MA 02482 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>

M: +1 7209385761 | john.lilley@redpointglobal.com <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>

PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is confidential and is intended solely for the use of the individual(s) to whom it is addressed. If you believe you received this e-mail in error, please notify the sender immediately, delete the e-mail from your computer and do not copy, print or disclose it to anyone else. If you properly received this e-mail as a customer, partner or vendor of Redpoint, you should maintain its contents in confidence subject to the terms and conditions of your agreement(s) with Redpoint. <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>

PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is confidential and is intended solely for the use of the individual(s) to whom it is addressed. If you believe you received this e-mail in error, please notify the sender immediately, delete the e-mail from your computer and do not copy, print or disclose it to anyone else. If you properly received this e-mail as a customer, partner or vendor of Redpoint, you should maintain its contents in confidence subject to the terms and conditions of your agreement(s) with Redpoint. <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>

PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is confidential and is intended solely for the use of the individual(s) to whom it is addressed. If you believe you received this e-mail in error, please notify the sender immediately, delete the e-mail from your computer and do not copy, print or disclose it to anyone else. If you properly received this e-mail as a customer, partner or vendor of Redpoint, you should maintain its contents in confidence subject to the terms and conditions of your agreement(s) with Redpoint. <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>

PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is confidential and is intended solely for the use of the individual(s) to whom it is addressed. If you believe you received this e-mail in error, please notify the sender immediately, delete the e-mail from your computer and do not copy, print or disclose it to anyone else. If you properly received this e-mail as a customer, partner or vendor of Redpoint, you should maintain its contents in confidence subject to the terms and conditions of your agreement(s) with Redpoint.

Re: JMS bytes vs Artemis CoreMessage bytes

Posted by Justin Bertram <jb...@apache.org>.
Jean-Marc, as noted on the website [1] you can send an email to
users-unsubscribe@activemq.apache.org. Keep in mind that you must respond
to the confirmation email that you receive as part of the unsubscription
process.

You can read more about how mailing lists work at Apache here [2] ( which
is also linked from the ActiveMQ website).

In the future if you have any questions or concerns please send a message
directly to users@activemq.apache.org rather than hijacking someone else's
thread. Thanks!


Justin

[1] https://activemq.apache.org/contact
[2] https://apache.org/foundation/mailinglists.html

On Wed, Nov 30, 2022 at 10:26 AM Jobin Jean-Marc
<JJ...@hamilton-medical.com.invalid> wrote:

> Anyone can explain why do I get these message spam?
>
> I registered long time ago in users@activemq.apache.org but also already
> unregistered also long time ago and still get these annoying messages.
>
> Any clues on how to stop these?
>
>
>
> Thank you for some helps.
>
>
>
> Jean-Marc
>
>
>
> __________
>
> *Jean-Marc Jobin*
> External Consultant
>
> Hamilton Medical AG
> Via Crusch 8
> 7402 Bonaduz
> Switzerland
>
>
> Phone: +41 58 610 24 16
>
> JJobin@hamilton-medical.com
> Chat with me on Teams
> <ht...@hamilton-medical.com>
> www.hamilton-medical.com
>
> Stay tuned: Newsletters
> <https://www.hamilton-medical.com/News/Newsletter-sign-up.html>
>
> <https://www.linkedin.com/company/hamilton-medical-ag>
> <https://www.linkedin.com/company/hamilton-medical-ag>
> <https://www.facebook.com/HamiltonMedical>
> <https://www.instagram.com/hamiltonmedical/>
> <https://twitter.com/HamiltonMedical>
> <https://www.youtube.com/user/hamiltonmedicalag>
>
> [image: ExpertsOnAir_eMail_Banner_600x130px.jpg]
> <https://www.hamilton-medical.com/Public/Landing-pages/Experts-on-Air/INTELLiVENT-ASV>
>
> This message is confidential. It may also be privileged or otherwise
> protected by work product immunity or other legal rules. If you have
> received it by mistake, please let us know by e-mail reply and delete it
> from your system; you may not copy this message or disclose its contents to
> anyone. The integrity and security of this message cannot be guaranteed on
> the Internet.
>
>
> *From:* Justin Bertram <jb...@apache.org>
> *Sent:* Mittwoch, 30. November 2022 17:13
> *To:* users@activemq.apache.org
> *Subject:* Re: JMS bytes vs Artemis CoreMessage bytes
>
>
>
> *CAUTION:* This email is NOT originated from Hamilton. Do not click links
> or open attachments unless you recognize the sender and know the content is
> safe.
>
> *VORSICHT:* Dieses E-Mail stammt NICHT von der Hamilton. Klicke auf keine
> Links und öffne keine Anhänge, wenn du den Absender nicht kennst und nicht
> weisst, dass der Inhalt sicher ist.
>
> That will only be true for applications using the core JMS client or the
> OpenWire JMS client. If the client application is using the Qpid JMS client
> it won't be a CoreMessage. It will be an AMQPMessage.
>
>
>
> Regardless, it's always good to have such checks in place to confirm
> expectations and deal with exceptions gracefully rather than assuming them
> and risking some kind of breaking failure.
>
>
>
>
>
> Justin
>
>
>
> On Wed, Nov 30, 2022 at 10:06 AM John Lilley <
> john.lilley@redpointglobal.com.invalid> wrote:
>
> I’ve verified it is indeed a CoreMessage
>
>
>
>
>
> [image: rg]
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.redpointglobal.com%2F&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JmyRgWDax99QZcX1JUANM%2BKm%2FK5BylhyvdUBe5qg0ic%3D&reserved=0>
>
> *John Lilley *
>
> *Data Management Chief Architect, Redpoint Global Inc. *
>
> 888 Worcester Street, Suite 200 Wellesley, MA 02482
>
> *M: *+1 7209385761 <+1%207209385761> | john.lilley@redpointglobal.com
>
> *From:* John Lilley <jo...@redpointglobal.com.INVALID>
> *Sent:* Wednesday, November 30, 2022 8:42 AM
> *To:* users@activemq.apache.org
> *Subject:* RE: JMS bytes vs Artemis CoreMessage bytes
>
>
>
> **** [Caution] This email is from an external source. Please use caution
> responding, opening attachments or clicking embedded links. ****
>
>
>
> Thanks Justin!
>
>
>
> If I send a JMS BytesMessage, should that end up being a CoreMessage in
> the server?
>
>
>
> john
>
>
>
>
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> *John Lilley
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>*
>
> *Data Management Chief Architect, Redpoint Global Inc.
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>*
>
> 888 Worcester Street, Suite 200 Wellesley, MA 02482
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> *M: +1 7209385761 | john.lilley@redpointglobal.com
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>*
>
>
>
>
> *From: Justin Bertram <jb...@apache.org> Sent: Wednesday, November 30,
> 2022 8:33 AM To: users@activemq.apache.org Subject: Re: JMS bytes vs
> Artemis CoreMessage bytes
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>*
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> **** [Caution] This email is from an external source. Please use caution
> responding, opening attachments or clicking embedded links. ***
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>*
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> > First, is it correct to downcast to CoreMessage?
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> Only if it actually is an instance of CoreMessage. I recommend you add an
> instanceof check to be sure.
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> > Second, will the bytes be identical to the bytes I put into the JMS
> message, or will Artemis add some “framing” around it?
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> The bytes should be the same as far as I can tell.
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> Justin
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> On Wed, Nov 30, 2022 at 8:10 AM John Lilley <
> *john.lilley@redpointglobal.com.invalid*> wrote:
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> Greetings,
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> I am trying to implement a logging ActiveMQServerPlugin that understands
> how to format the contents of our application messages.  But our clients
> are JMS and our client code makes JMS calls:
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> BytesMessage m = session.createBytesMessage();
> m.writeBytes(bytes);
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> When those packets are handled by our server plugin, and I do
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> public void beforeSend(ServerSession session, Transaction tx, Message
> message, boolean direct, boolean noAutoCreateQueue) {
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> var cm = (CoreMessage)message;
> var bytes = cm.getDataBuffer().byteBuf().array();
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> First, is it correct to downcast to CoreMessage?
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> Second, will the bytes be identical to the bytes I put into the JMS
> message, or will Artemis add some “framing” around it?
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> Thanks
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> John
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> *John Lilley
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>*
>
> *Data Management Chief Architect, Redpoint Global Inc.
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>*
>
> 888 Worcester Street, Suite 200 Wellesley, MA 02482
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
> *M: +1 7209385761 | john.lilley@redpointglobal.com
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>*
>
>
> PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is
> confidential and is intended solely for the use of the individual(s) to
> whom it is addressed. If you believe you received this e-mail in error,
> please notify the sender immediately, delete the e-mail from your computer
> and do not copy, print or disclose it to anyone else. If you properly
> received this e-mail as a customer, partner or vendor of Redpoint, you
> should maintain its contents in confidence subject to the terms and
> conditions of your agreement(s) with Redpoint.
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
>
> PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is
> confidential and is intended solely for the use of the individual(s) to
> whom it is addressed. If you believe you received this e-mail in error,
> please notify the sender immediately, delete the e-mail from your computer
> and do not copy, print or disclose it to anyone else. If you properly
> received this e-mail as a customer, partner or vendor of Redpoint, you
> should maintain its contents in confidence subject to the terms and
> conditions of your agreement(s) with Redpoint.
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
>
> PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is
> confidential and is intended solely for the use of the individual(s) to
> whom it is addressed. If you believe you received this e-mail in error,
> please notify the sender immediately, delete the e-mail from your computer
> and do not copy, print or disclose it to anyone else. If you properly
> received this e-mail as a customer, partner or vendor of Redpoint, you
> should maintain its contents in confidence subject to the terms and
> conditions of your agreement(s) with Redpoint.
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
>
>

RE: JMS bytes vs Artemis CoreMessage bytes

Posted by Jobin Jean-Marc <JJ...@hamilton-medical.com.INVALID>.
Anyone can explain why do I get these message spam?
I registered long time ago in users@activemq.apache.org<ma...@activemq.apache.org> but also already unregistered also long time ago and still get these annoying messages.
Any clues on how to stop these?

Thank you for some helps.

Jean-Marc


__________

Jean-Marc Jobin
External Consultant


Hamilton Medical AG
Via Crusch 8
7402 Bonaduz
Switzerland


Phone: +41 58 610 24 16

JJobin@hamilton-medical.com
Chat with me on Teams<ht...@hamilton-medical.com>
www.hamilton-medical.com

Stay tuned: Newsletters<https://www.hamilton-medical.com/News/Newsletter-sign-up.html>

[cid:linkedin_2fb81a26-4168-46bf-832d-ed7ff34e5211.png]<https://www.linkedin.com/company/hamilton-medical-ag><https://www.linkedin.com/company/hamilton-medical-ag>    [cid:facebook_add28b97-64cf-4bea-997f-fffff9b2979e.png] <https://www.facebook.com/HamiltonMedical>     [cid:instagram_dd6100f2-9269-439a-b4ac-d43d87142a0f.png] <https://www.instagram.com/hamiltonmedical/>     [cid:twitter_735d0066-69ad-49c6-a86c-6edf507aa586.png] <https://twitter.com/HamiltonMedical>     [cid:youtube_8359f97b-863f-4ea6-b60f-a256b7b01780.png] <https://www.youtube.com/user/hamiltonmedicalag>

[cid:expertsonair_email_banner_600x130px_ec1df664-1545-46f8-aebf-13142092e93e.jpg]<https://www.hamilton-medical.com/Public/Landing-pages/Experts-on-Air/INTELLiVENT-ASV>

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. The integrity and security of this message cannot be guaranteed on the Internet.

From: Justin Bertram <jb...@apache.org>
Sent: Mittwoch, 30. November 2022 17:13
To: users@activemq.apache.org
Subject: Re: JMS bytes vs Artemis CoreMessage bytes


CAUTION: This email is NOT originated from Hamilton. Do not click links or open attachments unless you recognize the sender and know the content is safe.

VORSICHT: Dieses E-Mail stammt NICHT von der Hamilton. Klicke auf keine Links und öffne keine Anhänge, wenn du den Absender nicht kennst und nicht weisst, dass der Inhalt sicher ist.
That will only be true for applications using the core JMS client or the OpenWire JMS client. If the client application is using the Qpid JMS client it won't be a CoreMessage. It will be an AMQPMessage.

Regardless, it's always good to have such checks in place to confirm expectations and deal with exceptions gracefully rather than assuming them and risking some kind of breaking failure.


Justin

On Wed, Nov 30, 2022 at 10:06 AM John Lilley <jo...@redpointglobal.com.invalid>> wrote:
I’ve verified it is indeed a CoreMessage



[cid:184c94bd1b578c893661]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.redpointglobal.com%2F&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JmyRgWDax99QZcX1JUANM%2BKm%2FK5BylhyvdUBe5qg0ic%3D&reserved=0>


John Lilley


Data Management Chief Architect, Redpoint Global Inc.


888 Worcester Street, Suite 200 Wellesley, MA 02482


M: +1 7209385761<tel:+1%207209385761> | john.lilley@redpointglobal.com<ma...@redpointglobal.com>



From: John Lilley <jo...@redpointglobal.com.INVALID>>
Sent: Wednesday, November 30, 2022 8:42 AM
To: users@activemq.apache.org<ma...@activemq.apache.org>
Subject: RE: JMS bytes vs Artemis CoreMessage bytes

*** [Caution] This email is from an external source. Please use caution responding, opening attachments or clicking embedded links. ***

Thanks Justin!

If I send a JMS BytesMessage, should that end up being a CoreMessage in the server?

john



<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>


John Lilley <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>


Data Management Chief Architect, Redpoint Global Inc. <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>


888 Worcester Street, Suite 200 Wellesley, MA 02482 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>


M: +1 7209385761 | john.lilley@redpointglobal.com <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>



From: Justin Bertram <jb...@apache.org>
Sent: Wednesday, November 30, 2022 8:33 AM
To: users@activemq.apache.org
Subject: Re: JMS bytes vs Artemis CoreMessage bytes<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
*** [Caution] This email is from an external source. Please use caution responding, opening attachments or clicking embedded links. ***<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
> First, is it correct to downcast to CoreMessage?<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
Only if it actually is an instance of CoreMessage. I recommend you add an instanceof check to be sure.<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
> Second, will the bytes be identical to the bytes I put into the JMS message, or will Artemis add some “framing” around it?<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
The bytes should be the same as far as I can tell.<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
Justin<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
On Wed, Nov 30, 2022 at 8:10 AM John Lilley <jo...@redpointglobal.com.invalid> wrote:<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
Greetings,<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
I am trying to implement a logging ActiveMQServerPlugin that understands how to format the contents of our application messages.  But our clients are JMS and our client code makes JMS calls:<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
BytesMessage m = session.createBytesMessage();
m.writeBytes(bytes);<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
When those packets are handled by our server plugin, and I do<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
public void beforeSend(ServerSession session, Transaction tx, Message message, boolean direct, boolean noAutoCreateQueue) {<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
var cm = (CoreMessage)message;
var bytes = cm.getDataBuffer().byteBuf().array();<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
First, is it correct to downcast to CoreMessage?<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
Second, will the bytes be identical to the bytes I put into the JMS message, or will Artemis add some “framing” around it?<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
Thanks<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
John<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>
 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>

<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>


John Lilley <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>


Data Management Chief Architect, Redpoint Global Inc. <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>


888 Worcester Street, Suite 200 Wellesley, MA 02482 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>


M: +1 7209385761 | john.lilley@redpointglobal.com <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>




PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is confidential and is intended solely for the use of the individual(s) to whom it is addressed. If you believe you received this e-mail in error, please notify the sender immediately, delete the e-mail from your computer and do not copy, print or disclose it to anyone else. If you properly received this e-mail as a customer, partner or vendor of Redpoint, you should maintain its contents in confidence subject to the terms and conditions of your agreement(s) with Redpoint. <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>

PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is confidential and is intended solely for the use of the individual(s) to whom it is addressed. If you believe you received this e-mail in error, please notify the sender immediately, delete the e-mail from your computer and do not copy, print or disclose it to anyone else. If you properly received this e-mail as a customer, partner or vendor of Redpoint, you should maintain its contents in confidence subject to the terms and conditions of your agreement(s) with Redpoint. <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>

PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is confidential and is intended solely for the use of the individual(s) to whom it is addressed. If you believe you received this e-mail in error, please notify the sender immediately, delete the e-mail from your computer and do not copy, print or disclose it to anyone else. If you properly received this e-mail as a customer, partner or vendor of Redpoint, you should maintain its contents in confidence subject to the terms and conditions of your agreement(s) with Redpoint. <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkprotect.cudasvc.com%2Furl%3Fa%3Dhttps%253a%252f%252fwww.redpointglobal.com%252f%26c%3DE%2C1%2CHR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0%26typo%3D1&data=05%7C01%7CJJobin%40hamilton-medical.com%7C26be6ccd16674d16068408dad2edcbda%7C48234a3862d24c5b911a96b5eadfc745%7C0%7C0%7C638054216014218207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CqFRSGWWb8rPL64Ujq%2FDDZSzfIckCZmw7Y20IcKyFbk%3D&reserved=0>

Re: JMS bytes vs Artemis CoreMessage bytes

Posted by Justin Bertram <jb...@apache.org>.
That will only be true for applications using the core JMS client or the
OpenWire JMS client. If the client application is using the Qpid JMS client
it won't be a CoreMessage. It will be an AMQPMessage.

Regardless, it's always good to have such checks in place to confirm
expectations and deal with exceptions gracefully rather than assuming them
and risking some kind of breaking failure.


Justin

On Wed, Nov 30, 2022 at 10:06 AM John Lilley
<jo...@redpointglobal.com.invalid> wrote:

> I’ve verified it is indeed a CoreMessage
>
>
>
>
> [image: rg] <https://www.redpointglobal.com/>
>
> John Lilley
>
> Data Management Chief Architect, Redpoint Global Inc.
>
> 888 Worcester Street, Suite 200 Wellesley, MA 02482
>
> *M: *+1 7209385761 <+1%207209385761> | john.lilley@redpointglobal.com
>
> *From:* John Lilley <jo...@redpointglobal.com.INVALID>
> *Sent:* Wednesday, November 30, 2022 8:42 AM
> *To:* users@activemq.apache.org
> *Subject:* RE: JMS bytes vs Artemis CoreMessage bytes
>
>
>
> **** [Caution] This email is from an external source. Please use caution
> responding, opening attachments or clicking embedded links. ****
>
>
>
> Thanks Justin!
>
>
>
> If I send a JMS BytesMessage, should that end up being a CoreMessage in
> the server?
>
>
>
> john
>
>
>
>
>
> [image: rg]
> <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>
>
> *John Lilley *
>
> *Data Management Chief Architect, Redpoint Global Inc. *
>
> 888 Worcester Street, Suite 200 Wellesley, MA 02482
>
> *M: *+1 7209385761 <+1%207209385761> | john.lilley@redpointglobal.com
>
> *From:* Justin Bertram <jb...@apache.org>
> *Sent:* Wednesday, November 30, 2022 8:33 AM
> *To:* users@activemq.apache.org
> *Subject:* Re: JMS bytes vs Artemis CoreMessage bytes
>
>
>
> **** [Caution] This email is from an external source. Please use caution
> responding, opening attachments or clicking embedded links. ****
>
>
>
> > First, is it correct to downcast to CoreMessage?
>
>
>
> Only if it actually is an instance of CoreMessage. I recommend you add an
> instanceof check to be sure.
>
>
>
> > Second, will the bytes be identical to the bytes I put into the JMS
> message, or will Artemis add some “framing” around it?
>
>
>
> The bytes should be the same as far as I can tell.
>
>
>
>
>
> Justin
>
>
>
> On Wed, Nov 30, 2022 at 8:10 AM John Lilley <
> john.lilley@redpointglobal.com.invalid> wrote:
>
> Greetings,
>
>
>
> I am trying to implement a logging ActiveMQServerPlugin that understands
> how to format the contents of our application messages.  But our clients
> are JMS and our client code makes JMS calls:
>
> BytesMessage m = session.createBytesMessage();
> m.writeBytes(bytes);
>
> When those packets are handled by our server plugin, and I do
>
> public void beforeSend(ServerSession session, Transaction tx, Message
> message, boolean direct, boolean noAutoCreateQueue) {
>
> var cm = (CoreMessage)message;
> var bytes = cm.getDataBuffer().byteBuf().array();
>
> First, is it correct to downcast to CoreMessage?
>
> Second, will the bytes be identical to the bytes I put into the JMS
> message, or will Artemis add some “framing” around it?
>
>
>
> Thanks
>
> John
>
>
>
>
>
> [image: rg]
> <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,s5ofJlygW5HZHzL7eHUVj6qP2n2PVu0G3LDp5vmreZrk_HZN7XZgUxBfksTMAFccdtyzKVc_9GGVflXJKDcjUar0PVGA3G-1hWuoUuy_4_A2WLj-MnVLdY7hLUiV&typo=1>
>
> *John Lilley *
>
> *Data Management Chief Architect, Redpoint Global Inc. *
>
> 888 Worcester Street, Suite 200 Wellesley, MA 02482
>
> *M: *+1 7209385761 <+1%207209385761> | john.lilley@redpointglobal.com
>
>
> PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is
> confidential and is intended solely for the use of the individual(s) to
> whom it is addressed. If you believe you received this e-mail in error,
> please notify the sender immediately, delete the e-mail from your computer
> and do not copy, print or disclose it to anyone else. If you properly
> received this e-mail as a customer, partner or vendor of Redpoint, you
> should maintain its contents in confidence subject to the terms and
> conditions of your agreement(s) with Redpoint.
>
>
> PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is
> confidential and is intended solely for the use of the individual(s) to
> whom it is addressed. If you believe you received this e-mail in error,
> please notify the sender immediately, delete the e-mail from your computer
> and do not copy, print or disclose it to anyone else. If you properly
> received this e-mail as a customer, partner or vendor of Redpoint, you
> should maintain its contents in confidence subject to the terms and
> conditions of your agreement(s) with Redpoint.
>
> PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is
> confidential and is intended solely for the use of the individual(s) to
> whom it is addressed. If you believe you received this e-mail in error,
> please notify the sender immediately, delete the e-mail from your computer
> and do not copy, print or disclose it to anyone else. If you properly
> received this e-mail as a customer, partner or vendor of Redpoint, you
> should maintain its contents in confidence subject to the terms and
> conditions of your agreement(s) with Redpoint.
>

RE: JMS bytes vs Artemis CoreMessage bytes

Posted by John Lilley <jo...@redpointglobal.com.INVALID>.
I’ve verified it is indeed a CoreMessage




[rg] <https://www.redpointglobal.com/>

John Lilley

Data Management Chief Architect, Redpoint Global Inc.

888 Worcester Street, Suite 200 Wellesley, MA 02482

M: +1 7209385761<tel:+1%207209385761> | john.lilley@redpointglobal.com<ma...@redpointglobal.com>
From: John Lilley <jo...@redpointglobal.com.INVALID>
Sent: Wednesday, November 30, 2022 8:42 AM
To: users@activemq.apache.org
Subject: RE: JMS bytes vs Artemis CoreMessage bytes

*** [Caution] This email is from an external source. Please use caution responding, opening attachments or clicking embedded links. ***

Thanks Justin!

If I send a JMS BytesMessage, should that end up being a CoreMessage in the server?

john



[rg]<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,HR3BXNxA_AN54I5go7bLBDNS8_Ow4YpGhKkXgNdbs0CAwSFA7HRIHuryB-cZ6z2DPGQGSkOsJWuBBmAb-Dxo2HrsaDAXjem-22EI3TcBmzD0&typo=1>

John Lilley

Data Management Chief Architect, Redpoint Global Inc.

888 Worcester Street, Suite 200 Wellesley, MA 02482

M: +1 7209385761<tel:+1%207209385761> | john.lilley@redpointglobal.com<ma...@redpointglobal.com>
From: Justin Bertram <jb...@apache.org>>
Sent: Wednesday, November 30, 2022 8:33 AM
To: users@activemq.apache.org<ma...@activemq.apache.org>
Subject: Re: JMS bytes vs Artemis CoreMessage bytes

*** [Caution] This email is from an external source. Please use caution responding, opening attachments or clicking embedded links. ***

> First, is it correct to downcast to CoreMessage?

Only if it actually is an instance of CoreMessage. I recommend you add an instanceof check to be sure.

> Second, will the bytes be identical to the bytes I put into the JMS message, or will Artemis add some “framing” around it?

The bytes should be the same as far as I can tell.


Justin

On Wed, Nov 30, 2022 at 8:10 AM John Lilley <jo...@redpointglobal.com.invalid>> wrote:
Greetings,

I am trying to implement a logging ActiveMQServerPlugin that understands how to format the contents of our application messages.  But our clients are JMS and our client code makes JMS calls:
BytesMessage m = session.createBytesMessage();
m.writeBytes(bytes);
When those packets are handled by our server plugin, and I do
public void beforeSend(ServerSession session, Transaction tx, Message message, boolean direct, boolean noAutoCreateQueue) {
var cm = (CoreMessage)message;
var bytes = cm.getDataBuffer().byteBuf().array();
First, is it correct to downcast to CoreMessage?
Second, will the bytes be identical to the bytes I put into the JMS message, or will Artemis add some “framing” around it?

Thanks
John



[rg]<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,s5ofJlygW5HZHzL7eHUVj6qP2n2PVu0G3LDp5vmreZrk_HZN7XZgUxBfksTMAFccdtyzKVc_9GGVflXJKDcjUar0PVGA3G-1hWuoUuy_4_A2WLj-MnVLdY7hLUiV&typo=1>

John Lilley

Data Management Chief Architect, Redpoint Global Inc.

888 Worcester Street, Suite 200 Wellesley, MA 02482

M: +1 7209385761<tel:+1%207209385761> | john.lilley@redpointglobal.com<ma...@redpointglobal.com>

PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is confidential and is intended solely for the use of the individual(s) to whom it is addressed. If you believe you received this e-mail in error, please notify the sender immediately, delete the e-mail from your computer and do not copy, print or disclose it to anyone else. If you properly received this e-mail as a customer, partner or vendor of Redpoint, you should maintain its contents in confidence subject to the terms and conditions of your agreement(s) with Redpoint.

PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is confidential and is intended solely for the use of the individual(s) to whom it is addressed. If you believe you received this e-mail in error, please notify the sender immediately, delete the e-mail from your computer and do not copy, print or disclose it to anyone else. If you properly received this e-mail as a customer, partner or vendor of Redpoint, you should maintain its contents in confidence subject to the terms and conditions of your agreement(s) with Redpoint.

PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is confidential and is intended solely for the use of the individual(s) to whom it is addressed. If you believe you received this e-mail in error, please notify the sender immediately, delete the e-mail from your computer and do not copy, print or disclose it to anyone else. If you properly received this e-mail as a customer, partner or vendor of Redpoint, you should maintain its contents in confidence subject to the terms and conditions of your agreement(s) with Redpoint.

RE: JMS bytes vs Artemis CoreMessage bytes

Posted by John Lilley <jo...@redpointglobal.com.INVALID>.
Thanks Justin!

If I send a JMS BytesMessage, should that end up being a CoreMessage in the server?

john




[rg] <https://www.redpointglobal.com/>

John Lilley

Data Management Chief Architect, Redpoint Global Inc.

888 Worcester Street, Suite 200 Wellesley, MA 02482

M: +1 7209385761<tel:+1%207209385761> | john.lilley@redpointglobal.com<ma...@redpointglobal.com>
From: Justin Bertram <jb...@apache.org>
Sent: Wednesday, November 30, 2022 8:33 AM
To: users@activemq.apache.org
Subject: Re: JMS bytes vs Artemis CoreMessage bytes

*** [Caution] This email is from an external source. Please use caution responding, opening attachments or clicking embedded links. ***

> First, is it correct to downcast to CoreMessage?

Only if it actually is an instance of CoreMessage. I recommend you add an instanceof check to be sure.

> Second, will the bytes be identical to the bytes I put into the JMS message, or will Artemis add some “framing” around it?

The bytes should be the same as far as I can tell.


Justin

On Wed, Nov 30, 2022 at 8:10 AM John Lilley <jo...@redpointglobal.com.invalid>> wrote:
Greetings,

I am trying to implement a logging ActiveMQServerPlugin that understands how to format the contents of our application messages.  But our clients are JMS and our client code makes JMS calls:
BytesMessage m = session.createBytesMessage();
m.writeBytes(bytes);
When those packets are handled by our server plugin, and I do
public void beforeSend(ServerSession session, Transaction tx, Message message, boolean direct, boolean noAutoCreateQueue) {
var cm = (CoreMessage)message;
var bytes = cm.getDataBuffer().byteBuf().array();
First, is it correct to downcast to CoreMessage?
Second, will the bytes be identical to the bytes I put into the JMS message, or will Artemis add some “framing” around it?

Thanks
John



[rg]<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,s5ofJlygW5HZHzL7eHUVj6qP2n2PVu0G3LDp5vmreZrk_HZN7XZgUxBfksTMAFccdtyzKVc_9GGVflXJKDcjUar0PVGA3G-1hWuoUuy_4_A2WLj-MnVLdY7hLUiV&typo=1>

John Lilley

Data Management Chief Architect, Redpoint Global Inc.

888 Worcester Street, Suite 200 Wellesley, MA 02482

M: +1 7209385761<tel:+1%207209385761> | john.lilley@redpointglobal.com<ma...@redpointglobal.com>

PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is confidential and is intended solely for the use of the individual(s) to whom it is addressed. If you believe you received this e-mail in error, please notify the sender immediately, delete the e-mail from your computer and do not copy, print or disclose it to anyone else. If you properly received this e-mail as a customer, partner or vendor of Redpoint, you should maintain its contents in confidence subject to the terms and conditions of your agreement(s) with Redpoint.

PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is confidential and is intended solely for the use of the individual(s) to whom it is addressed. If you believe you received this e-mail in error, please notify the sender immediately, delete the e-mail from your computer and do not copy, print or disclose it to anyone else. If you properly received this e-mail as a customer, partner or vendor of Redpoint, you should maintain its contents in confidence subject to the terms and conditions of your agreement(s) with Redpoint.

Re: JMS bytes vs Artemis CoreMessage bytes

Posted by Justin Bertram <jb...@apache.org>.
> First, is it correct to downcast to CoreMessage?

Only if it actually is an instance of CoreMessage. I recommend you add an
instanceof check to be sure.

> Second, will the bytes be identical to the bytes I put into the JMS
message, or will Artemis add some “framing” around it?

The bytes should be the same as far as I can tell.


Justin

On Wed, Nov 30, 2022 at 8:10 AM John Lilley
<jo...@redpointglobal.com.invalid> wrote:

> Greetings,
>
>
>
> I am trying to implement a logging ActiveMQServerPlugin that understands
> how to format the contents of our application messages.  But our clients
> are JMS and our client code makes JMS calls:
>
> BytesMessage m = session.createBytesMessage();
> m.writeBytes(bytes);
>
> When those packets are handled by our server plugin, and I do
>
> public void beforeSend(ServerSession session, Transaction tx, Message
> message, boolean direct, boolean noAutoCreateQueue) {
>
> var cm = (CoreMessage)message;
> var bytes = cm.getDataBuffer().byteBuf().array();
>
> First, is it correct to downcast to CoreMessage?
>
> Second, will the bytes be identical to the bytes I put into the JMS
> message, or will Artemis add some “framing” around it?
>
>
>
> Thanks
>
> John
>
>
>
> [image: rg] <https://www.redpointglobal.com/>
>
> John Lilley
>
> Data Management Chief Architect, Redpoint Global Inc.
>
> 888 Worcester Street, Suite 200 Wellesley, MA 02482
>
> *M: *+1 7209385761 <+1%207209385761> | john.lilley@redpointglobal.com
>
> PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is
> confidential and is intended solely for the use of the individual(s) to
> whom it is addressed. If you believe you received this e-mail in error,
> please notify the sender immediately, delete the e-mail from your computer
> and do not copy, print or disclose it to anyone else. If you properly
> received this e-mail as a customer, partner or vendor of Redpoint, you
> should maintain its contents in confidence subject to the terms and
> conditions of your agreement(s) with Redpoint.
>