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

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

3 Sixty Software, LLC
612-961-0787
4209 Heathcote Rd
Wayzata, MN
Lawson Software
651-767-7000
380 Saint Peter St
St. Paul, MN
Automation Station Inc
651-224-1985
180 5th St E
St. Paul, MN
Notion IT
(507) 276-9149
820 Sunrise Dr.
New Ulm, MN
Genuine Genuis Solutions
(612) 872-4256
431 Clifton Ave
Minneapolis, MN
Twin Cities Solutions, Inc.
952.881.6570
10800 Lyndale Ave S
Bloomington, MN
American Software and Global Technologies
(952) 885-5640
1650 W 82nd St
Minneapolis, MN
Assessment Systems
651-647-9220
2233 University Ave W
St. Paul, MN
Global Software
(612) 305-4472
10 S 5th St
Minneapolis, MN
Productive Corporation
612.375.0204
510 First Ave North Suite 310
Minneapolis, MN

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

Twin Cities Solutions, Inc.

952.881.6570
10800 Lyndale Ave S
Bloomington, MN
http://www.twincs.com

Twin Cities Solutions, Inc. is a privately owned information technology solutions firm primarily engaged in providing technical and project management expertise to application development initiatives.

We are experienced in providing information technology solutions to government agencies as well as manufacturing, legal, financial and publishing business sectors.

Our team of consultants provides expertise to our clients in several key areas: E-Commerce applications, distributed applications, database development and desktop support.

Regional Articles
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Albert Lea MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Andover MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Anoka MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Bemidji MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Brainerd MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Burnsville MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Champlin MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Chanhassen MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Chaska MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Circle Pines MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Cloquet MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Cottage Grove MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Detroit Lakes MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Duluth MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Eden Prairie MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Elk River MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Excelsior MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Faribault MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Fergus Falls MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Forest Lake MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Hastings MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Hibbing MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Hopkins MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Inver Grove Heights MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Lakeville MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Mankato MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Minneapolis MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Minnetonka MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Moorhead MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Mound MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 New Ulm MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Osseo MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Owatonna MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Prior Lake MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Red Wing MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Rochester MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Rosemount MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Saint Cloud MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Saint Paul MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Savage MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Shakopee MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 South Saint Paul MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Stillwater MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Wayzata MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Willmar MN
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Winona MN

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