MSMQ Exchange Connector: Book Server Application

The Book Server sample application uses the MSMQ Exchange Connector to pass messages between a Microsoft® Exchange user and an MSMQ application. In this application the Exchange user requests a query, the MSMQ application performs the query, then the results of the query are sent back to the Exchange user.

How Book Server Works

Here is the step-by-step process that Book Server uses to perform its query.

To Run Book Server
  1. Build the sample MSMQ application.
    • Make sure that the environment (PATH, INCLUDE, and LIB variables) is set correctly to compile windows applications.

    • Edit the file mk.bat that is in the booksrvr directory. Make the following changes to point to the correct locations of the MSMQ SDK directory, and the MSMQ Mail SDK directory.
      set MSMQ_SDK=c:\msmq\sdk
      set MQMAIL_SDK=c:\msmqmail
       
    • Run mk.bat. This should build booksrvr.exe in the booksrvr directory.
  2. Ask your Exchange administrator to install the MSMQ Exchange Connector from the MSMQ CD.

  3. From the booksrvr directory, the administrator must install the forms bookfrm.efp and bookres.efp into your Exchange system.

  4. Your Exchange administrator must then add a custom recipient named "Book Server" with the address-type MSMQ and whose address is "booksrvrq." It must NOT be a rich-text recipient.

  5. Run booksrvr.exe (make sure MSMQ is running).Type "booksrvr booksrvrq" in the command line. The argument booksrvrq is the label of the queue that the booksrvr application will use as its input queue. This label should be identical to the address of the "Book Server" custom recipient that your Exchange administrator entered.

  6. Send the query. In your mail client, open the form named "Book Search". Fill in the appropriate fields, and submit the form.

  7. Verify the query results. After a short time, you should receive a result form sent by the sample booksrvr application with the results of the query.

© 1997 by Microsoft Corporation. All rights reserved.