[ Next part ]
Use the following as an example for your program.
////////////////////////////////////////////////////////////////////////////////// // // Example using the Message Queue function of the IBM Toolbox for Java // // This source is an example of IBM Toolbox for Java "Message Queue". // ////////////////////////////////////////////////////////////////////////////////// package examples; Note 1 import java.io.*; import java.util.*; import com.ibm.as400.access.*; Note 2 public class displayMessages extends Object { public static void main(String[] parameters) Note 3 { displayMessages me = new displayMessages(); me.Main(parameters); Note 4 System.exit(0); Note 5 } void displayMessage() { } void Main(String[] parms) { try Note 6 { // IBM Toolbox for Java code goes here } catch (Exception e) { e.printStackTrace(); Note 7 } } }
[ Next part ]