Formatting Messages in Java to Communicate with Legacy Systems, Part 1 New Jersey

A lot of new applications are being written today in Java. Companies also have a vested interest in maintaining their legacy systems. So there is a need for Java applications to communicate with legacy systems through messages that those systems can interpret properly.

Local Companies

iCIMS
800-889-4422
1301 State Route 36
Hazlet, NJ
TAKE Enterprise Services, Inc.
609-275-8384
502 Carnegie Center
Princeton, NJ
Shelko Consulting LLC
201-478-7170
214 State St
Hackensack, NJ
Accession Technology Accounting & CRM Software Consulting
888-808-1117
PO Box 400
Ridgewood, NJ
Made4net Supply Chain Execution Software
+(1) 201 645 43
87 S. Farview Ave.
Paramus, NJ
AICOM Solutions
609-751-5151
6F MetroPark Center
Woodbridge, NJ
Mantra Information Services
973-270-0995
10 North Park Place, Suite 210
Morristown, NJ
Power Vision
(973) 623-8000
24 Commerce St
Newark, NJ
Shelko Consulting LLC
201-478-7170
214 State Street
Hackensack, NJ
Language Success
(973) 648-0236
1 Newark Airport
Newark, NJ

provided by: 
Originally published at Internet.com


Introduction



A lot of new applications are being written today in Java. Companies also have a vested interest in maintaining their legacy systems. So there is a need for Java applications to communicate with legacy systems through messages that those systems can interpret properly.

This article discusses some of the issues involved in formatting messages to be sent to a legacy system. The legacy system usually expects its messages in a rigid format. We will illustrate how such a message can be built in Java. And we will also show how to construct a byte stream in EBCDIC (Extended Binary Coded Decimal Interchange Code) format in a Java application.

I work on a Java application that uses sockets to communicate with the legacy system. Two threads exist, one to write to the legacy system and another to read messages from it. This document is not intended to discuss the architecture. The focus is on building the message that needs to be sent.
The message format:


Here is a sample message format that we will use in this document. Note that this is just a hypothetical message and the goal here is to study how to construct the message.

Bitmap (16 bytes) : 11110000 00000000 Data Item 1 : 6 digit integer Data Item 2 : ... ... ... Data Item 15 : .... Data Item 16 : ......

Read article at Internet.com site

Featured Local Company

AICOM Solutions

609-751-5151
6F MetroPark Center
Woodbridge, NJ

Regional Articles
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Absecon NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Asbury Park NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Atlantic City NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Barnegat NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Basking Ridge NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Bayonne NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Bayville NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Belle Mead NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Belleville NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Belmar NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Bergenfield NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Blackwood NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Bloomfield NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Boonton NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Bordentown NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Brick NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Bridgeton NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Bridgewater NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Browns Mills NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Burlington NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Caldwell NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Camden NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Cape May Court House NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Cape May NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Carteret NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Cherry Hill NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Clark NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Clementon NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Cliffside Park NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Clifton NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Collingswood NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Colonia NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Cranford NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Denville NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Deptford NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Dumont NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 East Brunswick NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 East Orange NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Eatontown NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Edison NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Egg Harbor Township NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Elizabeth NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Englewood NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Englishtown NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Ewing NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Fair Lawn NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Flemington NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Forked River NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Fort Lee NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Freehold NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Garfield NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Glassboro NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Hackensack NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Hackettstown NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Haddon Township NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Haddonfield NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Haledon NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Hammonton NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Hazlet NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Hightstown NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Hillside NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Hoboken NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Holmdel NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Howell NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Irvington NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Iselin NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Jackson NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Jersey City NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Kearny NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Keyport NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Lakehurst NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Lakewood NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Linden NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Livingston NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Long Branch NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Lyndhurst NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Madison NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Mahwah NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Manahawkin NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Manchester Township NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Maple Shade NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Maplewood NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Marlboro NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Marlton NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Matawan NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Mays Landing NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Medford NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Merchantville NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Metuchen NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Middletown NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Millville NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Monroe Township NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Montclair NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Moorestown NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Morganville NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Morris Plains NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Morristown NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Mount Holly NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Mount Laurel NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Neptune NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 New Brunswick NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Newark NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Newton NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 North Arlington NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 North Bergen NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 North Brunswick NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Nutley NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Ocean City NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Old Bridge NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Orange NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Palisades Park NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Paramus NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Parlin NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Parsippany NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Passaic NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Paterson NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Pennsauken NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Perth Amboy NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Phillipsburg NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Piscataway NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Plainfield NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Plainsboro NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Pleasantville NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Point Pleasant Beach NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Princeton Junction NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Princeton NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Rahway NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Ramsey NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Red Bank NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Rockaway NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Rutherford NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Sayreville NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Scotch Plains NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Secaucus NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Sewell NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Sicklerville NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Somerset NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Somerville NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 South Amboy NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 South Orange NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 South Plainfield NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 South River NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Summit NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Teaneck NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Toms River NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Trenton NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Tuckerton NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Union City NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Union NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Vincentown NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Vineland NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Voorhees NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Wayne NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 West Milford NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 West New York NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 West Orange NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Westfield NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Westwood NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Williamstown NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Willingboro NJ
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Wyckoff NJ

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML