?
Solved

JMS-MQ Textmessage vs. Bytemessage

Posted on 2006-05-17
5
Medium Priority
?
1,533 Views
Last Modified: 2010-08-05
Hello,

 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
0
Comment
Question by:H_3k
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 600 total points
ID: 16701079
You would use BytesMessage for binary content and TextMessage where you have textual info that can be stored in a String
0
 

Author Comment

by:H_3k
ID: 16783928
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, ...
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 16784337
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
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month15 days, 6 hours left to enroll

839 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