HomeDigital EditionSys-Con RadioSearch Java Cd
Advanced Java AWT Book Reviews/Excerpts Client Server Corba Editorials Embedded Java Enterprise Java IDE's Industry Watch Integration Interviews Java Applet Java & Databases Java & Web Services Java Fundamentals Java Native Interface Java Servlets Java Beans J2ME Libraries .NET Object Orientation Observations/IMHO Product Reviews Scalability & Performance Security Server Side Source Code Straight Talking Swing Threads Using Java with others Wireless XML

"Consolidating Legacy Data Part 2 of 2"
Vol. 6, Issue 2, p. 84


Listing 1

#define CUSTNO_LEN 8
#define FNAME_LEN 24
#define LNAME_LEN 24
#define ADDR_LEN  24
#define CITY_LEN  24
#define STATE_LEN 2
#define ZIP_LEN  10

struct C_CUSTOMER {
char custno[CUSTNO_LEN];
char fname[FNAME_LEN];
char lname[LNAME_LEN];
char addr[ADDR_LEN];
char city[CITY_LEN];
char state[STATE_LEN];
char zip[ZIP_LEN];
double balancedue;
int datedue_month;
int datedue_day;
int datedue_year;

Listing 2

public class MQAccess {
private java.lang.String hostname = "localhost";
private java.lang.String channel = "JAVA.CHANNEL";
private java.lang.String userid = null;
private java.lang.String password = null;
private java.lang.String qManagerName = null;
private com.ibm.mq.MQQueueManager qManager = null;
private int defaultMaxMessageSize = 100;

public MQAccess() {

public void connectQManager() throws com.ibm.mq.MQException {
qManager = new com.ibm.mq.MQQueueManager(qManagerName);

public void connectQManager(String newQManagerName) throws 
com.ibm.mq.MQException {

public void disconnectQManager()


All Rights Reserved
Copyright ©  2004 SYS-CON Media, Inc.
  E-mail: [email protected]

Java and Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. SYS-CON Publications, Inc. is independent of Sun Microsystems, Inc.