MQJava1.exe Demonstrates Using MSMQ with Java (196578)



The information in this article applies to:

  • Microsoft Message Queue Server (MSMQ) 1.0
  • Microsoft Visual J++ 1.0
  • Microsoft Visual J++ 1.1
  • Microsoft Visual J++ 6.0

This article was previously published under Q196578

SUMMARY

MQJava1.exe is a self-extracting executable that provides information on how to create queues, open queues, send messages, and read messages using Microsoft Message Queue (MSMQ) under Java.

MORE INFORMATION

The following files are available for download from the Microsoft Download Center:
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

Contents of MQJava1.exe

   File Name                Size
   --------------------------------------

   Readme.txt                  161 bytes
   Mqjava6.exe              30,720 bytes
   Mqjava11.exe             29,182 bytes
				
Building this sample differs depending on what version of Visual J++ you are using. First, run the file MQJava1.exe to extract the different versions of the sample. Read the following section that corresponds to the version of Visual J++ you are using:

Visual J++ 1.x (1.0 and 1.1)

Run Mqjava11.exe to extract the project files. Open msmqjavapp.dsw in Developer Studio. From the Tools menu, choose the Java Type Library Wizard and select the Microsoft Message Queue Object Library to import the MSMQ type library. To build the project, from the Build menu, choose Build msmqjavapp. Then you are ready to debug the project. From the Build menu select Start, choose Debug and then select Go. When prompted for the class file name msmqjavapp (this is case sensitive). Make sure that if you are using Iexplore.exe you append -new to the end of the command line.

Visual J++ 6.x (6.0 and higher)

Run Mqjava6.exe to extract the project files. Open the Mqjava.vjp file in Visual J++ 6.0. From the Project menu, choose Add COM Wrapper... and then select Microsoft Message Queue Object Library to import the MSMQ type library. To build the project, from the Build menu, choose Build. You are now ready to debug the project. From the Debug menu, select Start.

Files in the Project

msmqjavapp.java: Source for the msmqjavapp applet class. This class contains all the MSMQ specific code for the sample.

msmqjavapp.html: Html page to load up the msmqjavapp applet.

Modification Type:MinorLast Reviewed:3/7/2005
Keywords:kbdownload kbfile kbinfo KB196578 kbAudDeveloper