Hi Rich, ActiveMQ Artemis enqueues all STOMP messages with a `content-length` header as binary messages, so you need to change your `Browse Bytes Messages` setting in the artemis preference tab [1] to any value other than `Off` to see the body of those messages.
[1] http://localhost:8161/console/preferences?tab=artemis Regards, Domenico On Mon, 27 Jun 2022 at 17:07, Richard Bergmann <rbergm...@colsa.com.invalid> wrote: > Here: > > ----- > from json import dumps > import stomp > import sys > > > conn = stomp.Connection12(heartbeats=(30000,0)) > conn.connect("admin", > "admin", > wait=True, > headers = {"client-id": sys.argv[0]}) > > > message = {"item": """This is a lot of text. > In fact, it's an incredible amount of text. > It's enough text so as to get the size of the message to 1867 bytes. > Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod > tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim > veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea > commodo consequat. Duis aute irure dolor in reprehenderit in voluptate > velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat > cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id > est laborum. > Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod > tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim > veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea > commodo consequat. Duis aute irure dolor in reprehenderit in voluptate > velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat > cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id > est laborum. > Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod > tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim > veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea > commodo consequat. Duis aute irure dolor in reprehenderit in voluptate > velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat > cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id > est laborum. > Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod > tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim > veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea > commodo consequat. Duis aute irure dolor in reprehenderit in voluptate > velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat > cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id > est laborum."""} > > > conn.send("Some Queue", > dumps(message), > "application/json", > headers={"destination-type": "ANYCAST", > "persistent": "true", > "priority": 0}) > > conn.disconnect() > ----- > > Did the screenshot come through from my first post? If I try to "Show" > the message it shows the message ID and an empty box underneath "Displaying > body as bytes (turned off)" > > ________________________________ > From: Domenico Francesco Bruscino <bruscin...@gmail.com> > Sent: Monday, June 27, 2022 10:48 AM > To: users@activemq.apache.org <users@activemq.apache.org> > Subject: [External] - Re: JSON Message Body Not Display in Artemis Web > Console > > CAUTION: This email originated from outside of the organization. Do not > click links or open attachments unless you recognize the sender and know > the content is safe. > > > Hi Rich, > > how are you sending your JSON message, can you share a simple reproducer? > > Regards, > Domenico > > On Mon, 27 Jun 2022 at 14:46, Richard Bergmann <rbergm...@colsa.com.invalid > > > wrote: > > > I have a queue with a 1867 byte JSON message, but the message body is not > > displayed when I "Show" message. Not sure what "Displaying body as byes > > (turned off)" means. I would find nothing in the documentation or config > > files and I come up short on Google searches as well. > > > > Can anyone provide me with any insight? > > > > Thank you! > > > > Regards, > > > > Rich Bergmann > > > > > > ------------------------------ > > The information contained in this e-mail and any attachments from COLSA > > Corporation may contain company sensitive and/or proprietary information, > > and is intended only for the named recipient to whom it was originally > > addressed. If you are not the intended recipient, any disclosure, > > distribution, or copying of this e-mail or its attachments is strictly > > prohibited. If you have received this e-mail in error, please notify the > > sender immediately by return e-mail and permanently delete the e-mail and > > any attachments. > > > > COLSA Proprietary > > > ________________________________ > The information contained in this e-mail and any attachments from COLSA > Corporation may contain company sensitive and/or proprietary information, > and is intended only for the named recipient to whom it was originally > addressed. If you are not the intended recipient, any disclosure, > distribution, or copying of this e-mail or its attachments is strictly > prohibited. If you have received this e-mail in error, please notify the > sender immediately by return e-mail and permanently delete the e-mail and > any attachments. > > > COLSA Proprietary >