JMS-MQ Textmessage vs. Bytemessage

Posted on 2006-05-17
Last Modified: 2010-08-05

 I'm setting up comunication from a locally developed program with a webservice (SOAP). The transportation method will be JMS-MQ that uses IBM Websphere. There is a discussion going on between the 2 parties, my side and the webservice side on what type of message to use, 'Textmessage' or 'Bytesmessage'. Are there any experts in the house that can give me an overview of the pro's and the con's for each of the type of messages. I'm pretty new to this and need some input fast.

 Thx on beforehand.

regards, H_3k
Question by:H_3k
    LVL 86

    Accepted Solution

    You would use BytesMessage for binary content and TextMessage where you have textual info that can be stored in a String

    Author Comment

    In only need to send an XML string as a SOAP message, no binary content.

    The question is raised by a limitation of 1 of the 2 systems to only send bytesmessages. I still need some input why either a bytesmessage or a textmessage is better for sending an XML. Arguments could be characterset issues, readability, ...
    LVL 86

    Expert Comment

    The reason is not specific to SOAP. Byte (although everything is bytes ultimately) is no longer the basic storage unit for text as internationalization is now ubiquitous. The basic storage unit is now two bytes long (char in Java) and that basic unit is honored by text oriented types, not binary (byte) ones

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now