RE: JMS bytes vs Artemis CoreMessage bytes

2022-11-30 Thread John Lilley
482 M: +1 7209385761 | john.lil...@redpointglobal.com<mailto:john.lil...@redpointglobal.com> From: Justin Bertram 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

Re: JMS bytes vs Artemis CoreMessage bytes

2022-11-30 Thread Justin Bertram
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 guara

Re: JMS bytes vs Artemis CoreMessage bytes

2022-11-30 Thread Justin Bertram
4YpGhKkXgNdbs0CAwSFA7HRIHuryB-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%2072093857

RE: JMS bytes vs Artemis CoreMessage bytes

2022-11-30 Thread John Lilley
lobal.com> From: John Lilley 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

RE: JMS bytes vs Artemis CoreMessage bytes

2022-11-30 Thread John Lilley
385761 | john.lil...@redpointglobal.com<mailto:john.lil...@redpointglobal.com> From: Justin Bertram 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

Re: JMS bytes vs Artemis CoreMessage bytes

2022-11-30 Thread Justin Bertram
> 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

JMS bytes vs Artemis CoreMessage bytes

2022-11-30 Thread John Lilley
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 ha