Professional Documents
Culture Documents
AceADK
Version 1.0
October 2010
Contact Information
Please feel free to contact us at the following address for information about this document.
Tel: +44 208 947 7200 Tel: +1 732 603 4997 Tel: +91 22 2829 2337
Fax: +44 208 947 2694 Fax: +1(732) 321 6562 Fax: +91 22 2829 2338
contact_uk@acesw.com contact_us@acesw.com contact_India@acesw.com
You can also visit our web site www.acesw.com for further details.
Trademarks
1995-2010 ACE Software Solutions, Inc.
No part of this document may be reproduced in any form, including photocopying or translation
to another language, without the prior written consent of ACE Software Solutions, Inc.
STP Toolkit, STP Analyzer, STP Reporter, STP Administrator, STP Enhancer, STP
Assistant, STP Translator, STP Draftsman, STP Designer, STP Monitor, AML
Toolkit, AML Administrator, AML Monitor, OFAC Station OFAC Station and
Pelican are trademarks of ACE Software Solutions, Inc.
All other brand names and product names are trademarks or registered trademarks of their
respective companies and are recognized as such.
Disclaimer
ACE Software Solutions, Inc. uses its best endeavors to ensure the accuracy of the contents of
this document. However, ACE Software Solutions, Inc. assumes no responsibility for any
inadvertent error or omission that may appear in this document.
TABLE OF CONTENTS
DISCLAIMER..................................................................................................................................................2
1. INTRODUCTION......................................................................................................................................4
2. MODULE INFORMATION.....................................................................................................................4
3. IMPLEMENTATION................................................................................................................................4
3.1 MAIN FLOW (ACEMQAPI.C).................................................................................................................4
3.1.1 Exceptional/Error flow...................................................................................................................4
3.2 MAIN FLOW (ACEMQAPI.C).................................................................................................................4
4. Environment variable...................................................................................................................................6
1 Introduction
It is a wrapper module that calls ADK C API functions. These ADK API functions help our
server components to properly work in ADK environment.
2 Module Information
MigrateRulLibs Tool is made up of following “c” files.
3. Implementation
3.1 Main Flow (ACEADKAPI.c)
1. Start
2. Connect to MQ Server.
3. Open the specific queue in either read mode or write mode for further communication.
4. If the queue is opened in read mode, messages can be read from the queue.
5. If the queue is opened in write mode, messages can be written to the queue.
6. If incase of any error roll back the whole transaction.
7. In case of no error, whole transaction is committed.
8. Close the queue.
9. Disconnect from the MQ Server.
10. End.
Connecting to MQ Server
o “AceMQConn” function is used to establish a connection to the specified queue
manager and returns a connection handle. It takes Queue Manager name as
parameter and returns the connection handle.
Connecting to MQ Series queue
Comitting a transaction
Initializing MQMD
4. Environment variable
To establish the connection with the MQ Server, MQSERVER environment variable must be
defined.
Syntax:-
MQSERVER=<CHANNEL_NAME>/<PROTOCOL_TYPE>/<MQ_SERVER_MACHINE_IP>
(<MQ_SERVER_PORT >)
Ex:-
MQSERVER=CHL_ACE_DEMO/TCP/127.0.0.1(1414)