Professional Documents
Culture Documents
Installation &
Configuration Guide
Release 2.1
Issue 4
Disclaimer
Information of a technical nature, and particulars of the product and its use, is given by AVEVA
Solutions Ltd and its subsidiaries without warranty. AVEVA Solutions Ltd and its subsidiaries
disclaim any and all warranties and conditions, expressed or implied, to the fullest extent
permitted by law.
Neither the author nor AVEVA Solutions Ltd, or any of its subsidiaries, shall be liable to any
person or entity for any actions, claims, loss or damage arising from the use or possession of any
information, particulars, or errors in this publication, or any incorrect use of the product,
whatsoever.
Copyright
Copyright and all other intellectual property rights in this manual and the associated software, and
every part of it (including source code, object code, any data contained in it, the manual and any
other documentation supplied with it) belongs to AVEVA Solutions Ltd or its subsidiaries.
All other rights are reserved to AVEVA Solutions Ltd and its subsidiaries. The information
contained in this document is commercially sensitive, and shall not be copied, reproduced, stored
in a retrieval system, or transmitted without the prior written permission of AVEVA Solutions Ltd
Where such permission is granted, it expressly requires that this Disclaimer and Copyright notice
is prominently displayed at the beginning of every copy that is made.
The manual and associated documentation may not be adapted, reproduced, or copied, in any
material or electronic form, without the prior written permission of AVEVA Solutions Ltd. The user
may also not reverse engineer, decompile, copy, or adapt the associated software. Neither the
whole, nor part of the product described in this publication may be incorporated into any third-
party software, product, machine, or system without the prior written permission of AVEVA
Solutions Ltd, save as permitted by law. Any such unauthorised action is strictly prohibited, and
may give rise to civil liabilities and criminal prosecution.
The AVEVA products described in this guide are to be installed and operated strictly in
accordance with the terms and conditions of the respective licence agreements, and in
accordance with the relevant User Documentation. Unauthorised or unlicensed use of the product
is strictly prohibited.
Copyright 1994 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
AVEVA Solutions Ltd, High Cross, Madingley Road, Cambridge, CB3 0HB, United Kingdom.
Trademarks
AVEVA and Tribon are registered trademarks of AVEVA Solutions Ltd or its subsidiaries.
Unauthorised use of the AVEVA or Tribon trademarks is strictly forbidden.
AVEVA product names are trademarks or registered trademarks of AVEVA Solutions Ltd or its
subsidiaries, registered in the UK, Europe and other countries (worldwide).
The copyright, trade mark rights, or other intellectual property rights in any other product, its
name or logo belongs to its respective owner.
________________________________________________________________________
Contents
1 SUMMARY ..........................................................................................................................................3
2 BACKGROUND ..................................................................................................................................3
3 INTRODUCTION................................................................................................................................3
4 SUBSCRIBER SERVICE ...................................................................................................................6
4.1 INTRODUCTION ..................................................................................................................................6
4.2 FEATURES ..........................................................................................................................................6
4.3 RECOMMENDED INSTALLATION FOR SUBSCRIBER ..............................................................................7
4.4 PREREQUISITES ..................................................................................................................................7
4.4.1 .NET Framework .....................................................................................................................7
4.4.2 Message Queuing Components ................................................................................................7
4.4.3 Port Conflict ............................................................................................................................7
4.4.4 Oracle Data Access Components (ODAC) ..............................................................................7
4.4.5 Oracle NET Files .....................................................................................................................8
4.5 SUBSCRIBER INSTALLATION ...............................................................................................................9
4.5.1 Installation ...............................................................................................................................9
4.5.2 Subscriber Configuration ......................................................................................................10
4.5.3 Starting the Service ................................................................................................................10
4.5.4 Software removal ...................................................................................................................11
4.6 SUBSCRIBER CONFIGURATION .........................................................................................................12
5 PUBLISHER SERVICE ....................................................................................................................13
5.1 INTRODUCTION ................................................................................................................................13
5.2 FEATURES ........................................................................................................................................13
5.3 RECOMMENDED INSTALLATION FOR PUBLISHER ..............................................................................14
5.4 PREREQUISITES ................................................................................................................................14
5.4.1 .NET Framework ...................................................................................................................14
5.4.2 Message Queuing Components ..............................................................................................15
5.5 PUBLISHER INSTALLATION ...............................................................................................................15
5.5.1 Installation .............................................................................................................................15
5.5.2 Starting the Service ................................................................................................................16
5.5.3 Software removal ...................................................................................................................17
5.6 PUBLISHER CONFIGURATION ...........................................................................................................18
5.6.1 Introduction ...........................................................................................................................18
5.6.2 Configuration file ..................................................................................................................18
5.6.3 Parameters.............................................................................................................................19
6 INTERFACE CONFIGURATION DETAILS ................................................................................20
6.1 VPRM INTERFACE CONFIGURATION ................................................................................................20
6.1.1 Introduction ...........................................................................................................................20
6.1.2 Originating system configuration ..........................................................................................20
6.1.3 Subscriber Configuration ......................................................................................................20
6.2 P&ID TO VPE INTERFACE CONFIGURATION ....................................................................................24
6.2.1 Introduction ...........................................................................................................................24
6.2.2 P&ID configuration ...............................................................................................................25
6.2.3 P&ID Plug-in installation .....................................................................................................26
6.2.4 Subscriber Configuration ......................................................................................................28
6.2.5 Amend VPE Project ‘.ini’ file ................................................................................................30
7 CHANGING THE DEFAULT PORT FOR MSMQ.......................................................................31
7.1 UPDATE THE PUBLISHER CONFIG FILE .............................................................................................33
1 Summary
This document will show you how to install and configure your messaging
infrastructure with the AVEVA Message Bus, using Message Queuing version 3.0
on Microsoft Windows Server 2003 and/or Microsoft Windows XP Professional.
2 Background
This document assumes you are familiar with the following:
3 Introduction
AVEVA Message Bus (AMB) is a data transport mechanism between AVEVA
applications and other third party applications utilising Microsoft‟s Message
Queuing technology.
Please read the AVEVA products‟ release letters for compatibility with the
AVEVA Message Bus.
Fast and efficient choice for information transfer across distributed applications
Once configure the data transfer is automatic (no manual intervention
required)
Fully recoverable from server reboot
Fire and forget
4 Subscriber Service
4.1 Introduction
The Subscriber Service receives the data in Message format from the Publisher.
The data files are extracted from the Message Queue and processed according
to the individual interfaces.
Setup Check-list
Task Complete
.net framework installed
MSMQ installed
Port Conflict resolved
ODAC installed
Oracle NET Files
Subscriber installed
Subscriber configured
Encrypted password created
Service startup and logon verified
Service started
4.2 Features
The Subscriber is designed to watch one or many queues for incoming
messages and send the message body (data) to an Oracle database instance for
processing.
If processing fails for any reason then the queue is halted (although messages
are not stopped from arriving in the queue) and an email notification is sent.
Note: The main text in the email body is limited to 2,000 characters.
The AMB Administrator must deal with the issue.It may be necessary to delete
the failed message from the queue so that other queued message can be
processed.
NOTE The message shown at the top of the queue in the Queue Administrator or
the Computer Management console is always the current message.
For example, processing „fails‟ if AVEVA Message Bus can not logon to the
database as the specified user but the message will not be deleted.
All delivered Messages are removed off the Queue and data validation is handled
in the receiving AVEVA application. A copy of the file will still be present in the
„Processed‟ sub-folder on the Publisher.
NOTE: For the P&ID to VPE interface it is more important that the Subscriber is
installed on the VPE Application Server (see section „6.2 P&ID to VPE Interface‟
for more details)
The Publisher and Subscriber services can both run on the same server,
therefore installing them on the same machine is a valid configuration. In this
case AVEVA recommends that both services are installed on the AVEVA
application server.
4.4 Prerequisites
The following software MUST be installed before installing AVEVA Message Bus
Subscriber Service.
Continue through the next steps. This will install the Publisher service and
configuration files to the desired directory e.g. default is C:\Program
Files\AVEVA\MessageBus\
The Message Bus Queue Administrator will also be installed to the same
directory and a shortcut created (see section „8.2 AVEVA Message Bus
Administrator‟).
See section „6 Interface Configuration details‟ for how to configure the Subscriber
for the relevant mode.
After successful configuration, start the Message Bus Publisher service from
Windows Services (Administrative Tools > Services).
NOTE:
1. The service must be restarted if any changes are made to the
configuration file(s).
2. The Subscriber Service needs write-access to a Log-File.
If the Log file is not located on the server then you may need to run the
service with named account rather than the Local system account.
To change this, go to „Log On‟ setting in the Properties of the Service.
See section „6 Interface Configuration details‟ for how to configure the Subscriber
for the relevant mode.
5 Publisher Service
5.1 Introduction
The Publisher Service collects data files from a specified directory and posts
these files as Messages to the Subscriber.
The Subscriber needs to be installed first to ensure the message queues are
created before the Publisher can post to them.
Setup Check-list
Task Complete
.net framework installed
MSMQ installed
Port Conflict resolved
Publisher installed
Publisher configured
Service startup and logon verified
Service started
5.2 Features
Recoverable messages
If the Publisher Service is stopped and re-started for any reason it will only start
sending those files that appeared in the directory to be watched after the last
successfully sent file.
This guards against sending files multiple times.
Processed files
If it is necessary to send all the processed files again (that are now in the
„processed‟ sub-directory) then follow these steps:
Once the files are successfully processed the postall.cfg file is deleted.
Transaction log
The file “marker.txt” is created in each directory that is watched and should not
be deleted.
The date-time stamp of the „marker.txt‟ file is set when the Publisher Service last
successfully processed a file.
The Publisher and Subscriber services can both run on the same server,
therefore installing them on the same machine is a valid configuration. In this
case AVEVA recommends that both services are installed on the AVEVA
application server.
The program and configuration files for both services can be installed in the same
directory.
5.4 Prerequisites
The following software MUST be installed before installing AVEVA Message Bus
Publisher Service.
The .NET Framework version 2.0 will be required on the machines that will act as
the publisher and subscriber.
Continue through the next steps. This will install the Publisher service and
configuration files to the desired directory.
e.g. default is C:\Program Files\AVEVA\MessageBus\
After successful configuration, start the Message Bus Publisher service from
Windows Services (Administrative Tools > Services).
NOTE:
1. The service must be restarted if any changes are made to the
configuration file(s).
2. The Publisher Service needs write-access to the watched directory.
If this is not located on the server then you may need to run the service
with named account rather than the Local system account.
To change this, go to „Log On‟ setting in the Properties of the Service.
5.6.3 Parameters
Parameter Explanation
DirectoryToWatch The directory that will be watched for files to publish
Any other combination of the above, e.g. a different directory with a different file
filter or the same directory with a different file filter, requires a new
PublisherSection in the configuration file.
To configure the Message Bus Subscriber service for VPRM interfaces you have
to complete the following steps:
- Update the Message Bus configuration file „Subscriber.cfg‟
- Update the Message Bus configuration file „Interface.cfg‟
The subscriber.cfg configuration file is installed with the Message Bus and will be
in the same directory as the Subsciber.exe file.
NOTE:
If the subscriber has already been installed for other interfaces, then all that
needs to be done is add a new Subscriber section to the existing file.
Parameter Explanation
DatabaseHost The database server name
DatabasePassword The password for the „DatabaseUser‟ below.
This SHOULD be encrypted, see section ‘9 Create
an Encrypted Password’.
IsDBPasswordEncrypted Is the database password in an encrypted form?
(y)es or (n)o
DatabasePort The instance Port number – normally 1521
DatabaseProtocol The database protocol – normally TCP
DatabaseSID The instance SID – look in the tnsnames.ora file for
the correct entry
DatabaseUser The instance admin user
EmailAddresses A list of users to be notified by email when an error in
processing the data occurs.
Use a semicolon (;) to separate entries.
EmailFromAddress Optional address to which emails will be returned if
users respond to the email notification of a problem
( default is DO_NOT_REPLY@unattended.com ).
AdditionalMessage Optional message which will be displayed at the end
of email notifications.
EmailServer Your email server name
LocalQueue The Message Queue to watch to incoming messages
(this will be created if it does not exist)
Make sure your queue name is always preceded
by private$\
LogFilePath Location of the file to log all transactions for this
section
This must be unique for each section
This configuration file is used to tell the subscriber service where to process the
content of the xml file for each interface.
The XML file is processed on the database so an existing table name is provided
for this purpose.
Please see the receiving application‟s documentation for the exact entries which
need to be added to this file.
Parameter Explanation
Name The interface name
(Name of the Root element of the XML data file)
DBTableName The related database table name for this interface
To configure the Message Bus Subscriber service for the P&ID to VPE interface
you have to complete the following steps:
- Configure P&ID to use the Message Bus
- Install the PIDDataLoader Plug-in
- Update the Message Bus configuration file „Subscriber.cfg‟
- Update the PIDDataLoader Plug-in configuration file
- Update the VPE.ini file
NOTE:
It is important that the Subscriber service is installed on the VPE Application
Server (Middle Tier). The Subscriber Plug-in will need to access the VPE.ini file
in order to obtain the username and password.
The location of the VPE.ini file is determined from the Registry Key:
HKEY_LOCAL_MACHINE\Software\AVEVA\VPE\
The value in vpe_config is the location of VPE.ini file.
(see section below on Amend VPE Project „.ini’ file)
To avoid port conflict you my need to change the default port for MSMQ (see
section „7 Changing the default port for MSMQ‟).
MSMQ
Publisher Subscriber
16 Drawing
files copied
into watched PIDDataLoader
Working
directory
Directory
Drawing
Sub-folder
P&ID
Data pushed
into VPE
NOTE:
If the subscriber has already been installed for other interfaces, then all that
needs to be done is add a new Subscriber section to the existing file.
Sample file
<Subscriber xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="SubscriberConfig.xsd">
<SubscriberSection>
<PluginAssembly>PluginFolder\AssemblyName.dll</PluginAssembly>
<EmailAddresses>user1@company1.com</EmailAddresses>
<EmailFromAddress>administrator@company.com</EmailFromAddress>
<AdditionalMessage/>
<EmailServer>mailserver.company.com</EmailServer>
<LocalQueue>private$\localq1</LocalQueue>
<LogFilePath>C:\AMBSubscriber\logfile1.txt</LogFilePath>
</SubscriberSection>
</Subscriber>
Parameter Explanation
PluginAssembly The relative path to .NET assembly that implements
interface.
e.g. PIDLoader\PIDDataLoader.dll
EmailAddresses A list of users to be notified by email when an error in
processing the data occurs. Use a semicolon (;) to
separate entries
EmailFromAddress Email address of the user or application sending the
mail. It could be P&ID project administrators.
AdditionalMessage Any additional message required for subscriber to
process the message from queue.
EmailServer Your email server name
A sample settings file is shown below (the actual data highlighted in yellow):
Parameter Explanation
WorkingDirectory This is the directory where data files received from
subscriber is saved for processing.
Filter Can be used to selectively process files.
Should be set to *.* to allow PIDDataLoader to pick up all
the files from working directory.
Processed This is the directory where P&ID Data files are saved after
processing.
DataFileCount This specifies the number of files that has to be picked up
by PIDDataLoader for processing.
Must be set to 16 for the current PIDDataLoader
Save the settings file in the same directory as the Subsciber.exe file.
for example:
[ PI Ddat aLoader ]
User Name=vpe1
Passwor d= i P6xi nJWCNV8_r nTU4bvxQ2
NOTE:
See section „9 Create an Encrypted Password‟ section to ensure the password is
not human-readable.
Both the VPRM and VPE application server (middle tier) will be running the
VPRM/VPE application on port 80 and therefore by default the IIS default Web
Site will be disabled.
In order to be able to run the Message Bus Services (using MSMQ) successfully
and avoid a port conflict the port for the default Web Site will need to be changed
away from port 80, and the Publisher config file will need to be updated to call the
server on the correct port.
Message Queues should not be manually created for use with the Message Bus
application.
Only the application should be used to create and administer (via the Queue
Administrator) the Message Queues.
Message Queues can be deleted by the user using the Computer Management
console – see figure 5.
You cannot however delete individual “bad” messages via this console
– use the Queue Administrator application for this.
The Message Bus Queue Manager has been developed for the purpose of
managing those queues relevant to the Message Bus Publisher – see below.
This application gives much more queue management control over the Microsoft
installed tool through the Computer Management console.
The Queue Manager uses the same configuration file (Subscriber.cfg) as the
Subscriber to know which queues to manage.
Use the Copy to Clipboard button to help you copy and paste the password into
the <DatabasePassword> element of the subscriber.cfg xml file.
Figure 2.2: Adding the Message Queuing component under Windows Server 2003
In addition to installing the Message Queuing component you will need to install
MSMQ HTTP Support to be able to send and receive MSMQ messages via the
Internet.
Figure 3: Adding MSMQ HTTP Support. You must install MSMQ HTTP support to be able to send
and receive MSMQ messages via the Internet.
NOTE:
1. Active Directory Integration is NOT checked
2. The Triggers section is not required for the MessageBus but can be
installed if desired.
IMPORTANT
The Message Bus does not require Active Directory integration and therefore
needs to be installed in Workgroup mode i.e. without Active Directory Integration
support.
To download:
- go to www.oracle.com.
- Click on the „Downloads‟ link.
- In the „Drivers‟ section click on „Oracle Data Access Components for
Windows‟.
- Find the “Oracle 11g ODAC 11.1.0.7.20” section and click to download the
file.
- Accept the License agreement
- Download the ODAC1110720.zip file and installation instructions
Start installing ODAC using the Setup.exe shown in Fig 4 above. Then follow the
installation wizard as shown in below figures.
For AMB we require only Oracle Data Provider for .NET 2.0 11.1.0.7.20 and
Oracle Instant Client 11.1.0.7.0 so select only these two components.