Developing
an MSMQ
Server
Gopalan Suresh Raj
Note |
To
work with any of these samples, you will need the
following: .........................................Microsoft Visual J++ ver 6.0 .........................................Windows NT 4.0 Options Pack |
1. Generate Java class wrappers
from type libraries
Create simple Java class wrappers to
call MSMQ Automation COM Objects. The JActiveX utility generates
Java source code from type libraries. The DLL containing MSMQ
type libraries can be located in \WINNT\System32
directory, and is called mqoa.dll.
D:\Program Files\Microsoft Visual
Studio\VJ98> D:\Program Files\Microsoft Visual Studio\VJ98>JActiveX /javatlb c:\winnt\system32\mqoa.dll Microsoft TypeLib Importer For Java V5.00.2918 Copyright (C) 1997-1998 by Microsoft Corporation. IMSMQMessage.java(Class): warning: skipped. Name is a keyword or conflicts with another member. MQBOID.java(rgb): warning: skipped. Untranslatable typelib object. MQXACTTRANSINFO.java(uow): warning: skipped. Cannot be used as a structure field. D:\Program Files\Microsoft Visual Studio\VJ98> |
The generated source code is placed in the \WINNT\Java\trustlib\mqoa directory of your machine.
2. Develop the Server
MSMQServer.java |
import com.ms.com.*; import mqoa.*; public class MSMQServer
|
2. Compile and run the Server
click here to go
to the Developing a Simple MSMQ Client Page... |
click here to go to My MSMQ HomePage... |
This site was developed and is maintained by Gopalan Suresh Raj This page has been visited |
Last Updated : Mar 01,'99 |
Copyright (c) 1997-99, Gopalan Suresh Raj - All rights reserved. Terms of use. |
All products and companies mentioned at this site,are trademarks of their respective owners. |