Download as pdf or txt
Download as pdf or txt
You are on page 1of 474

 

OPERATIONS GUIDE
 

B2Bi
Version 2.1.0
 

25 August, 2017
 

Copyright © 2015 Axway

All rights reserved.

This documentation describes the following Axway software:

B2Bi 2.1.0

No part of this publication may be reproduced, transmitted, stored in a retrieval system, or translated into any human or 
computer language, in any form or by any means, electronic, mechanical, magnetic, optical, chemical, manual, or otherwise, 
without the prior written permission of the copyright owner, Axway.

This document, provided for informational purposes only, may be subject to significant modification. The descriptions and 
information in this document may not necessarily accurately represent or reflect the current or planned functions of this 
product. Axway may change this publication, the product described herein, or both. These changes will be incorporated in 
new versions of this document. Axway does not warrant that this document is error free.

Axway recognizes the rights of the holders of all trademarks used in its publications.

The documentation may provide hyperlinks to third-party web sites or access to third-party content. Links and access to these 
sites are provided for your convenience only. Axway does not control, endorse or guarantee content found in such sites. 
Axway is not responsible for any content, associated links, resources or services associated with a third-party site.

Axway shall not be liable for any loss or damage of any sort associated with your use of third-party content.

 
Contents

Updates and revisions 15

Accessibility 17
Accessibility features of B2Bi 17
Keyboard shortcuts 17
Screen reader support 18
Accessibility features of the documentation 18
Screen reader support 18
Graphic readability 18

1 About this guide 19

2 B2Bi architecture 20
User interface layer 20
Application layer 21
B2Bi trading engine 21
B2Bi integration engine 21
Application layer Java requirement 21
Application layer clustering technology 21
Application layer third party software 22
Data Layer 22

3 B2Bi engines 23
Trading engine technology 23
Integration engine technology 23
Integration engine extended processing 23
Message Builder Components (MBC) 24
Integration engine tasks 25
B2Bi engine files, logs and tools 26
B2Bi engine runtime data persistence 27
Managing engines in the user interface 27

4 B2Bi engine directories 29


Trading engine 29
Integration engine 29

5 B2Bi log files 30


Trading engine logs 30
Integration engine logs 31

B2Bi  2.1 Operations Guide  3


6 B2Bi user interfaces 33
B2Bi Administration Interface 33
Start the B2Bi Administration Interface 33
Getting started page 34
Administration menu 34
Root administrator page 35
B2Bi Tools Client 35

7 Patches and service packs 36

8 Installer configure mode 37


Start the  installers in configure mode 37
Configuring 37
Select the products that you want to configure 37
View and modify parameters 38
Apply the configuration 40

9 Resources for B2Bi components 41


About resources 41
Flow validation limitation 41
Availability in the B2Bi interface 42
Learning more 42
Message Builder Components 42
XSLT Components 43
Maps built using the Business Object Modeler 43
Map flows built using Mapping Services 43
Maps built using Datamapper 43
Resource management 43
Implement and manage specific B2Bi resources 43
Import and update component resources 44
Introduction 44
Mapping Services flows 44
Message Builder Components (MBC) 45
Business Object Modeler maps 45
Deploy example resources delivered with B2Bi 46
B2Bi in-house detector component resources 48
About the in-house detectors in B2Bi 48
Common configuration 49
In-house detector V3 implementation 49
Example in-house V3 detector: message with field separators 52
Example in-house V3 detector: message without field separators 54
In-house detector V2 implementation 56
Example in-house V2 detector 59
In-house detector V1 implementation 59

4  Operations Guide B2Bi  2.1


Example in-house V1 detector 63
B2Bi XPath detector resource 63
Implementation procedure 64
B2Bi zip resource 65
Implementation overview 65
Implementation procedure 65
B2Bi DPS caller resource 67
Implementation overview 67
Implementation procedure 67
B2Bi loadable caller resource 69
Implementation procedure 69
B2Bi set inbound EDI separators resource 71
Implementation procedure 72
Map and container deployment 73
Map updates 73
Manual component configuration after update 73
Custom-Functions 74
Multiple-session support 74
Container dependencies 75
Container synchronization 75
Deployment performance 75
Container identification and versioning limitations 76
Integration engine not running 76
Windows path limitation 76
Manage the resource deployment server 77
About the deployment server 77
Manage the deployment server cache 77
Use the deployment server with PassPort 78
Command line interface for the deployment server 79
Example 80

10 B2Bi Monitoring Framework 82


Histograms 82
Exporting statistics to visualization software 82
Timers 83
Configure Monitoring Framework 83
Reporter attributes 84
Filter names 84
Example Monitoring Framework configuration 86

11 B2Bi integration engine management tools 87


Screen resolution prerequisite 87
Starting the tools client 87
View integration engine system information 90

B2Bi  2.1 Operations Guide  5


Alert Manager 91
Start Alert Manager 91
Create a system filter for alerts 91
Modify a system filter 92
Delete a system filter 93
Create a message filter for alerts 93
Modify a message filter 94
Delete a message filter 94
Open an alert to view details 94
Character Sets Manager 99
Start Character Sets Manager 99
Manage character sets 99
Create a character set 99
Modify a character set code interval 100
Delete a character set 101
Delete a character set code interval 101
After you create a character set 101
Datamapper 103
Start Datamapper 103
Datamapper Builder 104
Start Datamapper Builder 104
Work with Datamapper Builder 104
Build programs 105
EDI Tracker 108
Start EDI Tracker 108
Work in EDI Tracker 108
Use an existing search 110
Create a new search 112
Modify a search 115
View details of search results 116
View details of message payloads 124
View the transfer hierarchy 125
Create and manage custom views 126
Additional option settings 129
Refresh search results 133
Count the number of returned items for a search 133
Delete a search 133
Reprocess and resend messages 134
Manually set a message status to correct 134
Import and view log archives 135
File Viewer 138
Start File Viewer and open a file 138
Integration Manager 139
Integration engine definitions 139

6  Operations Guide B2Bi  2.1


Relationship with the B2Bi interface 141
Start Integration Manager 143
Add a Project 144
Add an Integration 146
Configure an Entrypoint Activity 148
Configure an Exitpoint Activity 149
Configure a Classification Anchor Activity 150
Configure a Classification Activity 151
Configure an EDIFACT Inbound Activity 152
Use the EDIFACT Inbound Activity Wizard 153
Configure an EDIFACT Outbound Activity 155
Configure an HL7 Inbound Activity 156
Configure an HL7 Outbound Activity 157
Configure an X12 Inbound Activity 158
Configure an X12 Outbound Activity 159
Configure a Sequential Activity 160
Deploy an Integration 161
Update a deployed Integration 163
Remove a deployed Integration 164
Edit Integrations, Activities and Stages 165
Cut-and-paste behavior 165
Delete an Integration 167
XIB migration 168
Message Log 179
Open Message Log 179
Message Log: View and manage logs 179
Metadata Browser 191
Limitation 191
Open Metadata Browser 191
Work in Metadata Browser 191
Resume work in Metadata Browser 193
Performance Monitor 194
Start Performance Monitor 194
Work in Performance Monitor 194
Queue Monitor 202
Start Queue Monitor 202
Work with Queue Monitor 202
Remote Compiler 207
Start Remote Compiler 207
Compilation options 207
Source files 208
Specify the editor 208
Compile, simulate, and register the component 208
SeqNum Utility 210

B2Bi  2.1 Operations Guide  7


Start the SeqNum Utility 210
Use the SeqNum Utility 212
System Profile Manager 213
Start System Profile Manager 213
Use System Profile Manager 214
System Profile Manager advanced properties page 227
Task Monitor 229
Start Task Monitor 229
Task Monitor organization 229
Task Monitor views 231
View task process details 231
Start and stop processes 232
Generate a process variables file 232
Trace Viewer 234
Start Trace Viewer 234
Work in Trace Viewer 234
User Manager 239
Start User Manager 239
Work in User Manager 239
Manage groups in User Manager 240
Manage logins in User Manager 241

12 Tools in tools directory 243

13 B2Bi system tuning and troubleshooting 249


B2Bi I/O management 250
Using the monitor tool 250
Example results 250
Analyzing the results 250
Adjusting I/O performance 250
Java memory usage 253
Tune the trading engine 254
Manage the Java heap size 254
Manage operating properties 255
Network tuning 259
Testing your network connections 259
Resolving slow database response time 259
Manage sockets and Oracle processes 260
Number of sockets available 260
Oracle processes 260
Increase message splitting efficiency 261
Task 1: Set the maximum integration engine log commits variable 261
Task 2: Rebuild of the integration engine runtime data 262
Troubleshoot unexpected trading engine restarts 262

8  Operations Guide B2Bi  2.1


Unexpected trading engine restarts 262
Analyze restart problems 262
Troubleshoot startup failure with large numbers of trading pickups 268
Tips for estimating the optimum 'open files' setting on Unix/Linux 269
Troubleshoot integration engine selects wrong IP address from backup network interface 270
Installer configure mode 272
Start the  installers in configure mode 272
Configuring 272
B2Bi system tuning and troubleshooting 275
B2Bi I/O management 276
Java memory usage 279
Tune the trading engine 280
Network tuning 285
Manage sockets and Oracle processes 286
Increase message splitting efficiency 287
Troubleshoot unexpected trading engine restarts 288
Troubleshoot startup failure with large numbers of trading pickups 294

16 B2Bi Active / Active clustered installations 297


General concepts 297
Clustering and scaling 297
Information summary 298
Concepts 298
Tasks 298
B2Bi cluster features 298
Limitations 303
Management features 304
Clustering for Axway products working with B2Bi 305
Secure Relay 305
PassPort 305
Transfer CFT 306
Install B2Bi cluster nodes 307
Prerequisites 307
Set up an Active / Active cluster 307
Confirm the installation 307
File systems for B2Bi clusters 308
File system organization 308
Local file system 308
Shared file system 309
Supported file systems for the B2Bi shared file system 309
B2Bi cluster behavior 309
Definitions 310
Adding nodes 311
Removing nodes 312

B2Bi  2.1 Operations Guide  9


Cluster membership change on other B2Bi nodes 314
Impact of cluster change on runtime data 314
Trading engine throttling on integration engine failure 316
Related messages and actions 317
Message duplication 317
Node rejoining clusters 317
Monitor erroneous messages 318
Resubmit messages 318
B2Bi cluster management tasks 319
Deploy objects and configurations to clusters 319
Set and modify environment variables 321
View cluster node status 321
Add a cluster node 323
Delete a cluster node 323
Start a node 324
Stop a node 324
Tune and scale clusters 325
Processing factors 325
B2Bi scaling 326
Integration engine scaling / tuning 326
Trading engine tuning 327
Best practices for cluster environment development 327
WebSphere MQ multiple instances 329
Set up WebSphere MQ 329
Set up B2Bi 329
How the multi-instance functions 330

17 Start and stop B2Bi servers 331


Start and stop B2Bi 331
Before you start B2Bi 331
Did you install B2Bi as a Windows service? 331
About the B2Bi start/stop script 331
Use the script 332
Syntax 332
Examples 332
Start B2Bi servers individually 333
Start the Axway Database 334
Prerequisite 334
Procedures 334
Start Sentinel 335
Prerequisites 335
Procedures 335
Start PassPort 336
Prerequisites 336

10  Operations Guide B2Bi  2.1


Procedures 336
Stop B2Bi servers individually 336
Stop Sentinel 337
Prerequisites 337
Procedures 337
Stop  P assPort 338
Windows 338
UNIX 338
Stop the Axway Database 338
Windows non-service mode 338
Windows service mode 338
UNIX 339

18 Backup and restore: Recommendations and example 340


Introduction 340
Example environment 340
Back up a B2Bi configuration 341
Back up the B2Bi nodes 341
Backup the shared file system 341
Back up the external database on a regular schedule 343
Additional recommendations 343
Restore a backed-up B2Bi configuration 343

19 Backup and restore 344


Overview 344
Uniqueness of objects and exchange contexts 345
Choosing a backup type 345
Compare community backup and system backup 346
Back up  a B2Bi system configuration 348
System configuration backup file content 348
Import a backed-up B2Bi system configuration 354
Select the system import mode 356
System configuration backup/restore using the command line 357
Log files 358
Back up a community and its partners 358
Back up a community 359
Import a backed-up community and its partners 359
Back up a community as a partner 360
Community backup as partner procedure 361
After you back up a community as a partner 361
Back up a partner 361
Partner backup procedure 362
Import a partner 362
Import a single partner profile 363

B2Bi  2.1 Operations Guide  11


Import all partner profiles found in a directory on the server 364
After you import a partner profile 364
Back up selected objects 366
Required permissions 366
General procedure 366
Example procedure: Export selected services 366
After you create the export file 367
Import / restore selected objects 368
Required permissions 368
General procedure 368
Example procedure: Import selected services 369
Special conditions and exceptions 369
Back up and restore a custom configuration 377
Automatic profile importing 377
Uniqueness in B2Bi 379
Unique object names 379
Unique exchange context (agreements) 379

20 Message Feed Protocol 382


Communication methods 382
Message Feed server architecture 383
Install Message Feed Server 384
About the Message Feed API 384
MFP activities and scaling 384
Track Message Feed in Message Log 385
Message Feed Client 385
MFP command line tool 386
Start syntax for the Message Feed Client program 386
Command arguments 386
Output from Message Feed client 387
Example of Message Feed from the command line 388
Message Feeder C-language access 389
mfp_Authenticate 390
mfp_Connect 392
mfp_Disconnect 393
mfp_FreeReply 393
mfp_GetLastError 394
mfp_GetReply 395
mfp_GetSocket 399
mfp_Revision 399
mfp_StatusToString 400
mfp_SubmitMessage 401
Message Feed Message Builder access 404
MFP.Authenticate 405

12  Operations Guide B2Bi  2.1


MFP.Connect 407
MFP.Disconnect 408
MFP.GetReply 409
MFP.GetSocket 412
MFP. Revision 413
MFP.StatusToString 413
MFP.SubmitMessage 414
Message Feed Java access 417
Mfp. revision 418
Mfp.constructor 419
Mfp.authenticate 421
Mfp.submitMessage 423
Mfp.close 425
MfpAttribute.constructor 426
MfpAttribute.setName 427
MfpAttribute.setValue 428
MfpAttribute.getName 429
MfpAttribute.getValue 429
MfpAttribute.toString 431
MfpSubmitMessageReply.getStatus 432
MfpSubmitMessageReply.getLoggerId 433
MfpException.toString 433

21 Additional B2Bi operations tasks 435


Check database connections 435
B2Bi database 435
PassPort database 436
Run dbConfig 436
Deploy and promote B2Bi configurations 439
Use backup restore tools 439
Manage custom components and files 440
Create audit files of UI object changes 442
Introduction 442
Activate object change auditing 443
Activate logging to XML file 444
Tune object change audit outputs 444
Enable non-standard version/release/ID codes for X12 message exchanges 446
Procedure 1: Update repos files for X12 to support 4010 446
Procedure 2: Append the elecod.dsc file 446
Integration engine message recovery after node failure 447
Identify the date and time of the crash 447
View error logs in Message Log 447
Remove incorrect elements from integration engine queues 449
Remove unused queues 451

B2Bi  2.1 Operations Guide  13


Additional steps, when the system has crashed completely 451
Duplicate handling 452
Naming conventions 454
Manage B2Bi purges 458
Configure automated trading engine purge 458
Configure event purge 459
Purge trading engine manually 459
Purge integration engine manually 461
Manage licenses and keys 463
Update the trading engine license file 463
Update the integration engine license key 463
Update the Axway Database license key 465
Manage the system throttle 466
About the system throttle 466
System throttle management 467
Modify HTTP upload file size limit 469
Set the log file archiving schedule 470
Note on  archive directory paths 470
Set log file archiving 471
Set up Message Tracker 472
Enable document backups 472
Configure Message Tracker 472
Using Message Tracker 474

14  Operations Guide B2Bi  2.1


Updates and revisions
 
This guide has been updated to include documentation corrections and to reflect enhancements 
delivered in new releases. Refer to the Release Notes and readme files available with product releases 
for full lists of product corrections and enhancements.

The following sections of this guide have been added or revised:

Revised section Description

Document republished October 12, 2016 

Tune and scale  Corrected information on configuring CPU usage in relation to 
clusters on page  Integration Engine processes.
325

Use System Profile  Corrected information on configuring CPU usage in relation to 
Manager on page  Integration Engine processes.
214

Document republished June 15, 2016 

Installer configure mode on  Added information about selecting the "Stop duplicates from 
page 272 being processed option".

Document republished May 24, 2016

B2Bi I/O management on  Corrected analysis of IO usage test results.
page 276

Document republished January 11, 2015 

Tools in tools directory on  Restored trading engine tools directory tool descriptions.
page 243

Document republished June 5, 2015 

Use System Profile Manager  Added information on using the System Profile Manager to set 
on page 214 parameters that control how the B2Bi integration engine sends 
events to Sentinel. 

Increase message splitting  Added tip for improving performance when spitting inbound 
efficiency on page 287 messages to a large number of smaller messages.

B2Bi  2.1 Operations Guide  15


 Updates and revisions

Revised section Description

Document republished October 12, 2016 

Tune and scale  Corrected information on configuring CPU usage in relation to 
clusters on page  Integration Engine processes.
325

Use System Profile  Corrected information on configuring CPU usage in relation to 
Manager on page  Integration Engine processes.
214

Document republished June 15, 2016 

Installer configure mode on  Added information about selecting the "Stop duplicates from 
page 272 being processed option".

Document republished May 24, 2016

B2Bi I/O management on  Corrected analysis of IO usage test results.
page 276

Document republished January 11, 2015 

Document republished December 18, 2014

Import and update  Updated and corrected flow deployment procedures.
component resources on 
page 44

Command line interface for  Updated and corrected flow deployment procedures.
the deployment server on 
page 79

16  Operations Guide B2Bi  2.1


Accessibility
 
At Axway, we strive to create accessible products and accessible documentation for all users.

This section describes the accessibility features of the B2Bi product and its documentation.

Accessibility features of B2Bi


B2Bi provides the following accessibility features:

 l Keyboard shortcuts on page 17
 l Screen reader support on page 18

Keyboard shortcuts
B2Bi provides a set of shortcuts for navigating the interface screens and for executing various 
actions.

Note To use shortcuts with JAWS, turn off the virtual PC cursor. For more information, see 
Screen reader support on page 18.

The following table contains a list of keyboard shortcuts that you can use:

To do this Press

Move forward through selectable objects Tab

Move backwards through selectable objects Shift + tab

Multi-select in list boxes (where multi-select is enabled) Ctrl + click 

Multi-select (where multi-select is enabled) Shift + click 

Select/clear check boxes and radio buttons Space

Display drop-down box content Alt + down arrow

Move cursor within drop-down box Up arrow / down arrow

B2Bi  2.1 Operations Guide  17


 Accessibility

Screen reader support


B2Bi supports JAWS. Before you can use JAWS with B2Bi, you must first configure your screen 
reader.

As with other screen readers, you interact with JAWS using keyboard shortcuts. Most of the time, 
you must press the JAWS key in combination with other keys. By default, the JAWS key is the Insert 
key.

To use the arrow keys and keyboard shortcuts with B2Bi, turn off the virtual PC cursor by pressing 
the JAWS key+Z.

Accessibility features of the documentation


The product documentation includes the following accessibility features:
 l Screen reader support on page 18
 l Graphic readability on page 18

Screen reader support


 l Text is provided as an alternative to displayed images throughout the documentation.
 l PDFs are optimized for screen reader navigation.

Graphic readability
 l The documentation is very readable on high-contrast displays.
 l There is sufficient contrast between the text and the background color.
 l The colors used in graphics are designed to be easily distinguishable by people who have color 
blindness.

18  Operations Guide B2Bi  2.1


About this guide

This guide is intended for B2Bi administrative operators who are responsible for running and 
maintaining a B2Bi installation.

This guide provides information to help you start, run, tune and maintain B2Bi. It presents B2Bi 
architecture, logs, tools, best practices, and discusses strategies and procedures for resolving issues 
and operating problems. 

B2Bi  2.1 Operations Guide  19


B2Bi architecture

B2Bi is structured in three functional layers:

 l User interface layer
 l Application layer
 l Data layer

User interface layer


Users access the B2Bi server from Windows, Macintosh, Linux and UNIX machines running a variety 
of browsers, including Firefox and Internet Explorer. Best support is provided through Firefox or 
Internet Explorer.

B2Bi  2.1 Operations Guide  20


2  B2Bi architecture

Users can also work with the B2Bi server (for development / deploying purposes) through Mapping 
Services. Mapping Services is an Eclipse plug-in application that runs on Windows. Mapping 
Services provides an environment for the development and deployment of maps and other B2Bi 
component resources.

Application layer
In the application layer in the server environment, we distinguish two main server engines:

 l B2Bi trading engine
 l B2Bi integration engine

B2Bi trading engine


The B2Bi trading engine has the role of managing trading relationships between message exchange 
endpoints (applications and partners). The trading engine has the additional role of exchanging 
files with the solution’s document transformation component, which is known in the B2Bi product 
as the B2Bi integration engine.

B2Bi integration engine


The B2Bi integration engine is mainly responsible for processing the content / context of the 
information that is being exchanged. The integration engine performs such tasks as splitting, 
mapping, enveloping, and so on.

Application layer Java requirement


Axway B2Bi 2.1 relies on a Java TM SE Runtime Environment, version 1.7. The B2Bi installer 
automatically provides this Java environment version for B2Bi.

Application layer clustering technology


You can implement B2Bi in active-active mode. To support this, B2Bi relies on a proprietary 
embedded cluster solution: ACF (Axway Clustering Framework).

The Axway Clustering Framework (ACF) is an extension to the OSGi framework 
(http://www.osgi.org/). It enables multiple OSGi instances to work together as a cluster. ACF is 
composed to two main constructs:

 l Infrastructure to manage multiple instances of an OSGi framework, each running in its own JVM. 
This allows nodes to be dynamically defined, started, stopped, and restarted, thereby enabling 
scalability and fault tolerance.

21  Operations Guide B2Bi  2.1


Data Layer

 l A suite of cluster related APIs that are provided as an OSGi bundle. These APIs provide cluster 
management, RPC style messaging, cluster singletons, resource locking, and more.

Benefits of ACF:

 l Scalability
 l High availability and fault tolerance
 l Simple management
 l Inter-node communication
 l Resource locking
 l OSGi features

For details of cluster management, see B2Bi Active / Active clustered installations on page 297.

Application layer third party software


Various functionality in B2Bi is provided using licensed (open source) third-party libraries. For each 
B2Bi release, we publish a detailed list of used third-party libraries. 

Data Layer
B2Bi requires a database. Supported databases are DB2, Oracle, SQL Server and MySQL. For 
clustered installations, B2Bi additionally requires a shared file system. Various shared file systems are 
supported. For detailed information, see the B2Bi Installation Guide.

B2Bi  2.1 Operations Guide  22


B2Bi engines

B2Bi functionality and services are provided by two main engines:

 l Trading engine –  mainly responsible for protocol and security handling
 l Integration engine – mainly responsible for message content handling

Both of these engines are started when you start B2Bi, and both must be running for B2Bi to 
operate.

Trading engine technology


The B2Bi trading engine is written entirely in Java. It relies on a regular Java TM SE Runtime 
Environment, version 1.6. 

The trading engine web interface is based upon Cocoon and uses an embedded Jetty application 
server, version 6.

The trading engine has an extensible architecture that enables system integration engines to apply 
custom logic to  messages that transit in the processing pipeline. This custom processing logic, 
implemented as a user-defined Java class, can be selectively applied at runtime to inbound or 
outbound messages.

Integration engine technology


The B2Bi integration engine is written in several programming languages: C code, Axway-proprietary 
Message Builder code and Java. Integration engine core services run as C-programs. The B2Bi Server 
logic is written in Message Builder code with certain pieces in Java.

Integration engine extended processing


To provide a virtually limitless array of processing functionality, the integration engine uses 
customized units of processing code that reside in B2Bi and that message flow administrators can 
apply to specific message processing contexts. These customized units of code are known as 
Message Flow Components (MFC).

There are several categories of MFC:

 l Message Builder Components (MBC) – written in the Axway-proprietary Message Builder 
Language.
 l Mapping programs – developed in Mapping Services.

B2Bi  2.1 Operations Guide  23


3  B2Bi engines

 l Java, to create Java Message Components

Message Builder Components (MBC)


Message Builder is an Axway-proprietary, general-purpose, fourth-generation programming 
language. Among other things, it contains special constructs to access SQL databases and to handle 
messages. Large parts of the B2Bi integration engine are written using Message Builder. Message 
Builder runs on different versions of UNIX, Linux and Windows. Compiled Message Builder programs 
are platform independent and can be moved between different computers / platforms and can be 
executed without recompilation.

Message Builder is byte compiled, using the embedded MB compiler. After compilation, the code 
can be executed using the MB interpreter (Virtual Machine). 

A Message Builder program consists of one or more text files containing the program text. These files 
are compiled using a compiler that produces an executable Message Builder program. This 
executable program consists of instructions for a virtual machine. An interpreter implements this 
virtual machine and is used to execute the program.

C- Extender
The loadable-object extension module feature of Message Builder enables you to load a C-written 
module into a running Message Builder interpreter. This may be convenient when you interface the 
integration engine with a new product, or when you require C-written routines for performance 
reasons.

An object extension module adds a number of functions and statements to the Message Builder 
language. These functions and statements are called in the same way as built-in and user functions 
and statements.

To create a loadable-object extension module, you must do the following two things:

 1.  Write the C code that implements the module.
 2.  Write the Message Builder code that declares the new functions and statements and loads the 
extension module.

Java-Extender
The Java extension enables you to call static Java methods from Message Builder code, and also to 
make callbacks to Message Builder code from Java.

Communicating with Java code means (among other things) that you must be able to handle Java 
objects. Since this is not possible in Message Builder, a Java utility class named ObjectMap is also 
included. This class contains static methods used to insert objects into a global map, retrieve objects 
from the map, and delete them. Integers (object map IDs) are used to identify objects in the map. 
There is also a Message Builder interface to some of the methods in the class. The JAVA_MAP module 
implements this interface.

The JAVA_UTIL Message Builder module contains various utility routines.

24  Operations Guide B2Bi  2.1


Integration engine tasks

The JAVA_REFLECT Message Builder module uses the Java reflection mechanism to make it possible 
to create objects, call Java methods, etc. without having to write Java wrapper code (typically, both 
a Message Builder and a Java wrapper is needed to be able to call a Java method from Message 
Builder code).

For a detailed descriptions of how to work with MBCs, see:

 l B2Bi Integration Engine MBC Developer Guide
 l B2Bi Integration Engine Message Builder Guide
 l B2Bi Integration Engine MBC Message Builder Library

This documentation is available on the B2Bi Server installation image, and at 
https://support.axway.com.

Integration engine tasks


The B2Bi integration engine is built in a “service oriented architecture”. This means that a number of 
basic services run to facilitate the message processing. In integration engine terminology, these 
services are known as "tasks". 

To view the tasks that run on your integration engine:

 1.  Open a session in the B2Bi user interface. 
 2.  Go to System management > System management. 

 3.  With an integration engine node running, click the Integration engine tasks hyperlink to 


open the Manage integration engine tasks page.

This page displays a list of integration tasks and their current status. You can stop and start any of 
the displayed tasks.

The following table describes some example tasks:

Task Description

Core Services Responsible for the transfer of messages among the activities. 

Filer  Responsible for all disk IO (the actual reading and writing from / to disk).

Logger Responsible for logging all message processing related activity.

Table Responsible for storing message related information (which, for example, can 
be used for correlation purposes).

Timer Responsible for timer events (time-outs).

Trace Responsible for interactions with the trace (log) files.

Each of the tasks described in the preceding table writes information to the shared file system. 

B2Bi  2.1 Operations Guide  25


3  B2Bi engines

The Queue task and Tmer task information is updated / emptied automatically as part of message 
processing. 

Table task events either expire  automatically (if event purges are configured) or can be removed 
programmatically. 

Every day, two new Trace files are created (one for system and one for processing events).  Trace 
files older than seven days are automatically deleted.

The Logger and Filer tasks are the only tasks that store persistent data. To view this data, use EDI 
Tracker (see EDI Tracker on page 108) and Message Log (see Message Log  on page 179). 

The information stored by the Logger and Filer tasks is cleaned by the Archiver task. This task cleans 
files on a schedule that you can define. It cleans all log-entries and accompanying payloads. By 
default the Archiver task runs every day at midnight and cleans everything older than 30 days. To 
manage this behavior, see Set the log file archiving schedule on page 470.

B2Bi engine files, logs and tools


After you install B2Bi, configuration files, logs and tools specifically related to the trading engine are 
located in the directory:

[B2Bi installation name]/Interchange/

Configuration files, logs and tools specifically related to the integration engine are located in  the 
directory:

[B2Bi installation name]/Integrator/

The B2Bi installation log is located in the root of the installation directory:

[B2Bi Installation name]/install.log

Files, logs and tools that are shared by the two engines are principally located in the directories:

 [B2Bi installation name]/

B2Bi/

Common/

Configuration/

Tools/

For clustered operations, files shared between nodes are stored in the directory that you specify 
during B2Bi installation.

26  Operations Guide B2Bi  2.1


B2Bi engine runtime data persistence

B2Bi engine runtime data persistence


As B2Bi processes data, the trading engine and integration engine collect and persist the following 
types of run-time data on the file system and in the database:

 l Payloads
 l Log / trace files
 l Message-processing details

This information is stored for a certain period, after which most of it is removed automatically.

The integration engine produces various log files. Apart from the trace information, there is no 
inbuilt mechanism for purging the other log files. Normally these files do not grow as a result of 
regular message processing, unless debugging has been turned on at processing step level for DML 
maps (mapping.log), or in case of errors (starter.log / system.err).

Managing engines in the user interface


After you install and start B2Bi, you can perform many B2Bi engine management tasks from the B2Bi 
user interface. You can also view the status of each engine and the status of all integration engine 
tasks.

Log on to the user interface and click System Management on the tool bar, to open the System
management page.

B2Bi  2.1 Operations Guide  27


3  B2Bi engines

This page displays a full list of commands related to node and system management. For help with 
any of the tasks listed on the System management page, select the task and then click Help > Help
for this page on the toolbar.

28  Operations Guide B2Bi  2.1


B2Bi engine directories

In a typical B2Bi installation, the following directories are particularly useful to system 
administrators:

Trading engine
 l Installation folder –  <B2BI_installation_directory>/Interchange
 l Logs folder  –   <B2BI_installation_directory>/Interchange/logs

 l Configuration folder  –   <B2BI_installation_directory>/Interchange/conf
 l Custom inline processes jars folder  –   <B2BI_installation_
directory>/Interchange/site/jars

Integration engine
 l Installation folder –  <B2BI_installation_directory>/Integrator
 l Logs folder –   <B2BI_installation_directory>/Integrator/data/log
 l Configuration folder  –   <B2BI_installation_directory>/Integrator/local/config
 l Trace logs folder  –   <B2BI_installation_directory>/Integrator/data/trace/
{logNumber}

B2Bi  2.1 Operations Guide  29


B2Bi log files

Trading engine logs
The B2Bi trading engine has multiple processes running in parallel.  The trading engine control node 
manages starting and stopping the integration engine server. It logs these activities in CN log. 

The trading engine manages sending and receiving files between partners and back-end 
applications and is the heart of B2Bi. The trading engine writes logs to the TE log. 

The B2Bi engine manages the connection between the integration engine and the trading engine.

Log files can be divided in two main categories:

 l Event logs
 l System logs

The log files from the trading engine are written to <B2BI_install_
directory>\Interchange\logs. The log files typically have the extension .log. They grow to a 
maximum of 10 Mb. As soon as the 10 Mb threshold is reached, a new log file is created and the old 
log file gets a number added to the extension.

The following table lists important trading engine logs:

Log name Location Content

Events logs

{hostname}_te_ <B2Bi_install_ Reports user-initiated configuration 


events.log  directory>/Interchange/logs/ events for a machine in a cluster. 
This log records events for the 
trading engine.  

System logs

{hostname}_ex.log <B2Bi_install_ Created by the system executive, 


directory>/Interchange/logs/ which is the first JVM to come up, 
and is responsible for bootstrapping 
all other JVMs. 

B2Bi  2.1 Operations Guide  30


5  B2Bi log files

Log name Location Content

{hostname}_ <B2Bi_install_ Reports  B2Bi PM server related 


b2bi.log directory>/Interchange/logs/ information. 
The PM server is an internal server 
that provides the integration engine 
with  appropriate processing and 
partner configuration at runtime.

{hostname}_cn.log <B2Bi_install_ Created by the B2Bi Control Node 


directory>/Interchange/logs/ on the host it is named for. Each 
host in a cluster gets a single 
Control Node. This JVM runs the 
user interface.   

{hostname}_te.log  <B2Bi_install_ Reports processing activity for each 


directory>/Interchange/logs/ JVM processing node for the trading 
engine  

XXXX_stats.log <B2Bi_install_ Java Management Extensions (JMX) 


directory>/Interchange/logs/ monitoring and statistics logs. There 
can be many of these files, 
depending on how many processing 
nodes are active. 

{hostname}_b2b.log <B2Bi_install_ B2Bi integration logs


directory>/Interchange/logs/

Integration engine logs


The following table lists important integration engine logs:

Log name Location Content

system.err <B2Bi_install_directory>\Integrator\data\log\ Significant 


system 
errors.

starter.log <B2Bi_install_directory>\Integrator\data\log\  Broadcast 


Agent Task 
and system 
starter 
(start / 
stop logs).

31  Operations Guide B2Bi  2.1


Integration engine logs

Log name Location Content

txxxxxxxx <B2Bi_install_directory>\Integrator\data\trace\9\ Integration 


engine 
general 
operation
s.

agent.log <B2Bi_install_directory>\Integrator\data\log\ Functional 


operations 
of the 
Broadcast 
Agent . 
Compilatio
n Errors 
(DML 
Maps).

broadcast.l <B2Bi_install_directory>\Integrator\data\log\ DML map 


og deploymen
t log.

mapping.lo <B2Bi_install_directory>\Integrator\data\log\ DML map 


g runtime 
log.

dml.log <B2Bi_install_ DML 


directory>\Integrator\local\config\runtime\mappingcomponent\r processin
unning\ generated\ g.

compile.log <B2Bi_install_ DML 


directory>\Integrator\local\config\runtime\mappingcomponent\r compilatio
unning\ generated\ n.

map- <B2Bi_install_directory>\Integrator\data\log\ Map 


loader.log translation 
debug 
logs.

B2Bi  2.1 Operations Guide  32


B2Bi user interfaces

B2Bi provides two server user interfaces:

 l B2Bi Administration Interface
 l B2Bi Tools Client

B2Bi Administration Interface


Use the B2Bi Administration Interface to configure B2Bi and to monitor trading engine related 
events. 

Start the B2Bi Administration Interface


 1.  Open a web browser.
 2.  Enter the URL: http://[Host]:6080/ui/
Where Host is the fully-qualified domain name or IP address of the computer where you 
installed the server.
If your browser and B2Bi are on the same computer, you can use localhost.
B2Bi opens the logon screen.
 3.  If you are logging on for the first time, enter:
 l User ID: admin

 l Password: Secret1

B2Bi  2.1 Operations Guide  33


6  B2Bi user interfaces

Getting started page


When you log on, the interface directs you to the Getting started page. This page displays a set of 
tasks that are required for initial setup.

Administration menu
The menu bar at the top of the B2Bi user interface provides you with the following set of menus and 
page access:

34  Operations Guide B2Bi  2.1


B2Bi Tools Client

Root administrator page


Click the home icon on the tool bar to display the administrator's home page:

B2Bi Tools Client


Use the B2Bi Tools Client interface to monitor message processing in the integration engine. This 
interface provides you access to a collection of tools for monitoring different aspects of message 
processing.

For a detailed description of the B2Bi Tools Client tools, see B2Bi integration engine management 
tools on page 87. 

B2Bi  2.1 Operations Guide  35


Patches and service packs

Axway periodically releases Service Packs and patches for B2Bi. It is recommended to install the 
latest patches and service packs. For information about available service packs, visit 
https://support.axway.com.

For upgrade procedures, see the B2Bi Installation Guide.

B2Bi  2.1 Operations Guide  36


Installer configure mode

After you install a B2Bi Client or Server environment, you can modify many parameters of the 
products by running the installer in configure mode.

When you run the installer in configure mode you have access to the original installation pages as 
well as to additional pages that you can use to fine-tune the B2Bi performance and behavior.

Start the installers in configure mode


Windows:

 1.  In Windows Explorer, go to the root of the B2Bi Client or Server installation directory and right-
click configure64.exe.
 2.  Select Run as administrator.

Alternatively, you can:

 1.  Go to Start > All Programs > Axway Software > [B2Bi Client or Server installation
name] > Configure.
 2.  Right-click Configure and select Run as administrator.

UNIX/Linux:

Go to the root of the B2Bi Client or Server installation directory and launch configure.sh.

Configuring
After you start an installer in configure mode, you use it much as you do in installation mode.

You can work in either in a console display or a graphic interface display (Windows only) to view 
your current installation settings and modify fields to meet your operating requirements.

Select the products that you want to


configure
You do not need to view all configuration parameters. An initial configuration page enables you to 
select the product elements that you want to view and optionally configure.

B2Bi  2.1 Operations Guide  37


8  Installer configure mode

View and modify parameters


You can configure the following parameters in configure mode.

B2Bi Server parameters


PassPort AM  

 l Use PassPort AM 
 o PassPort host
 o PassPort port
 o Shared secret

Integrator

 l License Number
 l License Key
 l SAP connector
 o Library path

B2Bi Core Server  

 l Queue size 
 l Message size limit – Default = 16384 
 l Use B2Bi Visibility
 l Enable online archive
 l Enable Integration Manager

B2Bi Core Server connectors – Select the connectors to activate in your environment.

 l WebEDI
 l ALE
 l FTP
 l File system
 l HTTP
 l Email
 l Secure Transport
 l Enable migration

B2Bi Core Server behavior – These parameters can only be viewed and modified in configure 


mode.

38  Operations Guide B2Bi  2.1


Configuring

 l Use failsafe mode – The fail-safe operation configuration controls how files are written to 


disk. The files can be written in synchronized or unsynchronized mode:
Option selected = Synchronized write to ensure data persistence in case of a system crash. 
The program that writes to a file on the disk has to wait until the disk acknowledges the physical 
disk writes. (This involves physically spinning the disk and moving the arm, which is time 
consuming.)
Option not selected = Unsynchronized write, to improve performance: The program that 
writes to a file on the disk, writes to an O/S buffer. This buffer is emptied/synchronized at 
intervals, and the overall disk I/O performance is very good. In case of a system crash, there is a 
risk of losing the contents of the buffer.
The recommended setup is to configure the B2Bi integration engine to run with fail-safe 
operation enabled (synchronized write mode). This guarantees maximum message integrity and 
overall system consistency.
 l Enable EDIFACT batch file splitter – Enables the use of EDIFACT batches.
 l Enable X12 batch file splitter – Enables the use of X12 batches. 
 l Use DML Maps – Enable the use of of DML maps within B2Bi. Enabled by default. You should 
only clear this option in exceptional cases (for example when migrating environments).
 l Generate acknowledgements for undefined X12 transaction sets – Enables the 
generation of acknowledgements for non-defined transaction sets for specified partners within 
your system. Disabled by default.
 l Stop possible duplicates from being reprocessed flag – Messages that transit in B2Bi can 
potentially be duplicated when the B2Bi system is unexpectedly halted before it can notify a 
partner system that the communication is completed / confirmed. Use this option to control 
B2Bi handling of possible duplicates.
Important: If you modify this setting (select or clear), for the changes to take effect you must 
save the changes by opening the System Profile Manager application of the B2Bi Client tool set, 
and selecting File > Save Dataset.
Option not selected = The integration engine automatically reprocesses completed (but 
uncommitted) transfers when the system restarts.
Option selected = The Integration Engine does not automatically reprocess messages which 
potentially have been processed already. Instead, it marks these messages as possible duplicates. 
The system administrator must decide whether or not to retransmit flagged messages manually.

B2Bi Core SAP connector – Select this option to specify the location of the SAP libraries on your 


network so that they can be copied by the installer to the B2Bi installation. In most cases your SAP 
libraries are located here:

[SAP installation directory]/lib

B2Bi SAP exchanges require SAP version 3.0.9 libraries. 

B2Bi  2.1 Operations Guide  39


8  Installer configure mode

B2Bi Client parameters


 l B2Bi Server host – Principal B2Bi Server to be managed by the client.
 l System manager port – Access port on the main server host for the System Profile Manager 
tool.
 l Mapping Services license key – Use this field to change the Mapping Services license key.

Apply the configuration


When you are satisfied with the parameter settings, click Configure to apply changes and update 
the configuration.

40  Operations Guide B2Bi  2.1


Resources for B2Bi
components 9 
In order to control the way B2Bi handles the messages and files that transit in its servers, you often 
need to add and manage resources for B2Bi components.

About resources
Resources are small installable programs that extend the standard set of message handling processes 
provided by B2Bi. 

A resource might enable B2Bi to converse with a specific type of remote application, or it might 
modify the structure of a transiting file, or retrieve a specific data element from a database. The 
functional possibilities of component resources are virtually limitless.

Resources can be classified in the following categories:

 l Message Builder Component (MBC) resources, built using the Axway-proprietary Message  Builder 
language
 l XSLT component resources for wrapping, transforming and validating the structure of XML files 
 l Map flows built using Mapping Services
 l Maps built using Datamapper
 l Maps built using the Axway Business Object Modeler (JTransform and TF-XSLT) 

B2Bi includes a collection of resources that are delivered by the B2Bi Server installer. Some of these 
are installed as part of the standard installation process and are immediately available for the 
configuration of message exchanges.  Other components are available as add-ons and must be 
manually copied to an appropriate directory on the integration engine. Map components must also 
be registered on the integration engine before they can be deployed in a message flow.

In addition to the installed resources and resource add-ons, you can build your own components 
either using Java or the Message Builder language. You can also modify exiting components to 
perform specific tasks. 

Flow validation limitation


To implement validation on EDI and X12 message flows in B2Bi, you must use maps that are built in 
the development environment, typically either in Mapping Services or the Datamapper.

B2Bi  2.1 Operations Guide  41


9  Resources for B2Bi components

Availability in the B2Bi interface


For a resource to be available for use in the user interface:

 l The resource file must reside in <B2Bi_shared_directory>\local\4edi\component, 
where <B2Bi_shared_directory> is the B2Bi shared directory specified during installation.
 l If the resource is a map, it must be registered. MBC resources are automatically registered.
See Import and update component resources on page 44.
 l A resource (the processing code) for a component can produce either zero or one output 
messages. If the resource that is assigned to a component has no outputs (as in the case of a 
Modifier MBC), the B2Bi UI page for configuring the component displays the option "Copy input 
message if no output is created".
 o When this option is disabled, B2Bi completes processing for the component and performs no 
additional processing on the message.
 o When this option is selected, B2Bi copies the input message to the output of the 
component.
Selecting this option enables B2Bi to continue processing the message (mapping, etc.,). 
This also enables you to select the desired output format when configuring the component.

Learning more
This section explains where to locate additional resources for learning about the different types of 
B2Bi message-processing resources.

Message Builder Components


Message Builder Components are custom programs that are written in the Axway-proprietary 
Message Builder Code. You can build your own MBCs to provide a wide range of functionality to 
B2Bi.

For detailed information about building  Message Builder Components, refer to following 
documents, delivered on the B2Bi Server installer image:

 l B2Bi Integration Engine MBC Developer Guide  
 l B2Bi Integration Engine Message Builder Guide  
 l B2Bi Integration Engine MBC Message Builder Library  

42  Operations Guide B2Bi  2.1


Learning more

XSLT Components
For information on deploying and managing XSLT components, refer to the B2Bi Administrator 
Guide, "XSLT with B2Bi" chapter.

Maps built using the Business Object


Modeler
Refer to the Axway Business Object Modeler documentation.

Map flows built using Mapping Services


Refer to the Mapping Services documentation set.

Maps built using Datamapper


Refer to the AMTrix product documentation.

Resource management
General procedures for managing resources:

 l Import and update component resources on page 44
 l Manage the resource deployment server  on page 77

Implement and manage specific B2Bi


resources
 l B2Bi in-house detector component resources on page 48
 l B2Bi loadable caller resource on page 69
 l B2Bi XPath detector resource on page 63
 l B2Bi zip resource on page 65
 l B2Bi DPS caller resource on page 67
 l B2Bi loadable caller resource on page 69
 l B2Bi set inbound EDI separators resource on page 71

B2Bi  2.1 Operations Guide  43


9  Resources for B2Bi components

Import and update component resources

Introduction
You may want to:

 l Add new B2Bi component resources (flows) that you create in Mapping Services.
 l Create new versions of resources that you have already deployed to the production server.
 l Add resources that you edit or download from the Axway support site. 
 l Deploy additional example resources delivered with the B2Bi product:
 o Mapping Services maps and flows
 o Message Builder Component resources

Mapping Services flows


To use B2Bi maps (embedded in "flows") that you create or edit in Mapping Services, you deploy 
the flows to a B2Bi server. There are two methods for deploying  a flow:

 l Deploy the flow directly from Mapping Services to a runtime server using
UI commands
This is the standard direct deployment method available to Mapping Services users with access 
rights to B2Bi servers.
See Deploy using Mapping Services UI commands on page 44.
 l Export a flow to a container, and then deploy the container using a command line
This is a deployment method that separates the roles of the Mapping Services flow creator and 
the B2Bi Server flow administrator.
See Command line interface for the deployment server on page 79. 

Deploy using Mapping Services UI commands

Prerequisites
 l Create or update a flow in Mapping Services.
 l Create a connection to a B2Bi runtime server.

For complete details on how the manage maps, flows and server connections, see the Mapping 
Services documentation.

44  Operations Guide B2Bi  2.1


Import and update component resources

Deployment procedure
 1.  In the Mapping Services user interface Project tab, select a project, and in the directory 
structure of the project, right-click the map or the flow that you want to deploy.
 2.  From the context menu, select Deploy... to open the Deploy page.
 3.  In the Deploy page:
 l Make sure that the correct flow is selected for deployment.
 l Select the target Runtime system and from the drop-down menu select the B2Bi 
server to which you want to deploy.
If no server has yet been defined, select New connection from the drop-down list, and 
configure a server connection in the configuration page.
 l Optionally select to update any existing  flow with the same name that is already 
deployed to the selected runtime server.
 4.  Click Finish to launch the deployment.
Mapping Services deploys all of the necessary elements to compile and run the map flow on the 
server.
A "Deployment Result" message confirms successful deployment.

After you deploy


 l The resource appears in the Mapping Services user interface on the Runtime Repository
Server tab, listed under the server name.
 l The resource is available in the B2Bi user interface for use in message-processing definitions. 

Message Builder Components (MBC)


To add new MBC component resources to your B2Bi configuration, place the new resources in the 
directory:

<B2Bi_shared_directory>\local\4edi\component.

Where: <B2Bi_shared_directory> is the B2Bi shared directory specified during installation.

Business Object Modeler maps


If you are licensed to use the Axway Business Object Modeler (BOM), you can use BOM to create and 
edit two types of maps:

 l JTransform – The JTF mapping configuration file in the formdb folder is *.tcf. 
 l TFXSLT – The TFXSLT mapping configuration file is *.xcf.

The tcf and xcf files are editable and serve as environment files.

B2Bi  2.1 Operations Guide  45


9  Resources for B2Bi components

Deploy JTransform maps


To deploy JTransform and TFXSLT maps in a B2Bi environment:

 1.  Manually copy the JTF/TFXSLT project structure to:
 l Windows: <B2Bi_shared_
directory>\local\bom\lib\convert\project\<project_name>

 l UNIX: <B2Bi_shared_
directory>/local/bom/lib/convert/project/<project_name>

Where <B2Bi_shared_directory> is the B2Bi shared directory specified during 
installation.
 2.  From the map project structure, copy from the mapping configuration file (<mapname>.tcf or 
<mapname>.xcf)  to:
 l Windows: <B2Bi_shared_directory>\local\bom\lib\convert
 l UNIX: <B2Bi_shared_directory>/local/bom/lib/convert
Where <B2Bi_shared_directory> is the B2Bi shared directory specified during 
installation.
 3.  Change the extension of this configuration file from .tcf to .cfg.

Deploy XSLT maps


To deploy XSLT maps in a B2Bi environment, manually copy the XSLT project structure to:

 l Windows: <B2BI_shared_directory>\local\bom\<project_name>
 l UNIX: <B2Bi_shared_directory>/local/bom/<project_name>

Where: <B2BI_shared_directory> is the B2Bi shared directory specified during installation. 

Deploy example resources delivered with


B2Bi
During B2Bi installation, the B2Bi Installer deposits a set of B2Bi-dedicated example files in the 
directory:

<integration_engine_install_directory>/solutions/example

The installer also deposits generic integration engine example files in the directory:

<integration_engine_install_directory>/example

You can use examples from either of these two locations in a B2Bi environment. 

The files in these directory include:

46  Operations Guide B2Bi  2.1


Import and update component resources

 l .java files – Java Message Component resources   
 l .x4 files – compiled Message Builder Component resources   
 l .s4 files – uncompiled Message Builder Component resources   

Deploy example .java and .x4 files


To use .java and .x4 files in Axway B2Bi, copy the files to <B2Bi_shared_
directory>\local\4edi\component, where <B2BI_shared_directory> is the B2Bi shared 
directory specified during installation.

You can then link the resources to component and to service objects in the B2Bi user interface. 

Deploy example .s4 files in B2Bi


Before you can use an .s4  file in B2Bi, you must compile the file.

 1.  Open a command console on the machine where the integration engine is installed.
 2.  Change directory to <integration_engine_install_directory>\
 3.  Run the command profile.bat.
 4.  Change to directory to <integration_engine_install_
directory>\local\4edi\component.
 5.  Enter the compiler command c4edi <component_file_name>.s4

The program compiles the MBC and changes the name to <component_file_name>.x4 to 
indicate that it is an executable.
 6.  Copy the compiled MBC .x4 file to:
<B2Bi_shared_directory>\local\4edi\component

Where: <B2BI_shared_directory> is the B2Bi shared directory specified during installation.
You can then link the MBC to a component and to service objects in the B2Bi user interface.

After you have deployed resources to a B2Bi server, you can use them in message processing 
sequences.

B2Bi  2.1 Operations Guide  47


9  Resources for B2Bi components

B2Bi in-house detector component resources

About the in-house detectors in B2Bi


The B2Bi in-house detector component resources are used in message-processing sequences to 
identify in-house format files coming through your B2Bi system. 

Currently B2Bi provides three versions of the inhouse file detector V1 and V2 are provided for 
backwards compatibility with earlier implementations of B2Bi. For new flow processing 
configurations, use inhouse detector V3.

To identify transiting in-house files, the in-house detector:

 1.  Reads the transiting message.
 2.  Retrieves information from the message parameters.
 3.  Checks a reference table for matches with what were found in the message.

When you install B2Bi, the B2Bi in-house three detector components are registered by default in 
your system:

 l B2Bx Application/ B2Bi In-house File Detection V3 – For detection of in-house files that 


contain a predefined field separator, or detection based on the position of  various fields in the 
file. This latest version of the detector is the preferred version to use in the creation of new 
message flows.
See In-house detector V3 implementation on page 49.
 l B2Bx Application/ B2Bi In-house File Detection V2 – For detection of In-house files 
containing a predefined field separator. This detector additionally enables you to specify a fixed 
position where certain identification values can be found. 
Note: This detector is currently delivered to allow backward compatibility with configurations 
that were created in earlier versions of B2Bi. Use the In-house File Detector V3 for newly created 
message handling flows.
See In-house detector V2 implementation on page 56.
 l B2Bx Application/ B2Bi In-house File Detection V1 – For detection of In-house files 
containing a predefined field separator. 
Note: This detector is currently delivered to allow backward compatibility with configurations 
that were created in earlier versions of B2Bi. Use the In-house File Detector V3 for newly created 
message handling flows.
See In-house detector V1 implementation on page 59.

48  Operations Guide B2Bi  2.1


B2Bi in-house detector component resources

Common configuration
For all versions of this component, you must define the input and the output document formats. 
These must be set to  “In-house” :

In-house detector V3 implementation


 1.  In the B2Bi user interface, select Processing configuration > Manage components.
The interface displays the Manage components page.
 2.  Click Add a component to open the Add a component wizard.
 3.  Complete the fields:
 l Name — Enter a name for the component .

 l Type — From the drop-down list, select Detector.
 l Resource filter – You can optionally enter a text string to filter the list of resources 
that are displayed in the Resource field drop-down list. You can use wildcards ( *, ? ).
 l Resource – From the list of available resources, select B2BX Application/B2Bi
Inhouse File Detection V3.
 4.  Select the Input tab and select the In-house input format.
 5.  Select the Output tab and select the In-house output format. 
 6.  Select the Configuration tab and complete the fields:

Parameter Description

Start line Line index to begin parsing. Default =1.

Number of  Enter the number of characters to be read in the document for detection.
characters 
to read in 
file

B2Bi  2.1 Operations Guide  49


9  Resources for B2Bi components

Parameter Description

Field  If you specify a field separator for this parameter, B2Bi looks for the 


separator  partner and message identifiers using an index based on the separator. 
value For example, if the message content is AA:BB:CC (separator = “:”), first field  
(AA) is indexed as 1, the second field (BB) is indexed as 2, and the third field 
(CC) is indexed as 3.
You can enter a simple printable character (example: “;”), or a simple string 
(example: “_;_”). 
Alternatively, you can enter a more complex definition by using a regular 
expression (example: pattern matching or using a Unicode character(s) 
“\u010A”).
If you are using a regular expression and you are using a separator character 
that has special meaning in a regular expression, you must precede the 
character with the escape character. For example, if you have a file where the 
separator is a the “*” character, you must set the separator value to “\*”.

If you do not specify a field separator for this parameter, B2Bi looks for the 
partner and message identifiers based on fixed position specifications which 
you enter in fields below, you must either:
 l Specify the beginning and end position for each field. Example: 
10-16 indicates the 10th through 16th characters of the 
message counted from the first character of the start line.

 l Specify a fixed value by placing the value between asterisks.

Document  The document version to be used as an in-house message detection value. 
version
 l If a field separator value is used in the message, enter the index 
value for the position of this identifier.
 l If no field separator is defined enter either:
 o the begin-end character range
 o a fixed value in quotation marks

Document  The document type value to be used as an in-house message detection value. 
Type
 l If a field separator value is used in the message, enter the index 
value for the position of this identifier.
 l If no field separator is defined enter either:
 o the begin-end character range
 o a fixed value in quotation marks

50  Operations Guide B2Bi  2.1


B2Bi in-house detector component resources

Parameter Description

Document  The document reference value to be used as an in-house message detection 
reference value. 
 l If a field separator value is used in the message, enter the index 
value for the position of this identifier.
 l If no field separator is defined enter either:
 o the begin-end character range
 o a fixed value in quotation marks

Sender   The sender ID value to be used as an in-house message detection value. 
name
 l If a field separator value is used in the message, enter the index 
value for the position of this identifier.
 l If no field separator is defined enter either:
 o the begin-end character range
 o a fixed value in quotation marks

Sender  The  messaging profile ID value to be used as an in-house message detection 
messaging  value. 
profile ID  l If a field separator value is used in the message, enter the index 
value for the position of this identifier.

 l If no field separator is defined enter either:
 o the begin-end character range
 o a fixed value in quotation marks

Recipient  The receiver name value to be used as an in-house message detection value. 
name
 l If a field separator value is used in the message, enter the index 
value for the position of this identifier.
 l If no field separator is defined enter either:
 o the begin-end character range
 o a fixed value in quotation marks

Recipient  The receiver messaging profile ID value to be used as an in-house message 
messaging  detection value. 
profile ID
 l If a field separator value is used in the message, enter the index 
value for the position of this identifier.
 l If no field separator is defined enter either:
 o the begin-end character range
 o a fixed value in quotation marks

B2Bi  2.1 Operations Guide  51


9  Resources for B2Bi components

Parameter Description

Test flag The document reference value to be used as an in-house message detection 
value. 
 l If a field separator value is used in the message, enter the index 
value for the position of this identifier.
 l If no field separator is defined enter either:
 o the begin-end character range
 o a fixed value in quotation marks

Code 1 Optionally, enter a code to trigger the selection of this component. 
 l If the message uses field separator characters, enter the code in 
the format: [field index]:[value]
 l If the message does not have separators, enter the code in the 
format start index- end index]:[value]
Example (no separators):
For a parsing with no field separators, you enter the code 2-
11:MyPartner
During message parsing, if the value in the character range 2-8 in 
the message equals MyPartner (and if any other additional codes 
return correct values), then the in-house detector collects parameter 
values, and allows B2Bi to proceed with message processing.

Code 2 Same as Code 1 above.

Code 3 Same as Code 1 above.

Code 4 Same as Code 1 above.

Code 5 Same as Code 1 above.

Debug Same as Code 1 above.

 7.  Click Add.

Example in-house V3 detector: message with


field separators
Use case: We want to handle messages with the following message structure: 

1*ORDERS*SENDER123*RECIPIENT4*1

The values in the message are separated by the "*" character and represent for this example: 

52  Operations Guide B2Bi  2.1


B2Bi in-house detector component resources

Document version * Document Type * Sender ID * Recipient ID * Test Flag

To detect messages with this structure using field index values, we configure the following in-house 
V3 detector:

Alternatively, we can detect the same message using fixed values. To do this we replace the index 
field values with fixed values placed in parentheses:

B2Bi  2.1 Operations Guide  53


9  Resources for B2Bi components

Example in-house V3 detector: message


without field separators
Use case: We want to detect messages with the following message structure: 

1XXXORDERSSENDER123 RECIPIENT4BLAB1
12345678901234567890123456789012345678901234567890

The values in the message are : 

Character position Field

1-10 Document version 

5-10 Document Type 

11-20 Sender ID 

54  Operations Guide B2Bi  2.1


B2Bi in-house detector component resources

Character position Field

21-30 Recipient ID 

35-35 Test Flag  

To detect messages with this structure using position indicators, we configure the following in-
house V3 detector:

Alternatively, we can replace one or more position indicators with fixed values placed in 
parentheses, as in the following example:

B2Bi  2.1 Operations Guide  55


9  Resources for B2Bi components

In-house detector V2 implementation


Note This detector is currently delivered to allow backward compatibility with configurations 
that were created in earlier versions of B2Bi. Use the In-house File Detector V3 for newly 
created message handling flows.

Use the B2Bi in-house detector V2 component when you are creating a service where the syntax 
expression is based on a separator and a column index.

 1.  In the B2Bi user interface, select Processing configuration > Manage components.


The interface displays the Manage components page.
 2.  Click Add a component to open the Add a component wizard.
 3.  Complete the fields:
 l Name — Enter a name for the component .
 l Type — From the drop-down list, select Detector.
 l Resource filter – You can optionally enter a text string to filter the list of resources 
that are displayed in the Resource field drop-down list. You can use wildcards ( *, ? ).
 l Resource – From the list of available resources, select B2BX Application/B2Bi
Inhouse File Detection V2.
 4.  Select the Input tab and select the In-house input format.
 5.  Select the Output tab and select the In-house output format. 
 6.  Select the Configuration tab and complete the fields:

56  Operations Guide B2Bi  2.1


B2Bi in-house detector component resources

Parameter Description

Start line Line number to begin parsing. Default=1.

Sender  Id The sender ID value to be used as an in-house message detection 
[Required field] value. 
The value can either be:
 l A fixed value (example: BMW_Manufacturer)
 l A dynamic value: In this case, enter character range in 
which the value is located in the message

Receiver Id The receiver ID value to be used as an in-house message detection 
[Required field] value. 
The value can either be:
 l A fixed value 
 l A dynamic value: In this case, In this case, enter 
character range in which the value is located in the 
message

Document  The document standard value to be used as an in-house message 
Standard   detection value. 
[Required field] The value can either be:
 l A fixed value 

 l A dynamic value: In this case, enter character range in 
which the value is located in the message

Document Type The document type value to be used as an in-house message 
[Required field] detection value. 
The value can either be:
 l A fixed value 
 l A dynamic value: In this case, enter character range in 
which the value is located in the message   

Test Flag The document reference value to be used as an in-house message 
detection value. 
The value can either be:
 l A fixed value 
 l A dynamic value: In this case you must indicate the 
column in which the value can be found  in the message

B2Bi  2.1 Operations Guide  57


9  Resources for B2Bi components

Parameter Description

Document  The document reference value to be used as an in-house message 
reference detection value. 
The value can either be:
 l A fixed value 
 l A dynamic value: In this case, enter character range in 
which the value is located in the message   

Number of  Enter the number of characters to be read in the document.
Characters to read 
in file
[Required field]

Code 1 Optionally, enter a code to trigger the selection of this component. 
Use the syntax [character range]:[value]
Example:
You enter the code 2-8:MyPart
During message parsing, if the value in the character range 
2-8 in the message equals MyPart (and any other additional 
codes return correct values), then the in-house detector uses 
the syntax defined in this component configuration to 
collect parameter values, and permits B2Bi to proceed with 
message processing.

Code 2 Optionally, enter a code to act as a for trigger the selection of this 
component. Use the syntax [column index]:[column value]

Code 3 Optionally, enter a code to act as a for trigger the selection of this 
component. Use the syntax [column index]:[column value]

Code 4 Optionally, enter a code to act as a for trigger the selection of this 
component. Use the syntax [column index]:[column value]

Code 5 Optionally, enter a code to act as a for trigger the selection of this 
component. Use the syntax [column index]:[column value]

Debug Indicate whether or not to activate debug and log information on the 
Trace Viewer.
 l y (activate)
 l n (don't activate)

 7.  Click Add.

58  Operations Guide B2Bi  2.1


B2Bi in-house detector component resources

Example in-house V2 detector

In this example, B2Bi extracts the first 250 characters of the input file. Then it checks if the value of 
“code 1”, “Renault”, matches with the first column value and the value of “code 2”, “PSA”, matches 
with the second column value. If they match, then B2Bi retrieves attribute values using the 
definitions: “Sender Id” is located between the 2nd and 8th characters, “Receiver Id” is located 
between the 10th and 16th characters, “Document standard” is located between the 20th and 25th 
characters, “Document type” is located between the 26th and 32nd characters, and the “Test flag” 
value is located between the 40th and 41st characters.

In-house detector V1 implementation


Note: This detector is currently delivered to allow backward compatibility with configurations that 
were created in earlier versions of B2Bi. Use the In-house File Detector V3 for newly created message 
handling flows.

Use the  B2Bi in-house detector V1 component when you are creating a service where the syntax 
expression is based on field positions.

B2Bi  2.1 Operations Guide  59


9  Resources for B2Bi components

 1.  In the B2Bi user interface, select Processing configuration > Manage components.


The interface displays the Manage components page.
 2.  Click Add a component to open the Add a component wizard.
 3.  Complete the fields:
 l Name — Enter a name for the component .
 l Type — From the drop-down list, select Detector.
 l Resource filter – In this field you can optionally enter a text string to filter the list of 
resources that are displayed in the Resource field drop-down list. You can use wildcards 
( *, ? ).
 l Resource – From the list of available resources, select B2BX Application/B2Bi
Inhouse File Detection V1.
 4.  Select the Input tab and select the In-house input format.
 5.  Select the Output tab and select the In-house output format. 
 6.  Select the Configuration tab and complete the fields:

Parameter Description

Sender  Id The sender ID value to be used as an in-house message detection value. 
[Required  The value can either be:
field]
 l A fixed value (example: BMW_Manufacturer)

 l A dynamic value: In this case, enter the column number in which 
the value is located in the message (the field separator character 
is defined below)

Receiver Id The receiver ID value to be used as an in-house message detection value. 
[Required  The value can either be:
field]
 l A fixed value 
 l A dynamic value: In this case you must indicate the column in 
which the value can be found  in the message (the field separator 
character is defined below)

Document  The document standard value to be used as an in-house message detection 
Standard  value. 
[Required  The value can either be:
field]
 l A fixed value 
 l A dynamic value: In this case you must indicate the column in 
which the value can be found  in the message (the field separator 
character is defined below)

60  Operations Guide B2Bi  2.1


B2Bi in-house detector component resources

Parameter Description

Document  The document type value to be used as an in-house message detection value. 
Type The value can either be:
[Required 
 l A fixed value 
field]
 l A dynamic value: In this case you must indicate the column in 
which the value can be found  in the message (the field separator 
character is defined below)

Test Flag The test status of the message to be used as an in-house message detection 
value. 
The value can either be:
 l A boolean value: y/n
 l A dynamic value: In this case you must indicate the column in 
which the value can be found  in the message (the field separator 
character is defined below)

Document  The document reference value to be used as an in-house message detection 
Reference value. 
The value can either be:
 l A fixed value 
 l A dynamic value: In this case you must indicate the column in 
which the value can be found  in the message (the field separator 
character is defined below)

Field  Enter the character used as the field separator in the message.
separator  You can enter a simple printable character (example: “;”), or a simple string 
value (example: “_;_”). 
Alternatively, you can enter a more complex definition by using a regular 
expression (example: pattern matching or using a Unicode character(s) 
“\u010A”).
If you are using a regular expression and you are using a separator character 
that has special meaning in a regular expression, you must precede the 
character with the escape character. For example, if you have a file where the 
separator is a the “*” character, you must set the separator value to “\*”.

Number of  Enter the number of characters to be read in the document.
characters 
to read in 
file
[Required 
field]

B2Bi  2.1 Operations Guide  61


9  Resources for B2Bi components

Parameter Description

Code 1 Optionally, enter a code to act as a for trigger the selection of this 
component. Use the syntax [column index]:[column value]
Example:
You enter the code 1:MyPartner
During message parsing, if the value of column 1 in the message 
equals MyPartner (and any other additional codes return correct 
values), then the in-house detector uses the syntax defined in this 
component configuration to collect parameter values, and permits 
B2Bi to proceed with message processing.

Code 2 Optionally, enter a code to act as a for trigger the selection of this 
component. 
Use the syntax [column index]:[column value]

Code 3 Optionally, enter a code to act as a for trigger the selection of this 
component. 
Use the syntax [column index]:[column value]

Code 4 Optionally, enter a code to act as a for trigger the selection of this 
component. 
Use the syntax [column index]:[column value]

Code 5 Optionally, enter a code to act as a for trigger the selection of this 
component. 
Use the syntax [column index]:[column value]

Debug Indicate whether or not to activate debug and log information on the Trace 
Viewer.
 l y (activate)
 l n (don't activate)

 7.  Click Add.

62  Operations Guide B2Bi  2.1


B2Bi XPath detector resource

Example in-house V1 detector

In this example, B2Bi analyzes only the first 300 characters of the input file and splits this segment 
to column units, using the separator “*”. It then checks if the value of “code 1”, “BMW”, matches 
the first column value and the value of “code 2”, “PO”, matches the second column value. If they 
match, then B2Bi retrieves the  B2Bi attributes using the definitions in the component parameters: 
“Sender Id” is a fixed value (BMW_Manufacturer), “Receiver Id” is located in column 6, “Document 
standard” is located in column 8, “Document type” is located column 7, and the “Test flag” value is 
located  in column 10.

B2Bi XPath detector resource

B2Bi  2.1 Operations Guide  63


9  Resources for B2Bi components

The XPath detector component enables you to dynamically identify categories of XML-based 
documents that transit on B2Bi servers.

Implementation procedure
 1.  Open the B2Bi user interface.
 2.  Click the toolbar Trading Configuration menu and select  Manage trading configuration.
 3.  Select the community that represents your local trading identity.
 4.  Click  Message processing in the community navigation graphic at the top of the page.
 5.  Select Add a processing step.
 6.  Name – Enter a name for the processing step. For example: B2Bi XPath detector.
 7.   Type – From the drop-down list, select Detector.
 8.  Component– From the drop-down list, select B2Bi Application/XPathDetector.
When you select this component, the user interface displays a set of configuration fields.
Use the following table to complete the fields.

Parameter Description

XPath   Indicate where in the XML message to find the information related to the 
sender  sender identifier. This identifier will be later used for the partner management 
identifier call.
For example: /ORDERS/UNH/cmp02/e01_0004

XPath  Indicate where in the XML message to find the information related to the 
recipient  recipient identifier.
identifier For example: /ORDERS/UNH/cmp03/e01_0010

XPath  Enter the document format to be used by the messages you are detecting. 
document  For example: "XML_D99B"
standard

XPath  Enter where in the XML message to retrieve the document type information, 
document  using XPath access.
type For example: /ORDERS/UNH/cmp01/e01_0065

XPath test  Enter where in the XML message to retrieve the information related to the test 
flag flag, using XPath access.

XPath  Enter where in the XML message to retrieve the information related to the 
document  document reference, using XPath access.
reference

64  Operations Guide B2Bi  2.1


B2Bi zip resource

B2Bi zip resource


The B2Bi zip resource performs a zip operation on files that transit in B2Bi.

Implementation overview
The zip processing is called via an exit in the processing flow. Exit processing is provided by a B2Bi 
resource. Once the resource is installed on the integration engine, you can implement the exit in a 
message flow by:

 1.  Adding the resource to a component.
 2.  Adding the component to one or more services.
 3.  Adding the service to one or more agreements.

Implementation procedure
 1.  In the B2Bi user interface, from the Processing configuration menu, select Manage
components to open the Manage components page.
 2.  From the related tasks list, click  Add a component to open the Add a component wizard.

 3.  In the Type field, from the drop-down list, select one of the following component types:
 l Post enveloping
 l Post transfer failed
 l Post transfer success
 4.  In the Resources field, from the drop-down list, select B2BX Application/B2Bi Zip.
When you select this resource, the user interface displays a set of tabs.
 5.  In the Name field, accept the default name or enter a preferred name for the component.
 6.  In the Input tab, select the input format you expect from the partner, or select Unspecified if 
you want to receive multiple formats.
 7.  In the Output tab, select the output format you expect to send to the partner, or select 
Unspecified if you want to send multiple formats.

B2Bi  2.1 Operations Guide  65


9  Resources for B2Bi components

 8.  In the Configuration tab, complete the fields: 

Parameter Description

Archive type to be  Type of archive that will be created by the component. The 
created possible values are: 
 l Zip
 l Tar
 l GZip

Archive compression  Compression ratio for the compressed archive. 
parameter Warning: Compression has an impact on global 
performance. Select according to your system preferences.
 l BEST_COMPRESSION
 l BEST_SPEED
 l DEFAULT_COMPRESSION
 l NO_COMPRESSION

Name of the document  Name of the document that is contained in the compressed 
inside the archive package.

Activate debug Whether or not to activate debug and log information on the 
Trace Viewer.
 l y (activate)
 l n (don't activate)

 9.  Click Add.

66  Operations Guide B2Bi  2.1


B2Bi DPS caller resource

B2Bi DPS caller resource


The DPS caller resource provides the ability to execute AMTrix programs within B2Bi with a minimum 
amount of changes. For more information, refer to the B2Bi AMTrix Migration Guide.

Implementation overview
The DPS caller resource takes the file from the B2Bi environment and writes it to the disk as a 
temporary file. It then calls the old AMTrix map (to do the conversion) and writes the output files. 
These output files are read by the Caller MBC and sent to the integration engine. If the Caller MBC is 
called by the integration engine, it first prepares the environment for the conversion program (the 
old map program). It creates a record (migration interface record) that contains the environment 
information, such as the current log ID, the receive attributes, and the temporary written input file 
name. This record serves as a communication memory area provided to the old map. The Caller MBC 
reads the input file from the B2Bi environment and writes it to a temporary file.

After this, the Caller MBC loads the old map (x4) so that the map runs in the same environment as 
the Caller MBC. The Caller MBC calls the routine of the old map called DPS_MAIN. DPS_MAIN 
retrieves the interface record as a parameter, acquiring full access to the record. Next, the statement 
calls the conversion part of the old map. The map converts the input file and writes the output files.

Implementation procedure
 1.  In the B2Bi user interface, from the Processing configuration menu, select Manage
components.
 2.  From the related tasks list, click  Add a component to open the Add a component wizard.
 3.  In the Type field, select the appropriate type.
 4.  If desired, enter a text string in the Resource filter field to filter the list of resources that are 
displayed in the Resource field drop-down list. You can use wildcards ( *, ? ).
 5.  In the Resource field, from the drop-down list, select B2BX Application/B2Bi DPS Caller.
When you select this resource, the user interface displays a set of tabs.
 6.  In the Name field, accept the default name or enter a preferred name for the component.
 7.  On the Input tab, select the input format you expect from the partner, or select Unspecified 
if you want to receive multiple formats.
 8.  On the Output tab, select the output format you expect to send to the partner, or select 
Unspecified if you want to send multiple formats.
 9.  On the Configuration tab, complete the fields: 

B2Bi  2.1 Operations Guide  67


9  Resources for B2Bi components

Parameter Description

DPS  Name Enter the name of the DPS only. For example, if your DPS has the file name 
“filter.x4”, enter “filter”.

Arguments Specify the list of arguments to be used. In AMTrix it is possible to give 
arguments to a DPS program if you insert it into the AMTrix Process Manager. 
To call old programs that are designed as DPS and expect arguments, enter 
them here. Note that the system environment variables are not available here.

AMTrix  If a program needs valid values for the sender, sender sub address, or the 
Sender:Sub:Name sender name, enter them here, separated by colons.

AMTrix  If a program needs valid values for the recipient, recipient sub address, or the 
Recipient:Sub:Name recipient name, enter them here, separated by colons.

AMTrix Document Type Specify the document type. Its value is set to the document type selected for 
the document agreement.

Debug (y/[n]) If set to yes [y], the migrated map will write debug information to the Trace 
Log.

File  Represents the first 4 identification fields used in AMTrix agreements; values 
Syntax:Type:Version:Tag must be separated by colons.

Id1 Sender:Recipient Represents fields 5 and 6 (the Sender / Recipient Id1 field used in AMTrix 
agreements); values must be separated by colons.

Id2 Sender:Recipient Represents fields 7 and 8 (the Sender / Recipient Id2 field used in AMTrix 
agreements); values must be separated by colons.

Id3 Sender:Recipient Represents fields 9 and 10 (the Sender / Recipient Id3 field used in AMTrix 
agreements); values must be separated by colons.

Status Sender:Recipient Represents fields 11 and 12 (the Status field for the Sender / Recipient used in 
AMTrix agreements); values must be separated by colons.

Label 13:14 Represents fields 13 and 14 used in AMTrix agreements; values must be 
separated by colons.

Label 15:16 Fields 15 and 16 used in AMTrix agreements; values must be separated by 
colons.

Label 17:18 Fields 17 and 18 used in AMTrix agreements; values must be separated by 
colons.

68  Operations Guide B2Bi  2.1


B2Bi loadable caller resource

Parameter Description

Label 19:20 Fields 19 and 20 used in AMTrix agreements; values must be separated by 
colons.

Allow no outputs (y/[n]) If this option is set to yes(y), no error results if the component does not 
produce output.

Custom Optional Data  In general, if your DPS tries to parse the optional data, it will fail. However, 
(y/[n]) there is one case where DPS parsing of optional data will work. This is the 
case if the DPS manipulates ONLY optional data that is not defined by AMTrix, 
but is custom defined and set by a previous DPS. To enable this scenario, set 
this parameter to yes (y).

Control Specify “STANDARD” or “CUSTOM” to override the behavior of SEND_FILE. 
Use STANDARD for Datamapper components. Use CUSTOM for non-
Datamapper components. 

Produces EDI Document  If this option is set to yes (y), the output is considered to be EDI.
(y/[n])

 10.  Click Add.

B2Bi loadable caller resource


The loadable caller resource provides the ability to execute AMTrix programs within B2Bi with a 
minimum amount of changes. Refer to the B2Bi AMTrix Migration Guide for more information.

Implementation procedure
 1.  In the B2Bi user interface, from the Processing configuration menu, select Manage
components.
 2.  From the related tasks list, click  Add a component to open the Add a component wizard.
 3.  In the Type field, select the appropriate type.
 4.  If desired, enter a text string in the Resource filter field to filter the list of resources that are 
displayed in the Resource field drop-down list. You can use wildcards ( *, ? ).
 5.  In the Resource field, from the drop-down list, select B2BX Application/B2Bi Loadable
Caller.
When you select this resource, the user interface displays a set of tabs.
 6.  In the Name field, accept the default name or enter a preferred name for the component.
 7.  On the Input tab, select the input format you expect from the partner, or select Unspecified 
if you want to receive multiple formats.

B2Bi  2.1 Operations Guide  69


9  Resources for B2Bi components

 8.  On the Output tab, select the output format you expect to send to the partner, or select 
Unspecified if you want to send multiple formats.
 9.  On the Configuration tab, complete the fields:

Parameter Description

AMTrix Loadable Name Enter the name of the loadable program only. For example, if 
your loadable program has the file name “filter.x4”, enter 
“filter”.

Arguments Specify the list of arguments to be used. In AMTrix it is possible 
to give arguments to a loadable program if you insert it into the 
AMTrix Process Manager. To call old programs that are designed 
as loadable and expect arguments, enter them here. Note that 
the system environment variables are not available here.

AMTrix  If a program needs valid values for the sender, sender sub 
Sender:Sub:Name address, or the sender name, enter them here, separated by 
colons.

AMTrix  If a program needs valid values for the recipient, recipient sub 
Recipient:Sub:Name address, or the recipient name, enter them here, separated by 
colons.

AMTrix Document Type Specify the document type. Its value is set to the document type 
selected for the document agreement.

Debug (y/[n]) If set to yes [y], the migrated program writes debug information 
to the Trace Log.

File  Represents the first 4 identification fields used in AMTrix 
Syntax:Type:Version:Tag agreements; values must be separated by colons.

Id1 Sender:Recipient Represents fields 5 and 6 (the Sender / Recipient Id1 field used 
in AMTrix agreements); values must be separated by colons.

Id2 Sender:Recipient Represents fields 7 and 8 (the Sender / Recipient Id2 field used 
in AMTrix agreements); values must be separated by colons.

Id3 Sender:Recipient Represents fields 9 and 10 (the Sender / Recipient Id3 field used 
in AMTrix agreements); values must be separated by colons.

Status Sender:Recipient Represents fields 11 and 12 (the Status field for the Sender / 
Recipient used in AMTrix agreements); values must be separated 
by colons.

70  Operations Guide B2Bi  2.1


B2Bi set inbound EDI separators resource

Parameter Description

Label 13:14 Represents fields 13 and 14 used in AMTrix agreements; values 
must be separated by colons.

Label 15:16 Represents fields 15 and 16 used in AMTrix agreements; values 
must be separated by colons.

Label 17:18 Represents fields 17 and 18 used in AMTrix agreements; values 
must be separated by colons.

Label 19:20 Represents fields 19 and 20 used in AMTrix agreements; values 
must be separated by colons.

Allow no outputs (y/[n]) If this option is set to yes(y), no error results if the component 
does not produce output.

Custom Optional Data  In general, if your loadable program tries to parse the optional 
(y/[n]) data, it will fail. However, there is one case where the loadable 
program parsing of optional data will work. This is the case if 
the loadable program manipulates ONLY optional data that is 
not defined by AMTrix, but is custom defined and set by a 
previous program. To enable this scenario, set this parameter to 
"y”.

Control Specify “STANDARD” or “CUSTOM” to override the behavior of 
SEND_FILE. Use STANDARD for Datamapper components. Use 
CUSTOM for non-Datamapper components. 

Produces EDI Document  If this option is set to yes (y), the output is considered to be 
(y/[n]) EDI.

 10.  Click Add.

B2Bi set inbound EDI separators resource


The Set Inbound EDI separators component is needed whenever EDI documents are handled in 
a "non-EDI" mode. This mode was referred to as "map entire interchange" in previous versions of 
B2Bi, and was set at a Community Messaging Profile, Routing ID level (or through attributes). The 
component had to be used as a step before the actual map to inform the map of which separators to 
apply (at segment, element, and composite levels). In normal EDI scenarios this component is not 
required because the EDI inbound logic will take care of this. 

B2Bi  2.1 Operations Guide  71


9  Resources for B2Bi components

Implementation procedure
 1.  In the B2Bi user interface, from the Processing configuration menu, select Manage
components to open the Manage components page.
 2.  From the related tasks list, click  Add a component to open the Add a component wizard.
 3.  In the Type field, select Map.
 4.  If desired, enter a text string in the Resource filter field to filter the list of resources that are 
displayed in the Resource field drop-down list. You can use wildcards ( *, ? ).
 5.  In the Resource field, from the drop-down list, select B2BX Application/B2Bi Set
Inbound EDI Separators.
When you select this resource, the user interface displays a set of tabs.
 6.  In the Name field, accept the default name or enter a preferred name for the component.
 7.  On the Input tab, select the input format you expect from the partner, or select Unspecified 
if you want to receive multiple formats.
 8.  On the Output tab, select the output format you expect to send to the partner, or select 
Unspecified if you want to send multiple formats.
 9.  On the Configuration tab, complete the fields: 

Parameter Description

Segment separator character (or  The segment separator value matching the incoming 
hex value with \H prefix) EDI document. 

Element separator character (or  The element separator value matching the incoming 
hex value with \H prefix) EDI document. 

Composite separator character (or  The composite separator value matching the incoming 
hex value with \H prefix) EDI document. 

Release character (or hex value  The release character value matching the incoming 
with \H prefix) EDI document. 

Debug (y/[n]) If set to "y", the component will produce additional 
debug information in the Trace Viewer.

 10.  Click Add.

72  Operations Guide B2Bi  2.1


Map and container deployment

Map and container deployment


This section lists special characteristics and limitations related to the deployment of DML Maps and 
Containers from Mapping Services to a B2Bi Server.

Map updates
Working in Mapping Services, you can edit and deploy new versions of existing Maps to a B2Bi 
Server for use in message handling. See the Mapping Services DML User Guide for details about Map 
editing and deployment.

On the server side, use the Manage deployment server page of the B2Bi user interface to control 


how maps are cached and synchronized on the trading engines in your B2Bi Server environment. 
See Manage the resource deployment server  on page 77.

After you edit a map in Mapping Services and redeploy it (in a container) to a B2Bi Server, the Server 
detects the updated version and replaces the older version. 

Manual component configuration after


update
If you changed any of the following parameters when you updated the existing Map, you may have 
to perform an additional action on the component in the B2Bi user interface:

 l Name of an output
 l Number of outputs
 l Settings of an exiting output

When you redeploy a container from Mapping Services, the B2Bi Server analyzes the Map 
modification. If B2Bi detects a difference between certain parameters of the updated Map and the 
data that is contained in the database for that Map, it generates a warning message on the 
component page. 

To handle these types of warnings, use the following procedure 

 1.  From the main menu select Processing configuration > Manage components to open the 


Manage components page.
Your component resources are displayed in the components list.
 2.  Click the name of a map component to open the Modify component page for the selected 
component.
If B2Bi detected a change in parameters, a warning is displayed for the component, similar to 
the following model:

B2Bi  2.1 Operations Guide  73


9  Resources for B2Bi components

<component name> has been updated. The following components will be updated after 
clicking save:
Services
  <linked service name>
  <linked service name>
Document agreements
  <document agreement name>
  <document agreement name>
Check the logs for a description of the update.

 3.  Click Save changes to validate the modifications that are listed in the warning text and save 


the modifications to the B2Bi database.
 4.  Repeat the steps for each migrated DML map component.

Custom-Functions
When you develop Custom-Functions in Mapping Services, use them in a Flow and then deploy the 
Flow to a B2Bi Server, the Custom Functions are not automatically  d eployed to the server upon 
deployment of the Flow. You must manually deploy the JAR files containing the code of these 
Custom-Functions. This is true for Custom-Functions used in any part of the Flow: Business-
Document, Validation Rules, Maps, or any other object. For details about Custom Function manual 
deployment, see the B2Bi Installation Guide.

Multiple-session support
Multiple users of Mapping Services can simultaneously connect to the B2Bi Server Map repository to 
query the deployed Maps (read access), but multiple users cannot simultaneously 
deploy/update/delete Maps (write access). Only one write-access session is allowed at a time.

Examples:

User 1 User 2 Result


action action

Lists deployed  Deploys new  Allowed


maps map

Deploys,  Deploys new  Access for one user is rejected until the first session is 


updates, or  map completed.
deletes a map In case of conflicts, the user (who started a deployment 
action while a deployment action from another user is still in 
progress) receives a warning indicating that the server is 
busy, and that a redeployment action is required.

74  Operations Guide B2Bi  2.1


Map and container deployment

Container dependencies
In Mapping Services, Maps and Flows are packaged in “containers” for deployment. By default, 
Mapping Services deploys containers with the “independent containers” option selected. When this 
option is selected, each Flow is packed in its “own” container and the Map/Flow operates as a self-
contained item on the server side. This enables the user to avoid unwanted relations (and further 
avoid the side effects caused by object relationships) between maps on the server side that share the 
use of the same objects such as Business-Documents. 

The result of not selecting the “independent containers” option is a potential dependency between 
containers. This dependency can make container removal problematic, as containers must be 
removed in the opposite order from which they were deployed.

Container synchronization
The integration engine and the trading engine must have the same set of containers. To manage this 
synchronization, the B2Bi deployment server compares:

 l The number of unique containers contained in the B2Bi database table b2bimapcontainers.
 l The number of the unique containers returned by the command ./mapProxyDeployer LIST.

If B2Bi detects more containers on the integration engine side, the non-synchronized containers are 
removed.

If B2Bi detects fewer containers on the integration engine side, the missing containers are 
redeployed.

De-synchronization may occur, for instance, if some containers were removed by the deployment 
server when the integration engine was stopped. In that case, all the missing containers are 
redeployed at integration engine start-up. 

If a large number of containers need to be redeployed, the redeployment operation may take some 
time. This can temporarily prevent users from deploying new flows from Mapping Services.

Deployment performance
The greater the number of Maps on the B2Bi Server, the longer the time required to deploy 
containers.

The number of deployed Maps does not affect the runtime performance. But it does affect:

 l Deployment time for new containers
 l Time needed to complete the addition of a new runtime node in a cluster
 l Node (map) synchronization logic. 

B2Bi  2.1 Operations Guide  75


9  Resources for B2Bi components

The number of deployed Maps includes the history of each Map being deployed (example: a Map 
deployed and then updated three times counts as four Maps). As a result, each Map deployment 
causes the B2Bi Server repository to grow. Because all of these versions are potentially dependent 
on each other, we need to deploy all of them in the exact same order on each node, causing slower 
deployment / response time.

Container identification and versioning


limitations
As part of the deployment process, Mapping Services packages Maps / Flows in a “container”. There 
are several known limitations to the container identification handling for deployment and runtime 
processing:

 l Mapping Services attaches a “version” to a container at deployment time. If you redeploy a 
container with the same name, the result is multiple instances of the same container at on the 
runtime system, although only the last deployed container of the multiple instances is active for 
message processing. This has several negative effects. There is a negative impact on deployment 
performance (see the performance section above). Additionally, due to the relationships and 
hierarchical structure between the various versions, multiple versions of container makes 
container removal more difficult. Several removal operations may have to be manually 
performed.
 l The“version” information that is attached to a container is not used by B2Bi at runtime to 
identify a container. For this reason, this information does not enable a roll-back to an earlier 
version.
 l The displayed list of containers on the Mapping Services side does not clearly reflect the actual 
runtime available content in all cases. The container list shows both the old (inactive) versions as 
well as the current (active) versions.

Integration engine not running


When the B2Bi integration engine is not running, or is not defined, you can still deploy Maps from 
Mapping Services to the deployment server. When the integration engine is back on line, Maps are 
synchronized with the deployment server. This synchronization may result in failure, which cannot 
be monitored on the Mapping Services side upon deployment.

Windows path limitation


On Windows platforms, if the combined B2Bi runtime installation path and map definition name 
exceeds 255 characters in length, compilation errors are generated when deploying  DML Maps. 

76  Operations Guide B2Bi  2.1


Manage the resource deployment server

Manage the resource deployment server


Use the Manage deployment server page to manage maps and other processing resources that have 
been deployed to your runtime environment. 

In addition to the user interface features described in this chapter, you can use a command line tool 
to manage the deployment server. See Command line interface for the deployment server on page 
79.

About the deployment server


Maps, map flows and other document processing resources must reside on each integration engine 
of your B2Bi runtime environment so that they can be available for use in the processing of 
messages. In the case of a clustered installation, there is an integration server for each cluster node.

There are two principal sources of processing resources:

 l An initial set of maps and other processing resources are installed with each integration engine 
when it is installed.
 l You typically create additional resources in a development environment.

After you create  maps and other resources in the development environment, you deploy them to the 
runtime system through the deployment server. The deployment server stores copies of the 
deployed resources in a dedicated cache. This cache also stores any resources that were originally 
deployed to integration engines during installation.

The deployment server is responsible for the synchronized deployment of these resources from the 
cache to the integration engine on each node of the B2Bi cluster. Whenever a new node joins the 
cluster, the deployment server synchronizes the resource content of the integration engine of the 
new node with the content of the server cache. In this way, the deployment server ensures that all 
nodes are populated with the maps and other processing resources required for runtime processing.

In some cases you may detect a de-synchronization between the population of cached resources 
and the resources that reside on one or more integration engines.   The following paragraphs 
describe tools for managing this type of de-synchronization.

Manage the deployment server cache

Open the Manage deployment server page


To open the Manage deployment server page, from the menu bar select Processing
configuration > Manage deployment server.

B2Bi  2.1 Operations Guide  77


9  Resources for B2Bi components

View the number of available component resources


The Deployment server summary section displays the number of resources that are currently 
available for deployment to the integration engines.   

The Integration engine summary section displays the number of resources that are currently 


residing on each integration engine. 

For your environment to be fully operational and protected as an Active / Active cluster, the number 
of resources listed in each of the summary sections should be identical.

Cache management commands


If you need to manage the difference between the cached resources and the resources residing on 
integration engines, use the following commands:

 l Remove all – Select this command to remove all  resources from the deployment server cache. 
Warning: This command also removes all deployed resources from the cache and from all 
connected integration engines. You must redeploy all maps and other processing resources in 
order to restore message-processing capacity. Use this command only if you have a specific 
operations issue that requires it.
 l Refresh cluster – Use this command to deploy all resources from the deployment server cache 
to all connected integration engines. 

Depending on the volume of the cache, this process may take several minutes.

When you use either of the above commands,B2Bi executes the action on the cache and displays a 
summary of the files that were removed or synchronized in your runtime environment.

Use the deployment server with PassPort


When you have installed PassPort with B2Bi, and also enable PassPort authentication, you must 
perform additional configuration before you can deploy resource containers to B2Bi.

Before you begin


Create a user account in PassPort that is dedicated to deployment server access. Set the following 
minimum level of permissions to this account:

 l Import Container action
 l Remove Container action
 l Display Repository Container List action

You can optionally add additional permissions as required.

78  Operations Guide B2Bi  2.1


Command line interface for the deployment server

Procedure
 1.  When you are licensed to use PassPort with B2Bi, and you have not yet set the deployment 
authentication credentials to PassPort, the following message appears on the Manage 
deployment server page:
"Set the default deployment server credentials"
Click this message to open the Deployment server credentials page. 
 2.  On the credentials page, indicate the PassPort access credentials that deployment server should 
use:
 l Domain – Enter the PassPort domain under which the deployment server user name 
was created.
 l User name – Enter the user name for the deployment server to use to access PassPort.
 l Password – Enter the password of the Deployment server user account.
 3.  Click Save changes.

Command line interface for the deployment


server
The B2Bi mapProxyDeployer tool enables you to list, deploy, and remove containers from the 
deployment server Map Proxy through the command line. This tool is located in the <B2Bi_
install_directory>\Interchange\tools directory. 

Commands are not case sensitive  ( except for containerId, dirName, and hostName parameters). 
If no command is specified or an unknown command is used, a usage info message is displayed.

To display comprehensive a list of syntax and commands, from the \tools directory enter:

mapProxyDeployer

Available commands:

 l *LIST [location] – Lists all containers from Map Proxy or only those found at the specified 
location. Location can be CACHE, DEPLOY, or REJECT. For every container, this command 
displays name, version, ID, a short description, generation date, and location.
 l *REMOVE containerId –  Removes the container with the specified ID from Map Proxy. This 
command permanently deletes the database entry and the related folder stored on the file 
system. To broadcast the update to all configured integration engine instances, run FORCE_
SYNC.

B2Bi  2.1 Operations Guide  79


9  Resources for B2Bi components

 l *REMOVE ALL [location] – Removes all containers from Map Proxy or only those found at 


the specified location. Location can be CACHE, DEPLOY, or REJECT. This command permanently 
deletes database entries and the related folders stored on the file system. To broadcast the 
update to all configured integration engine instances, run FORCE_SYNC.
 l *DEPLOY dirName –  Starts deployment for all zip containers found at the specified dirName 
path. The path can contain spaces. To broadcast the update to all configured integration engine 
instances and finish the deployment process, run FORCE_SYNC. 
 l *FORCE_SYNC [hostName] –  Broadcasts all changes to all configured integration engines, or 
only to the one configured integration engine on the specified host.
 l *INTEGRATORS –  Displays information about all integration engines, including host, where 
configured, port used, status, and if synchronized.

Command authorization requirement:

With each command that you send to the B2Bi server, you must include the user name and 
password of an authorized server account. For example, to list all currently deployed containers:

./mapProxyDeployer USER <username> PASS <user_password> LIST

Example
This example describes a series of procedures in which a flow deployment container is first created 
in Mapping Services, then manually edited and zipped, and finally deployed a B2Bi server. In many 
cases, these tasks can be distributed to persons with different roles in an enterprise. For example 
map design personnel may create and maintain maps and container content, while a server 
administrator may handle the container deployment to runtime environments.

To deploy a flow that has been created in Mapping Services to all configured integration engine 
instances:

Step 1: Export the flow from Mapping Services to a


container
 1.  In the Mapping Services user interface Project tab, select a project, and in the directory 
structure of the project, right-click the map or the flow that you want to deploy.
 2.  From the context menu, select Deploy... to open the Deploy page.
 3.  In the Deploy page:
 l Make sure that the correct map or flow is selected for deployment.
 l Select the target File system and then, using the Browse tool, select the folder where 
the container is to be created.
 4.  Click Finish.

80  Operations Guide B2Bi  2.1


Command line interface for the deployment server

Mapping Services builds an export container in the specified folder.
A "Deployment Result" message confirms the successful container build and location.

Step 2: Modify the container


Modify the container you created in the previous step, to obtain this structure:

Attributes.xml
BusinessDocument_1.xml
BusinessDocument_2.xml
Component.xml
Container.xml
Info.xml
MapBroker_1.xml
MapStage_1.xml
ObjectDependencies.xml
Variables.xml

Step 3: Zip the container


Create a zip file of the container.

Step 4: Deploy the container to the runtime environment


Execute the following commands from <B2Bi_install_directory>\Interchange\tools:

./mapProxyDeployer USER <username> PASS <user_password> DEPLOY


<directory where the zip file is located>
./mapProxyDeployer USER <username> PASS <user_password> FORCE_SYNC

Where:

 l The DEPLOY command sends the container to the B2Bi server.
 l The FORCE_SYNC command broadcasts all changes to all configured integration engines, (or, 
optionally, only to a configured integration engine that you specify.

B2Bi  2.1 Operations Guide  81


B2Bi Monitoring
Framework 10  
The B2Bi Monitoring Framework is a statistical collection program for monitoring trading engine 
activity. Monitoring Framework is based on the open source Metrics library (metrics.codahale.com). 
Monitoring Framework runs natively on the trading engine to continuously collect a range of 
operations statistics. 

You can configure Monitoring Framework to send the collected data to a third-party application for 
viewing and analysis.

You configure monitoring dynamically so that you can enable statistics reporting at any time 
without restarting B2Bi.

Histograms
Monitoring Framework operation is based on a statistics tool called Histogram. Histogram measures 
the distribution of values in a stream of data (for example, the number of results returned by a 
search). Histogram metrics enable you to measure common metrics such as the min, mean, max, 
and standard deviation of values, as well as metrics of points  taken at regular intervals (quantiles) 
such as the median or 95th percentile. To accomplish this, Metrics maintains a small manageable 
reservoir that is statistically representative of the data stream as a whole.  This technique is called 
reservoir sampling. 

Exporting statistics to visualization software


In Metrics open source terminology, Reporters are the way the Monitoring Framework exports all 
the collected metrics data.

You can configure Monitoring Framework reporters to send the statistics it collects to any of the 
following third-party and open source metrics reporter applications:

 l Apache Log4j – Generates statistic log files
 l CSV – Gathers detailed CSV-formatted data on specific metrics.
 l JMX – Enables the availability of metrics to all JMX agents (including Java VisualVM).
 l Graphite – Open-source monitoring framework

B2Bi  2.1 Operations Guide  82


10  B2Bi Monitoring Framework

Timers
A timer is a set of data that measures the duration of a type of event and the rate of its occurrence.

Timer data is embedded in the data of the related Filter/Name for a given Reporter. When you 
configure the reporter and select the filters for sending data to that reporter you can include or 
exclude timer data.

Monitoring Framework provides timers that enable B2Bi to collect measurements of variety of values.  

The following example shows a Log4j output with timer data on how long it takes to update a 
database heartbeat:

2013-12-18 11:47:25,245 - Cluster-


HeartbeatUpdater.database.updateTime.item-a13200_cn: Count: 44, Min:
0.9758089999999999, Max: 107.144837, Mean: 14.325860363636362, StdDev:
25.427175037853704, Median: 2.1554425, p75: 17.839615, p95:
91.66807949999999, p98: 107.144837, p99: 107.144837, p999: 107.144837,
MeanRate: 0.499742453620688, M1: 0.5294262846388921, M5:
0.5767878890393485, M15: 0.5915183485820346, RateUnit: events/second,
DurationUnit: milliseconds

Monitoring Framework provides timers to gather statistics on the following actions:

 l Event purge
 l Message purge
 l B2Bi sending client
 l Consumption time (by pickup)
 l Production sending (by delivery)
 l File system health monitor
 l Cluster Database Heartbeat
 l All PM Server requests (The PM Server is a B2Bi internal server that provides the integration 
engine with  appropriate processing and partner configuration at runtime).
 l Sending events to Sentinel

Configure Monitoring Framework


Use the following procedure to configure how Monitoring Framework sends statistical data to one or 
more reporter target applications.

 1.  Go to <Interchange_install_directory>/conf and open the file 
monitoringconfig.xml in a text editor.

83  Operations Guide B2Bi  2.1


Configure Monitoring Framework

 2.  Use the tables that follow this procedure to specify the target reporter applications and the 
statistics to be sent.
 3.  Save the file.
Note: You do not have to restart B2Bi, statistics monitoring changes take effect immediately.

Reporter attributes
To control the amount and type of statistics that you send to the reporter application, set the 
following attributes:

Parameter Description

Enabled Set to true/false to enable or disable.

rateUnit TimeUnit (Seconds, MS, Minutes) to covert values to.  Example - events/second 
or events/minute.

durationUnit TimeUnit (Seconds, MS, Minutes) to measured time periods.

writeInterval Number of seconds to send metrics to reporter.  Example 5 – Statistics will be 
sent every 5 seconds.

Filter Use filters to control which statistics to send to the reporter. See the following 
table for a list and description of available filters.

Filter names
To set the filter attributes, use the following names in the Filter/Name field:

Filter name field value Statistic description

AlertSystem Alert system activity

B2BiSendClient Sending messages to the integration engine

ClusterConnections Cluster framework individual connections between cluster nodes

Cluster-HeartbeatUpdater Cluster framework heartbeat to database

Cluster-ThreadPool Cluster framework thread pool

ConnectionCache Sync connections being held by the trading engine

B2Bi  2.1 Operations Guide  84


10  B2Bi Monitoring Framework

Filter name field value Statistic description

Consumption Consumption on a per pickup basis (timers, per minute/per 
hour/per day stats available)

DatabaseCommit Database commit notifications (local and remote)

DatabaseConnectionPool BoneCP data base connection pool

Events Event system activity

FileSystemHealth Timer activity on monitoring each configured file system health 
check

JPADataCache OpenJPA data cache activity

jvm.gc, jvm.memory,  Internal jvm heap usage, gc collections and thread 
jvm.thread-states statesMessageProduction

MessageDispatched Messages dispatched to the trading engine for processing

MessageProduction Production system coordination, and timers on producing 
messages on a per partner delivery

MessagePurge Message purge activity (non Oracle stored procedures)

PmServer All PM Server activity statistics. The PM Server is a B2Bi internal 
server that provides the integration engine with  appropriate 
processing and partner configuration at runtime.

ResourceManager  Trading engine resource manager (used for X25 type protocols)

Sentinel Sentinel connection and queue

SequenceCoordinator Sequence coordination activity

ThreadPool Core trading engine thread pool activity

TokenManager Cluster framework TokenManager for cluster wide locks

XmlDomDocumentFactory XML Dom Cache activity

85  Operations Guide B2Bi  2.1


Example Monitoring Framework configuration

Example Monitoring Framework


configuration
<StatsCollectionConfiguration>
<Metrics>
<MonitorJVM>true</MonitorJVM>
<Reporters>
<Reporter name="JMX" enabled="true"
rateUnit="SECONDS" durationUnit="MILLISECONDS">
</Reporter>
<Reporter name="CSV" enabled="false"
rateUnit="SECONDS" durationUnit="MILLISECONDS"
writeInterval="5" path="../logs/metrics">
</Reporter>
<Reporter name="GRAPHITE" enabled="true"
rateUnit="SECONDS" durationUnit="MILLISECONDS"
writeInterval="5"
host=“graphite.lab.phx.axway.int" port="2003">
</Reporter>
<Reporter name="LOG4J" enabled="true"
rateUnit="SECONDS" durationUnit="MILLISECONDS"
writeInterval="60">
<Filter type="StartsWith">
<Pattern name="ConnectionCache"/>
<Pattern name="Consumption"/>
<Pattern
name="MessageDispatched"/>
<Pattern
name="MessageProduction"/>
</Filter>
</Reporter>
</Reporters>
</Metrics>
</StatsCollectionConfiguration>

B2Bi  2.1 Operations Guide  86


B2Bi integration engine
management tools 11  
When you install the B2Bi Client environment you have the option of also installing a set of 
integration engine management tools from the B2Bi Client installer.

Screen resolution prerequisite


The information displayed in many of the B2Bi client tools screens can be very detailed, containing 
tables with numerous columns. For comfortable viewing, we highly recommend that you set your 
screen resolution to a minimum of 1024 x 768 pixels.

Starting the tools client


To access the tools after installation:

 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi


[Installation Name]> B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager. In addition, the groups associated with 
your login determine which tools you can access.

After you log in you see the following page:

B2Bi  2.1 Operations Guide  87


11  B2Bi integration engine management tools

From the B2Bi Tools Client Help menu you can view integration engine system details:

 l View integration engine system information on page 90

The following sections describe the tools that are provided by the B2Bi Tools Client:

 l Alert Manager on page 91
 l Character Sets Manager on page 99
 l Datamapper on page 103
 l Datamapper Builder on page 104
 l EDI Tracker on page 108
 l File Viewer on page 138
 l Integration Manager on page 139
 l Message Log  on page 179
 l Metadata Browser on page 191
 l Performance Monitor on page 194
 l Queue Monitor on page 202
 l Remote Compiler on page 207
 l SeqNum Utility on page 210
 l System Profile Manager on page 213
 l Task Monitor on page 229

88  Operations Guide B2Bi  2.1


Starting the tools client

 l Trace Viewer on page 234
 l User Manager on page 239

B2Bi  2.1 Operations Guide  89


11  B2Bi integration engine management tools

View integration engine system information


From the B2Bi Tools Client user interface menu bar, click Help > Details to open the Details 
window. Then select the System Information tab to view the following categories of information 
for the integration engine instance to which you are connected:

 l Operating System – System type (Linux / Windows) and version
 l Machine – Machine type and name
 l Disk Space – Reserved space and occupied space for the directories CORE_ROOT, CORE_LOCAL 
and CORE_DATA
 l Environment Variables – List of defined environment variables and their values

90  Operations Guide B2Bi  2.1


Alert Manager

Alert Manager
Alerts are events that occur within the integration engine that enable external and automatic system 
monitoring. Alerts are typically very general. Their primary purpose is to make a system (and 
ultimately a person) aware of a problem or to inform about an important event. Although most alerts 
report errors, some report events of a benign nature. Unlike message logging, alerting is not 
message-centered. However, unlike trace logging, alerts are structured. In addition, alerts are type 
and code documented. 

Use Alert Manager to view any alerts that have occurred in the integration engine. You should 
delete an alert as soon as it is no longer current. In other words, do not use alerts as a log for 
monitoring events. Normally alerts are not repeated in the Alert Manager. If an alert is generated due 
to a system error, a new alert for the same system error will not appear until you delete the original 
alert.

Start Alert Manager


 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi
[Installation Name]> B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.

 3.  From the tool panel, double-click the Alert Manager icon.

Create a system filter for alerts


For programs and processes that do not generate alerts by themselves, you can define system filters. 
A system filter is used to filter events from the Trace Monitor and based on that, generates an alert. 
You must have administrator access to the Alert Manager to create system filters. 

Tip: You can create a system filter for alerts and select the Suppress alerts check box. 
Suppressing alerts is useful when you have a generic filter that matches a generic error condition, 
but want to exclude certain errors from generating an alert.

To create a system filter:

 1.  In Alert Manager, open the Filter menu and click System Filters.


The System Filters dialog box appears. The top section is for user-defined filters and the bottom 
section contains predefined filters. The entire list is evaluated from top to bottom. The first 
matching filter will either generate or suppress an alert.
 2.  Click Insert.
 3.  Type a meaningful Description for the filter.

B2Bi  2.1 Operations Guide  91


11  B2Bi integration engine management tools

 4.  If this filter should suppress rather than generate this type of alert, select the Suppress alert 


check box.
 5.  On the Alert tab, under Severity, select whether the alert should be classified as Info, a 
Warning, or anError.
 6.  In the Type box, enter the source of the alert.
See Alert types and codes for more information.
 7.  In the Code box, enter the identifier within that type.
 8.  In the Text box, enter the text that should appear when this alert is generated, or leave this 
blank if you want the system event causing the alert to appear.
 9.  On the Filter tab, under Severity, select one or more event types to include from Trace 
Monitor.
 10.  In the Program Name box, enter the program name to match in Trace Monitor.
The defined program name can contain special characters * to match any sequence of 
characters, or ? to match any single character. The combination \* or \?  matches the characters 
* or ?, respectively.
 11.  In the Text box, enter the text to match in Trace Monitor messages.
The defined text can contain special characters * to match any sequence of characters, or ? to 
match any single character. The combination \* or \?  matches the characters * or ?, 
respectively.
 12.  Click OK to save the filter.
 13.  In the System Filters dialog box, use the Up and Down buttons as needed to change the 
processing order.
 14.  Click OK.

Modify a system filter


 1.  In Alert Manager, open the Filter menu and click System Filters.
The System Filters dialog box appears. The top section is for user-defined filters and the bottom 
section contains predefined filters. The entire list is evaluated from top to bottom. The first 
matching filter will either generate or suppress an alert.
 2.  Select the filter you want to modify and click Open.
You can only modify user-defined filters. Predefined filters open in read-only mode.
 3.  Change the information as needed on the Alert and Filter tabs. Then, click OK to save the 
changes.
 4.  In the System Filters dialog box, use the Up and Down buttons as needed to change the 
processing order.
 5.  Click OK.

92  Operations Guide B2Bi  2.1


Alert Manager

Delete a system filter


 1.  In Alert Manager, open the Filter menu and click System Filters.
The System Filters dialog box appears. The top section is for user-defined filters and the bottom 
section contains predefined filters. The entire list is evaluated from top to bottom. The first 
matching filter will either generate or suppress an alert.
 2.  Select the filter you want to delete and click Delete.
You can only delete user-defined filters.

Create a message filter for alerts


To generate alerts based on message-related events you can define message filters. A message filter 
is used to filter events from the Message Log and based on that, generates an alert.

Tip: You can create a message filter for alerts and select the Suppress alerts check box. 
Suppressing alerts is useful when you have a generic filter that matches a generic error condition, 
but want to exclude certain errors from generating an alert.

To create a message filter:

 1.  In Alert Manager, open the Filter menu and click Message Filters.


The Message Filters dialog box appears. The top section is for user-defined filters and the 
bottom section contains predefined filters. The entire list is evaluated from top to bottom. The 
first matching filter will either generate or suppress an alert.
 2.  Click Insert.
 3.  Type a meaningful Description for the filter.
 4.  On the Alert tab, select the Suppress alert check box if this filter should suppress rather than 
generate this type of alert.
 5.  Under Severity, select whether the alert should be classified as Info, a Warning, or anError.
 6.  In the Type box, enter the source of the alert.
See Alert types and codes for more information.
 7.  In the Code box, enter the identifier within that type.
 8.  In the Text box, enter the text that should appear when this alert is generated, or leave this 
blank if you want the Message Log text causing the alert to appear.
 9.  On the Filter tab, under Severity, select one or more event categories to include.
 10.  In the Event type box, select the specific event type to match.
 11.  In the Text box, enter the text to match against the Message Log.
The defined text can contain special characters * to match any sequence of characters, or ? to 
match any single character. The combination \* or \?  matches the characters * or ?, 
respectively.
 12.  Disregard the Integration box.

B2Bi  2.1 Operations Guide  93


11  B2Bi integration engine management tools

 13.  Click OK to save the filter.
 14.  In the Message Filters dialog box, use the Up and Down buttons as needed to change the 
processing order.
 15.  Click OK.

Modify a message filter


 1.  In Alert Manager, open the Filter menu and click Message Filters.
The Message Filters dialog box appears. The top section is for user-defined filters and the 
bottom section contains predefined filters. The entire list is evaluated from top to bottom. The 
first matching filter will either generate or suppress an alert.
 2.  Select the filter you want to modify and click Open.
You can only modify user-defined filters. Predefined filters open in read-only mode.
 3.  Change the information as needed on the Alert and Filter tabs. Then, click OK to save the 
changes.
 4.  In the Message Filters dialog box, use the Up and Down buttons as needed to change the 
processing order.
 5.  Click OK.

Delete a message filter


 1.  In Alert Manager, open the Filter menu and click Message Filters.
The Message Filters dialog box appears. The top section is for user-defined filters and the 
bottom section contains predefined filters. The entire list is evaluated from top to bottom. The 
first matching filter will either generate or suppress an alert.
 2.  Select the filter you want to delete and click Delete.
You can only delete user-defined filters.

Open an alert to view details


Various servers, connectors, and so forth can generate alerts. You can open an alert to see details.

 1.  In the Alert Manager, select the alert you want to view.
 2.  Double-click the alert to see the details.
The following information is displayed on the General tab.

Item Description

Date Date and time when the alert was created

94  Operations Guide B2Bi  2.1


Alert Manager

Item Description

Alert ID Identifier of the alert; uniquely identifies the alert within the alerter server task

Type, Code The combination of type and code defines the alert. The type is typically the 
source of the alert, while the code is an alert identifier for the specific type. 
External monitoring software can use the type and code to identify the alert.

Severity Level of severity for the alert

Description A description of the cause of the alert

The Data tab shows the cause of the alert (if available).

Alert types and codes


The following table describes the alert types and codes.

Type Code Description

EDIFACT 100 EDIFACT classification failed

110 EDIFACT enveloping failed

120 EDIFACT envelope: Ack. analyzing storing failed

130 EDIFACT message processing failed

140 EDIFACT parsing failed

150 EDIFACT message rejected by recipient

DMC 110 Datamapper conversion program failed to parse input message

120 Datamapper conversion program failed

B2Bi  2.1 Operations Guide  95


11  B2Bi integration engine management tools

Type Code Description

EMAIL 4200 Failed to look up POP3 host

4201 Failed to look up POP3 port

4202 Failed to connect to POP3 server

4203 Failed to log in to POP3 server

4204 STAT command failed

4205 RETR command failed

4206 Failed to parse email headers

4207 Unknown error when connecting to POP3 server

MIMEIN 4601 Empty input data

4602 Invalid header

4603 Multipart without boundary

4604 Syntax error in header

4605 Decode Base64

4606 Decode quoted printable

4607 Invalid MDN report

4608 MDN in no MDN mode

4609 MimeIn only MDN mode

MIMEOUT 4800 Missing mime header parameter

4801 Encode Base64

4802 Encode Quoted Printable

4803 Failed to set MDN attribute

4804 Failed to write MDN correlation

4805 MDN Timed out

4806 Encode unknown

96  Operations Guide B2Bi  2.1


Alert Manager

Type Code Description

TransferAdapter 100 Fatal exit

TransferGateway 100 Fatal exit

200 Receive failed

201 Receive classification failed

300 Send failed

400 Retrieve failed

HierchMsgEnv 100 Fatal exit

Trace 100 Trace error

101 Trace fatal

Procengine 100 Procengine error

101 Procengine fatal

Starter 100 Starter error

101 Starter fatal

Logger 100 Logger error

101 Logger fatal

Queue 100 Queue error

101 Queue fatal

Timer 100 Timer error

101 Timer fatal

Cfgserver 100 Cfgserver error

101 Cfgserver fatal

Porter 100 Porter error

101 Porter fatal

B2Bi  2.1 Operations Guide  97


11  B2Bi integration engine management tools

Type Code Description

Unspecified 100 Unspecified error

101 Unspecified fatal

98  Operations Guide B2Bi  2.1


Character Sets Manager

Character Sets Manager


Use the Character Sets Manager to select ranges of characters from the Universal Character Set 
ISO 10646 to use as definitions of character sets. When you have created a set of ranges to 
comprise the character set, you can then associate the character set to a Business Document node in 
Mapping Services.

The goal of UCS is to eventually include all characters used in all the written languages in the world 
as well as all mathematical and other symbols. The current first edition of UCS covers all major 
languages and all commercially important languages.

To be able to give every character a unique coded representation, the designers of UCS chose a 
uniform encoding, using bit sequences consisting of 16 or 31 bits (in the two coding forms, UCS-2 
and UCS-4). This is the reason for the term multi-octet in the name of the standard.

Start Character Sets Manager


 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi
[Installation Name]> B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.

 3.  From the tool panel, double-click the Character Sets Manager icon.

Manage character sets


Use the Character Sets Manager you to:

 l Create character sets comprising one or more intervals of a universal character set
 l Modify one or more of the code intervals that are contained in a character set
 l Delete a character set
 l Delete one or more of the intervals that are contained in a character set

Create a character set


 1.  From B2Bi Tools Client window, double-click the Character Sets Manager icon to display the 
Character Sets Manager main window.
This window displays a list of the character sets that are currently available on your server. If no 
custom character sets are available, the display window is empty.
 2.  For each character set listed in the display window, the follwing information is diplayed.

B2Bi  2.1 Operations Guide  99


11  B2Bi integration engine management tools

Name –  The name of the character set. You use this name to refer to the character set when 
you associate it to a Business-Document in the Composer interface.
Type – A description of the character set type.
Description –  Text that provides additional useful information about the character set.
 3.  From the File menu of the Character Sets Manager main window, select New to open the 
Character Set definition window.
 4.  In the Character Set definition window, complete the following fields:

Field Content

Name   Enter a name for the character set.  
(text field) When you are done creating the character set, this name appears in the 
list of the Character Sets Manager main window.

Description   Optionally, enter a description of of the character set you are creating. 
(text field) You can enter information that helps other users understand the content. 
When you are done creating the character set, this information appears in 
the list of the Character Sets Manager main window.

Valid ISO  Use this pane to add ISO 10646 code intervals that define your character 
10646 code  set.  
interval(s)  You can define one or more code intervals from the ISO 10646 universal 
(list pane) set.  To add a code interval:  
  Click Add...  The Code Interval definition dialog box is 
displayed.  
  In the Code Interval definition dialog box, complete the 
following fields: 
 l  From: Enter the code number of the beginning code 
of the interval 
 l  To: Enter the code number of the ending code of the 
interval 
  Click OK.  
The Code Interval definition dialog box closes and a new line 
entry in the Valid ISO 10646 code interval(s) frame is added.

Modify a character set code interval


 1.  From B2Bi Tools Client window, double-click the Character Sets Manager icon to display the 
Character Sets Manager main window.
 2.  In the Character Set definition window, in the Valid ISO 10646 code interval(s) frame, 
double-click the code interval that you want to modify.

100  Operations Guide B2Bi  2.1


Character Sets Manager

The Code Interval definition dialog box opens. This box displays the existing limits of the 


interval you selected.
 3.  In the Code Interval definition dialog box, modify the interval-limiting values according to your 
requirements.
 4.  Click OK.
The Code Interval definition dialog box closes and the selected code interval is updated.

Delete a character set


To delete an entire character set definition:

 1.  From B2Bi Tools Client window, double-click the Character Sets Manager icon to display the 


Character Sets Manager main window.
This window displays a list of the character sets that are currently available on your server. If no 
custom character sets are available, the display window is empty.
 2.  Right-click the name of the character set you want to delete.
 3.  From the contextual menu, select Delete.
The delete command verification window is displayed. You are prompted to confirm the 
deletion process.
 4.  In the delete command verification window click OK.

Delete a character set code interval


To delete one of the code intervals that define a character set:

 1.  From the Character Sets Manager main window, double-click the character set from which 


you want to delete a code interval.
 2.  In the Character Set definition window, in the Valid ISO 10646 code interval(s) frame, 
click to select the code interval that you want to delete.
 3.  Click Remove.
The selected code interval is removed from the list of intervals for the selected character set.
 4.  Click OK.
The Code Interval definition dialog box closes and the character set is updated.

After you create a character set


After you create a character set in the Character Sets Manager:

 l The new character set appears as a displayed entry in the Character Sets Manager main window. 
You can view, modify or delete the character set at any time.

B2Bi  2.1 Operations Guide  101


11  B2Bi integration engine management tools

 l You can enter the name of the character set (or any other character set that appears in the 
Character Sets Manager main window) when you are defining the properties of nodes in 
Business-Documents.
 l The B2Bi integration engine then uses the specified character set in the Business Document node 
to restrict incoming message data to data formatted only in the characters in that set. The 
integration engine rejects data formatted in characters outside the set, for the node. An 
explanatory message appears in the Message Log.

Remember: The character set you choose applies only to the data contained in the selected node.

102  Operations Guide B2Bi  2.1


Datamapper

Datamapper
If you are migrating to the current version of B2Bi, you can use Datamapper on a client machine. 
However, the client machine must have an environmental variable set (DATAMAPPER) referring to 
the installation path of Datamapper.

Start Datamapper
 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi
[Installation Name]> B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.
 3.  From the tool panel, double-click the Datamapper icon.

For more information about using Datamapper, refer to the AMTrix Datamapper User Guide.

B2Bi  2.1 Operations Guide  103


11  B2Bi integration engine management tools

Datamapper Builder
Use Datamapper Builder to take the map files produced by the Datamapper client and build 
Message Builder Conversion programs (MBCs).  Datamapper Builder generates and compiles code 
into MBCs.  It also tests and administers MBCs.

To use Datamapper Builder, Datamapper must be installed on the same client.

Start Datamapper Builder


 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi
[Installation Name]> B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.
 3.  From the tool panel, double-click the Datamapper Builder icon.

Work with Datamapper Builder


Datamapper Builder has a workflow-oriented user interface. You work with projects that define how 
to build the conversion program for a certain map. Projects make it possible to save and retrieve not 
just the required combinations of map, main code, and other build options, but also test data for 
various tests. Use the Project menu to add, open, save, delete, and see the contents of projects.

Archive projects
Archives replace the “Fold” files feature in previous versions of Datamapper Builder. You can use the 
archive feature to store different versions of a project, or you can copy the archive file to the client 
PC and distribute it to another Datamapper user who can then re-create the complete project. An 
archive file contains all of the files that are required to create a project, including map and view files 
on the client, the main code file, and the executable file. 

Tip: To avoid destroying your work, make it a habit to create archives of your projects so you can 
recreate a project if needed.

Use the Archive menu to create new archives, open existing archives, delete archives, and copy 
archives between the client and server.

Note: You may overwrite existing files when opening an archive. However, template main code files 
are never overwritten.

104  Operations Guide B2Bi  2.1


Datamapper Builder

The ability to copy to and from the client file system is very useful when you want to send an archive 
to somebody. You can copy the archive file directly to media, or you can save it to a location where 
you can get to it and then attach it to an email.

Build programs
Use the options on the Program menu to complete the following tasks:

 l Build Conversion Program – Generate the source code and compile the conversion program.


 l Compile Only – Compile the conversion program.
 l Test Conversion Program – Test the conversion program using the simulator functionality.
 l Register Conversion Program – Register the conversion program in the registry. A 
conversion program can be registered using the menu option, or by enabling the check box for 
Auto Register Conversion Program, which will automatically register the program each time it is 
built.
 l Edit Main Code – Use to modify the main code.
 l Copy Main Code – Make a copy of the main code.
 l Delete Main Code – Delete a copy of the main code.

The provided main code files include the following:

 l DMnormal.mc – Used for ordinary “file-to-file” mapping. The result is a loadable conversion 
program.

 l DMobject.mc – Used for object mapping.  The result is a loadable conversion program.
 l DMcompatible.mc – Used for ordinary “file to file” mapping. The structure of the code  
resembles that of the main programs in earlier Datamapper versions. This main code should be 
used when upgrading old maps that have modifications in the main code that make calls to 
“Direct Data Access” functions. When using this main code, the Map Directive //COMPATIBILITY 
must be entered in the map description field. Note that more code will be generated as a result.

Compilation options
Option Description

Include  Click on this box to compile the detailed line number information into the map. From the 
Line  Datamapper Simulator, the line number information may be viewed in the Event Log.
Number 
Information
 

B2Bi  2.1 Operations Guide  105


11  B2Bi integration engine management tools

Option Description

Strip  Once a conversion program has been created and tested by using the Datamapper 
Simulation  Simulator, the map may be recompiled when this option is selected. By doing this, the 
Information conversion program is be generated without simulation information. Note that when this 
  option is it is not possible to test data with Datamapper Simulator. 

Store  When this option is selected, only the fields and elements that are referenced in the map 
Mapped  are read when the conversion program is run. The result of this is that generation of the 
Data Only  conversion program may take a somewhat longer time but execution is faster. In maps 
where user code that accesses data by use of Data tree functions is used, it is recommended 
that this option is not enabled.

Auto  Conversion programs that are to be used within Trading Partner Management need to be 
Register  registered. A conversion program can be registered either by selecting Program >
Conversion  Register Conversion Program or by selecting this option, which automatically registers 
Program   the program each time it is built. 

Displaying results
If this is the first build for this map, a Datamapper project is automatically created and a main code 
file is selected.  The project defines the combination of map, ADF files, EDI standard, test cases, main 
code, and options. The project is named after the map. If the project already exists, this is used.

Build a conversion program manually


 1.  Select the Build Manually check box.
 2.  Click Project > New and select an RTM file. 
The RTM file determines the name of the project and it cannot be changed.
 3.  Click Project > View Files to display all of the files that belong to the selected project. 
Note that a project keeps track of when files were created, both on the server and on the client.
 4.  Click Display Progress Messages to display generation and compilation information.
If there are any errors, they appear here.
 5.  Click Build.

Test a conversion program


The simulator has been designed to handle testing of simple conversion programs, such as inhouse-
to-inhouse, as well as more complex object conversions where a query is sent to an object that 
responds with data, which in turn is mapped to another object and so on. You can use step-by-step 
simulations to edit, copy, and delete data, and to survey these complex maps during execution 
rather than simply looking at the resulting output from the last object.   

106  Operations Guide B2Bi  2.1


Datamapper Builder

To test, click Program >Test Conversion Program.

B2Bi  2.1 Operations Guide  107


11  B2Bi integration engine management tools

EDI Tracker
Use EDI Tracker to view the transfer status and other information about  EDIFACT and X12 
documents handled by  B2Bi servers. 

EDI Tracker is installed during B2Bi installation.

To work in EDI Tracker you launch searches. These searches are filtered requests to the database 
that return lists of  EDIFACT and X12 documents that have been handled by B2Bi and display their 
transfer status. 

EDI Tracker provides default searches, and you can also create, launch and save custom searches. 
From any item in the list of search results you can open windows that display details bout various 
characteristics of the document transfers, such as the parent Interchange, references, payloads, etc.

Start EDI Tracker


Screen resolution prerequisite: The information displayed in many of the EDI Tracker screens 
can be very detailed, containing tables with numerous columns. For comfortable viewing, we highly 
recommend that you set your screen resolution to a minimum of 1024 x 768 pixels.

When B2Bi is installed and started and B2Bi Client is also installed, you can open the EDI Tracker.

 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi


[Installation Name] > B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.
 3.  From the tool panel, double-click the EDI Tracker icon.

Work in EDI Tracker


When you open the EDI Tracker user interface, EDI Tracker displays three panes:

 l  Public Searches – Displays searches that are visible to all users of the current B2Bi installation. 
When you first install B2Bi, the EDI Tracker is populated with the following default public 
searches:
 o All entries within last 24 hours
 o All entries within last 5 minutes
 o All entries within last hour
 o Unidentified within last 24 hours
 o Waiting for acknowledgement within last 24 hours

108  Operations Guide B2Bi  2.1


EDI Tracker

 l Private Searches – Displays your own searches, which you have specified as being visible only 
to you.
 l Results – Displays the results of any searches you launch.

From the EDI Tracker main window you can perform the following actions:

 l Use an existing search on page 110
 l Create a new search on page 112
 l Modify a search on page 115
 l View details of search results on page 116
 l View details of message payloads on page 124
 l View the transfer hierarchy on page 125
 l Create and manage custom views on page 126
 l Additional option settings on page 129
 l Refresh search results on page 133
 l Count the number of returned items for a search on page 133
 l Delete a search on page 133
 l Reprocess and resend messages on page 134
 l Manually set a message status to correct on page 134
 l Import and view log archives on page 135  

B2Bi  2.1 Operations Guide  109


11  B2Bi integration engine management tools

Use an existing search


 1.  From either the Public Searches or Private Searches pane, double-click any of the searches 
in the list of searches.
When you first install EDI Tracker it is populated with the following default Public Searches:
 l All entries within last 24 hours
 l All entries within last 5 minutes
 l All entries within last hour
 l Unidentified within last 24 hours
 l Waiting for acknowledgement within last 24 hours
When you double-click the name of any search, EDI Tracker displays the list of documents that 
correspond to the filtering criteria of the search.
If the search returns no documents, a message on the search status bar at the bottom of the 
page indicates that no corresponding items were found.
 2.  By default, for each line entry in the display list, you can see the following columns containing 
information about the document transfer:
 l Date and Time – Date and time of the transfer
 l Interchange ID – Interchange number
 l Document ID – Transaction set control number 

 l Sender ID – Routing ID of the document sender
 l Recipient ID – Routing ID of the document recipient
 l Standard – Document format standard (X12 or EDIFACT)
 l Version – Document version
 l Document – Document type (example: 997)
 l Direction – Inbound or outbound
 l Status – Current status of the document transfer. The transfer can have any of the 
following statuses:
 o OK
 o Error
 o OK, but errors during acknowledgement delivery
 o No acknowledgement received
 o No acknowledgement expected
 o OK, interchange accepted by partner
 o OK, acknowledgement sent to partner
 o Sent to partner

110  Operations Guide B2Bi  2.1


EDI Tracker

 o Interchange rejected by partner
 o Waiting for transfer
 o Waiting for enveloping
 o Waiting for acknowledgement
 o Waiting for outgoing acknowledgement
 o Processing message
To modify your view of search results, see Create and manage custom views on page 
126.
 3.  To view additional details for any entry in the results list, see View details of search results on 
page 116.

B2Bi  2.1 Operations Guide  111


11  B2Bi integration engine management tools

Create a new search


 1.  From the EDI Tracker main window click the New Search icon.
EDI Tracker opens the New Search configuration page.
 2.  Make sure that the General tab is selected.
 3.   Select a date range for the search documents processed within a given period:   
 l Relative range – Use this option to filter for results based on the number of days/ 
hours / minutes /seconds in the past, calculated from the second the search is 
launched.
 l Absolute range – Use this option to filter for results based on specific beginning and 
ending dates
 4.  In the Entry type section, select the entry types to display:
 l Document – Display documents of known document standards
 l Interchange-only – Display interchanges of known document standards that have no 
related documents
 l  Unidentified inbound classifier – Display inbound classifications of unknown 
document standards
 l Unidentified outbound classifier – Display outbound classifications of unknown 
document standards

 l Unidentified input – Display inputs not related to an inbound classification
 5.  In the Acknowledgements section, select how to manage the display of acknowledgements:
 l Exclude (default) – Do not display acknowledgments
 l Include – Display all documents, including acknowledgements
 l Display only – Only display acknowledgements
 6.  In the Default view section, in the View field, from the drop-down list select the initial view 
you want to use for the results of searches. For information about creating custom views, see 
Create and manage custom views on page 126.
 7.  In the Search type section, select an option:
 l Public – Public searches are visible to all users.
 l Private – Private searches are visible only to the user that creates them.
 8.  Select the Filter tab. In this tab you can create filtering criteria for your search results. For 
example you can filter to view only messages from a specific sender or receiver. The following 
attributes are available for filtering:
 l Log ID – Identification of the log in the integration engine
 l Sender ID – Identification of the sender of the transfer
 l Recipient ID – Identification of the recipient of the transfer

112  Operations Guide B2Bi  2.1


EDI Tracker

 l Standard – Document standard. You may select one or more of the displayed 
document standards.
 l Document – Document type (example: 812)
 l Direction – Direction of the transfer (Inbound or Outbound)
 l Status – Status of the transfer:
 o Processing message 
 o OK
 o OK, interchange accepted by partner
 o OK, acknowledgement sent to partner
 o Waiting for transfer
 o Waiting for enveloping
 o Waiting for acknowledgement
 o Waiting for outgoing acknowledgement
 o Error
 o No acknowledgement received
 o No acknowledgement expected
 o Interchange rejected by partner
 o OK, but errors during acknowledgement delivery

 l Interchange ID 
 o For EDIFACT: UNB:0020 (Interchange control reference)
 o For ANSI X12: ISA:13 (Interchange control number)
 l Functional Group ID 
 o For EDIFACT: UNG:0048 (Functional group reference number)
 o For ANSI X12: GS:06 (Group control number)
 l Document ID
 o For EDIFACT: UNH:0062 (Message reference number)
 o For ANSI X12: ST:02 (Transaction set control number)
 l Sender name – Name of the sender of the transfer
 l Receiver Name – Name of the receiver of the transfer
 l Agreement – Name of the agreement for the transfer
 l Document Service – Name of the document service used for the transfer
 l Document Agreement – Name of the document agreement used for the transfer
 l Pickup Core ID – Identification of the trading engine pickup used for the transfer
 l Warning – Messages tagged as warnings
 l Resent – Messages tagged as "resent"

B2Bi  2.1 Operations Guide  113


11  B2Bi integration engine management tools

 l Reprocessed – The Reprocessed flag is set for the original (parent) message that has 
been reprocessed.
 l Is reprocessed – The Is Reprocessed flag is set for the (child) message that is the 
result of reprocessing, as it will lead to a duplicate set of documents in the Message Log 
from its parent.
 l Flag – All flagged searches
 9.  Select the User fields tab. In this tab you can create filtering criteria for your search results 
based on user-defined tags and values. Select how to manage the effect of the filter:
 l Exclusive – Optionally define a tag and value to use as filtering criteria. Records are 
excluded from the search results if the tag exists for the record AND the value is correct.
 l Inclusive – Optionally define a tag and value to use as filtering criteria. Records are 
included in the search results only if the tag exists for the record AND the value is 
correct.
 l New – Add a new tag/value pair.
 l Open – Open an existing tag/value pair for editing.
 l Delete – Delete an existing tag/value pair.
 10.  Click Save.
EDI Tracker adds the search to the list of searches in the Favorite searches pane. You can 
now use the search to view filtered results of document exchanges. SeeUse an existing search 
on page 110

114  Operations Guide B2Bi  2.1


EDI Tracker

Modify a search
 1.  From the EDI Tracker main window click on a seach to select it, then click the Edit Search... 
icon.
Alternatively, you can right-click a search and then select Edit... from the context menu.
EDI Tracker opens the  c onfiguration page for the selected search. For a description of the 
available fields and options, see Create a new search on page 112.
 2.  Modify the fields and options as required.
 3.  Click Save.
EDI Tracker modifies the search with your new settings.

B2Bi  2.1 Operations Guide  115


11  B2Bi integration engine management tools

View details of search results


After you execute a search that returns a list of results, you can double-click any item of the results 
list to view details of that document transfer.

Alternatively you can right-click an item in the list and select Open... from the context menu.

EDI Tracker opens a detail page for that item. The details displayed in the page vary depending on 
the protocol and transfer type (send / recieve / acknowledgement).

Example: Outbound X12 document transfer


The following is an example of a detail page for an outbound X12 document transfer.

Field descriptions: Outbound X12 document transfer example:

Field Description

General

Date and time  Date and time of the transfer.

Log ID Internal log ID of the transfer.

116  Operations Guide B2Bi  2.1


EDI Tracker

Field Description

Type Transfer type (direction and protocol).

Status Current status of the transfer:
 l OK
 l Error
 l OK, but errors during acknowledgement delivery
 l No acknowledgement received
 l No acknowledgement expected
 l OK, interchange accepted by partner
 l OK, acknowledgement sent to partner
 l Interchange rejected by partner
 l Waiting for transfer
 l Waiting for enveloping
 l Waiting for acknowledgement
 l Waiting for outgoing acknowledgement
 l Processing message

Agreement Name of the agreement that handles this transfer.

Document service Name of the document service that specifies the processing of this transfer.

Document  Name of the document agreement that specifies the processing of this transfer.
Agreement

Pickup core ID CoreID value for the message, assigned when the message was consumed by the 
pickup.

Consumption  The original date and time when the message is consumed by the B2Bi core.
timestamp

Sender

ID ISA I06 and I05 5, colon-separated

Application code GS 142  Sender application code

Name Friendly name of the sending partner or community, as defined in the 
B2Bi/Interchange UI.

B2Bi  2.1 Operations Guide  117


11  B2Bi integration engine management tools

Field Description

Recipient

ID ISA I07 and I05 7, colon-separated

Application code GS 124   Recipient application code   

Name Friendly name of the receiving partner or community, as defined in the 
B2Bi/Interchange UI.

Payloads

Interchange Characteristics of the X12 interchange. Select a display format and then click View 
to see a detail window of the interchange structure.

Functional group Characteristics of the X12 functional group. Select a display format and then click 
View to see a detail window of the functional group structure.

Document Characteristics of the X12 document.  Select a display format and then click View to 
see a detail window of the document structure.

Acknowledgement Characteristics of the X12 acknowledgement.  Select a display format and then click 
View to see a detail window of the acknowledgement structure.

Received The file that was received that either contained the document (Inbound), or the file 
that was received, and then mapped into a document. Select a display format and 
then click View to see a detail window of the document structure.

Sent The file that was sent. Select a display format and then click View to see a detail 
window of the document structure.

References

Document type ST 143

Version GS 480

Functional  GS 28
identifier code

Interchange  ISA I12
control number

Group control   
count

118  Operations Guide B2Bi  2.1


EDI Tracker

Field Description

Functional group  GS 479
control number

Transaction set  SE 02 
control number

User data 1 Optional user-defined information associated with the transfer.

User data 2 Optional user-defined information associated with the transfer.

Transfers

Received Date and time of the document was received.

Description Information about the reception.

Sent Date and time of the document was sent.

Description Information about the send.

Acknowledgement

Date and time Date and time the acknowledgement was sent.

Log ID Internal log ID of the acknowledgement.

Type Message standard and direction of the transfer.

Status Status of the acknowledgement.

Errors

Errors Displays errors logged during document exchange processing.

B2Bi  2.1 Operations Guide  119


11  B2Bi integration engine management tools

Example: Inbound EDIFACT document transfer


The following is an example of a detail page for an EDIFACT document transfer with 
acknowledgment.

Field descriptions: Inbound EDIFACT document transfer example:

Field Description

General

Date and time  Date and time of the transfer.

Log ID Internal log ID of the transfer.

120  Operations Guide B2Bi  2.1


EDI Tracker

Field Description

Type Transfer type (direction and protocol).

Status Current status of the transfer.
 l OK
 l Error
 l OK, but errors during acknowledgement delivery
 l No acknowledgement received
 l No acknowledgement expected
 l OK, interchange accepted by partner
 l OK, acknowledgement sent to partner
 l Interchange rejected by partner
 l Waiting for transfer
 l Waiting for enveloping
 l Waiting for acknowledgement
 l Waiting for outgoing acknowledgement
 l Processing message

Sender

ID UNB 002 0004 and 0007, colon-separated

Application  UNG 006 0040
identifier

Name Friendly name of the sending partner or community, as defined in the 
B2Bi/Interchange UI.

Recipient

ID UNB 003 0010 and 0007, colon-separated

Application code UNG 007 0044   

Name Friendly name of the receiving partner or community, as defined in the 
B2Bi/Interchange UI.

Payloads

B2Bi  2.1 Operations Guide  121


11  B2Bi integration engine management tools

Field Description

Interchange Characteristics of the EDIFACT interchange. Select a display format and then click 
View to see a detail window of the interchange structure.

Functional group Characteristics of the EDIFACT functional group. Select a display format and then 
click View to see a detail window of the functional group structure.

Document Characteristics of the EDIFACT document.  Select a display format and then click 
View to see a detail window of the document structure.

Acknowledgement Characteristics of the EDIFACT acknowledgement.  Select a display format and then 
click View to see a detail window of the acknowledgement structure.

Received Characteristics of the file that was received that either contained the document 
(Inbound), or the file that was received, and then mapped into a document.  Select a 
display format and then click View to see a detail window of the document 
structure.

Sent Characteristics of the file that was sent. Select a display format and then click View 
to see a detail window of the document structure.

References

Document type UNH 009 0065

Version UNH 009 0052 and 0054 concatenated

Functional group  UNG 0048
identifier

Interchange  UNB 0020
control reference

Functional group  UNG 0038
reference

Message reference  UNH 0062
number

User data 1 Optional user-defined information associated with the transfer.

User data 2 Optional user-defined information associated with the transfer.

Transfers

122  Operations Guide B2Bi  2.1


EDI Tracker

Field Description

Received Date and time of the document was received.

Description Information about the reception.

Sent Date and time of the document was sent.

Description Information about the send.

Acknowledgement

Date and time Date and time the acknowledgement was sent.

Log ID Internal log ID of the acknowledgement.

Type Message standard and direction of the transfer.

Status Status of the acknowledgement.

Errors

Errors Displays errors logged during document exchange processing.

B2Bi  2.1 Operations Guide  123


11  B2Bi integration engine management tools

View details of message payloads


EDI Tracker includes native viewers that enable you to view the content of the payloads that are 
included in your message exchanges.

It can also call applications on client machines for viewing files.

To open a view of a payload:

 1.  From the search results page double click a search result item to open the details page for that 
item
 2.  In the Payloads section of the detail page, locate the payload you want to view, and from the 
drop-down list, select the viewer to use on the payload you have selected. You can select from 
the following viewers:
 l ISO8859_1 – Latin Alphabet No. 1 character encoding
 l EDCBIC – Extended Binary Coded Decimal Interchange Code character encoding
 l Hexadecimal - Hexadecimal character encoding
 l EDI – EDI character set encoding
 l XML client – Opens opens the program associated with the .xml extension on your 
client machine.
 l Txt client – Opens the program associated with the .txt extension on your client 
machine.

 l Custom client – Opens the program on your client machine that is associated with the 
extension defined by the environment variable B2BI_USER_VIEWER_EXTENSION on 
the server. For example, defining that environment variable as “.1st” will open 
WordPad if it is installed on the client.
Note: The preferred way to assign a custom client extension is to use System Profile 
Manager. In the Environment/Miscellaneous tab, use the field “User view extension”. 
See Miscellaneous settings on page 225.
 3.  After you select a viewer type, click View to open the payload in the selected viewer.
EDI Tracker displays the payload content and a set of tools.
 4.  For the first four viewer types in the list above, you can use the following icon tools to view and 
save the payload view:

Icon Name Description

Find Opens the search tool for the payload view. Use this tool to locate 
specific character strings in the viewer. 
You can optionally search using case matching. You can choose to 
search upwards or downwards through the display.

124  Operations Guide B2Bi  2.1


EDI Tracker

Icon Name Description

Go To Opens a tool that enables you to navigate to a specific line of the 
displayed payload.

Save As Opens the Save As dialog for saving to the machine where the EDI 
tracker is installed.

Save As  Opens the Save As dialog for saving to your local machine.
To Client

First  Navigate to the first section display.
Section

Previous  Navigate to the preceding section display.
Section

Next  Navigate to the next section display.
Section

Last  Navigate to the last section display.
Section

View the transfer hierarchy


To view the hierarchy of events for a transfer from receipt to sending:

 1.  From a search results list, select the message for which you want to view the hierarchy.
 2.  From the menu bar, select File > View hierarchy .

Alternatively, you can right-click the message entry in the list and then select View hierarchy... 
from the context menu.

B2Bi  2.1 Operations Guide  125


11  B2Bi integration engine management tools

Create and manage custom views


The View menu, located on the menu bar, enables you to select the way search results are 
displayed.

After you launch a search, you can use the default view to display results, or you can create custom 
views that display the columns of your choice. 

For searches that return large numbers of results, the View menu also has commands that enable 
you to display results by paging through sections. To set the size of a section, see Set the batch size 
option on page 129.

This chapter describes the following tasks that you can perform to manage views:

 l Create a custom view on page 126
 l Use a custom view on page 127
 l Edit a custom view on page 128
 l Delete a custom view on page 128
 l Associate a view with a search on page 128

Create a custom view


To create a custom view:

 1.  From the menu bar, select Settings > User Defined Views to open the Define View page.


The first page you see displays a list of any custom views that you or other users have created.
 2.  Click New to open the new view editing page.
 3.  Enter a name for the view. This is the name that will be displayed for selection in the View 
menu.
 4.  Use the Enable and Disable control buttons to select the fields you want to display in this 
custom view. Fields that appear in the Disabled pane will not be displayed in the custom view. 
Fields that appear in the Enabled pane will be displayed in the custom view.
Initially the following fields are selected by default for display in your custom view. You can add 
or subtract from this list:
 l Date and time
 l Sender ID
 l Recipient ID
 l Status

126  Operations Guide B2Bi  2.1


EDI Tracker

The following items are the complete list of columns you can select to define your custom view:
 l Date and Time*
 l Sender ID*
 l Recipient ID*
 l Status*
 l Interchange ID*
 l Document ID*
 l Standard*
 l Version*
 l Document*
 l Direction*
 l Log ID
 l User Data 1
 l User Data 2
 l Sender Name
 l Recipient Name
 l Group ID (functional group ID)
 l Agreement

 l Document Service
 l Document Agreement
 l Pickup Core ID
 l Resent
 l Reprocessed
 l Is Reprocessed
* = Items displayed in the view labeled Default, and used if you do not create and select 
a custom view.
 5.  Use the Move Up and Move Down control buttons to arrange the order of columns to be 
displayed in your custom view. The top items in the list will be the columns that are displayed 
farthest to the left in your custom view.
 6.  Click OK to save the custom view.
The view is now visible for selection from the View menu.

Use a custom view


To use a custom view that you have created, on the menu bar click View and then select the name 
of the custom view from the list of available views.

B2Bi  2.1 Operations Guide  127


11  B2Bi integration engine management tools

Edit a custom view


To edit a custom view:

 1.  From the menu bar, select Settings > User Defined Views to open the Define View page.


The page displays a list of all available custom views.
 2.  Click the name of a view to select it.
 3.  Click Edit to open the editing page for the selected view.
 4.  Use the Enable and Disable control buttons to select the fields you want to display in this 
view. 
 5.  Use the Move Up and Move Down control buttons to arrange the order of columns to be 
displayed in your custom view. The top items in the list will be the columns that are displayed 
farthest to the right in your custom view.
 6.  Click OK to save your modifications to this view.
The modified view is now visible when you open it from the View menu.

Delete a custom view


To delete a custom view:

 1.  From the menu bar, select Settings > User Defined Views to open the Define View page.

The page displays a list of all available custom views.
 2.  Click the name of the view you want to delete to select it.
 3.  Click Delete.
The view is deleted and removed from the list of available views in the View menu.

Associate a view with a search


When you create or edit a search you can select which view to use as the initial view for the search.

 1.  Do one of the following:
 l Click the New Search icon to open the new search editing page.
 l From the Public Searches or Private Searches lists, select an existing search, then 
click the Edit Search icon to open the editing page for the selected search.
 2.  In the Default view section, in the View field, use the drop down list to select the initial view 
you want to use for the search.
 3.  Click Apply, Save and Close.

128  Operations Guide B2Bi  2.1


EDI Tracker

Additional option settings


Use the settings that are available in the Options page to control the behavior and display of EDI 
Tracker.

Open the Options page


To open the Options page, do one of the following:

 l On the icon bar of the main page, click the Options icon.
 l From the menu bar, select Settings > Options.

Options page organization


When you open the Options page, three tabs are displayed:

 l Memory – Use this tab to control the number and display of batch request entires.
 l Log Date – Use this tab to set the date display format for search result items.
 l Statusbar Date – Use this tab to set the date display format on the status EDI Tracker bar.

Memory tab settings

Set the batch size option


Records are read in batches. A large number of records can block the logger when it processes a 
search request, and can cause delays in other B2Bi processes. You can use the batch size option to 
tune the performance of your logging displays. This option restricts the number of records 
requested from a logger in each batch. 

We recommend a batch size of 100, as a starting point when you have a large number of messages. 

Note: This does not restrict the number of records that are returned and displayed in the EDI 
Tracker list. It is a way of tuning the request processing.

To set the batch size option

 1.  Click the Options icon on the tool bar.
EDI Tracker displays the Options window.
 2.  Select the Memory tab.
 3.  In the Batch request entries count field, enter a batch size value. 
 4.  Click OK.

B2Bi  2.1 Operations Guide  129


11  B2Bi integration engine management tools

Set the number of entries displayed per section


You can manage the maximum number of search result entries you see at a single time on the results 
page. To do this you set a value for the Entries per section attribute. For search results with a 
large number of entries, this causes the entries to be separated into separate sections. You can then 
use the section navigation tools to page forwards and backwards between different sections of 
entries.

 1.  Click the Options icon on the tool bar.
EDI Tracker displays the Options window.
 2.  Select the Memory tab.
 3.  Enter a new value in the Entries per section field.  Enter the number of entries per section you 
want to view in the search results. This specifies the number entries you view per section 
(page). In your view you can use the section tools to page through the sections of entries.
 4.  Click OK.

Use the section navigation tools


If your search results display a number of entries that exceed the Entries per section setting in the 
Memory tab, the sections navigation tools are activated in the user interface. 

There are two ways to use these navigation tools:

 l Use the icon bar

Icon Icon name Use

First Section Go to first section of display items

Next Section Go to the next section of display items

Previous Section Go to the preceding section of display items

Last Section Go to the last page of display items

 l Use the menu bar commands
On the menu bar click View and then from the drop-down menu select a command:
 o First Section – Go to first section of display items.
 o Next Section – Go to the next section of display items.
 o Previous Section – Go to the preceding section of display items.
 o Last Section – Go to the last page of display items.

130  Operations Guide B2Bi  2.1


EDI Tracker

Log Date tab settings


When EDI Tracker returns search results, for each item in the search results list, it displays the date 
and time the entry was logged. Use the Log Date tab to set the date and time format you want to be 
displayed in search results.

Set the Log Date display format


 1.  Click the Options icon on the tool bar.
EDI Tracker displays the Options window.
 2.  Select the Long Date tab.
 3.  From the list of format options, select a format:
 l Long format 24 hour – (default) Example: 2013-05-13 18:55:57.26
 l Long format, AM/PM – Example: 2013-05-13 06:55:57.26 PM
 l Short format 24 hour – Example: 2013-05-13 18:55:57.26
 l Short format, AM/PM – Example: 2013-05-13 06:55:57.26 PM
 l User defined – If you select this option, enter the date format that you want to use in 
the formatting field. in the Example: %Y-%m-%d %H:%M:%S.% yields the format 2013-
05-13 18:55:57.26.

 4.  Click OK.

Statusbar Date tab settings


The status bar of the EDI Tracker main page displays the current date and time of the server to which 
it is currently attached. Use the Statusbar Date tab to set the date and time format you want to be 
displayed on the main page status bar.

Set the Statusbar Date display format


 1.  Click the Options icon on the tool bar.
EDI Tracker displays the Options window.
 2.  Select the Statusbar Date tab.
 3.  From the list of format options, select a format:
 l Long format 24 hour – (default) Example: Mon May 13 19:05
 l Long format, AM/PM – Example: Mon May 13 07:05 PM
 l Short format 24 hour – Example: 2013-05-13 19:05
 l Short format, AM/PM – Example: 2013-05-13 07:05 PM

B2Bi  2.1 Operations Guide  131


11  B2Bi integration engine management tools

 l User defined – If you select this option, enter the date format that you want to use in 
the formatting field. in the Example: %a %B %d %H:%M yields the format Mon May 13
19:05.
 4.  Click OK.

132  Operations Guide B2Bi  2.1


EDI Tracker

Refresh search results


After you launch a search an obtain a list of results that correspond to your search criteria, you can 
refresh the list of results.

This may be useful when your search criteria encompass messages that may currently be in 
processing.

To refresh the list of search results click the Refresh Search icon on the tool bar.

Alternatively, you can right-click the name of the search and then select Refresh from the context 
menu.

EDI Tracker refreshes the display of items that correspond to the search criteria.

Count the number of returned items for a


search
From the EDI Tracker main window click on a search to select it, then click the Count Number of
Hits... icon.

Alternatively, you can right-click a search and then select Count from the context menu.

In a popup window, EDI Tracker displays the number of items that correspond to the search criteria.

Delete a search
From the EDI Tracker main window click on a search to select it, then click the Delete Search... 
icon.

Alternatively, you can right-click a search and then select Delete.... from the context menu.

EDI Tracker deletes the search and removes it from the list of available searches.

B2Bi  2.1 Operations Guide  133


11  B2Bi integration engine management tools

Reprocess and resend messages


You can reprocess or resend individual messages from search results lists.

Reprocess
When you reprocess a message, the integration engine restarts processing at the point where the 
original message was received. All message handling in the integration engine is repeated.

To reprocess a message:

 1.  From a search results list, select the message you want to reprocess.
 2.  From the menu bar, select File > Reprocess message.

Alternatively, you can right-click the message entry in the list and then select Reprocess message
... from the context menu.

Resend
When you resend a message, the integration engine restarts processing at the point where the 
output message was sent. Only the transfer is repeated.

To resend a message:

 1.  From a search results list, select the message you want to resend.
 2.  From the menu bar, select File > Resend message.

Alternatively, you can right-click the message entry in the list and then select Resend message ... 


from the context menu.

Manually set a message status to correct


If a transfer in a list of search results is marked as not completing successfully, you can manually 
override this status and mark the transfer as correct.

 1.  From the list of search results, select the item to correct.
 2.  From the menu bar, select File > Mark as manually corrected.  

Alternatively, you can right-click the item in the list, and then select Mark as manually
corrected… from the context menu.

134  Operations Guide B2Bi  2.1


EDI Tracker

Import and view log archives


From B2Bi 2.0.2 SP1, you can use EDI Tracker to view detailed information about the content of log 
archives that are created and stored by the integration engine.

Use the procedures in this chapter to enable EDI Tracker to display the log entry details contained in 
a log archive.

Terminology
Log archive

A zipped file comprising log archive directories. Log archives are generated by loggers 
according to a specified schedule.

Archive directory

A folder element of a log archive. When you unzip a log archive you unpack one or more 
archive directories. An archive directory contains individual log entries. You cannot view 
these entries without a viewer (EDI Tracker).

Archive instance

An archive directory that has been made available as a instance in EDI Tracker. You add 
one or more archive instances to archive collections for organized viewing.

Archive collection

EDI Tracker archive object that comprises one or more available archive directory 
instances. Archive collections are available for viewing from searches and from the 
View>Run-time menu command.

Task summary
To view log archive content, complete the following tasks:

 1.  Run the installer in configure mode and select the "Enable Online Archive" feature.
 2.  In System Profile Manager, activate log archiving.
 3.  Run B2Bi to trade messages and generate archives.
 4.  Import zipped archives to EDI Tracker.
 5.  In EDI Tracker, create an Archive collection.
 6.  In EDI Tracker, view the details of the archive instance content.

B2Bi  2.1 Operations Guide  135


11  B2Bi integration engine management tools

Step 1: Enable online archive importing and viewing


Before you can import and view archives in EDI Tracker, you must activate the online archive feature 
in the B2Bi product. To do this:

 1.  Stop B2Bi.
 2.  Run the B2Bi installer in configure mode.
 3.  In the B2Bi Server Configuration screen, select the option: Enable Online Archive.
 4.  Complete the configuration session.
 5.  Restart B2Bi.

Step 2: Activate archiving


By default B2Bi does not create archives. you must configure B2Bi to create log archives. For 
information on activating B2Bi archiving, see Use System Profile Manager on page 214 / Logger
config tab.

Step 3: Run B2Bi


In order to have some log archives to view, you must use B2Bi to trade some messages. B2Bi creates 
archives according to the schedule you specify in System Profile. By default, B2Bi stores log archives 
to the folder, B2Bi_shared_data\msglog_archives. The compressed files you see in this folder 
contain the archive files that you can view in EDI Tracker.

Step 4: Import log archives to EDI Tracker


 1.  From the EDI Tracker main menu select File>Archives to display the Archives wizard.
The wizard displays any EDI Tracker Archive objects that you have created and populated for 
viewing. You can add more log directory instances to a EDI Tracker Archive object.
If you don not have any EDI Tracker Archive objects, click New to create one, and then 
continue this procedure.
 2.  To add archive directories as available directory instances, click Archive instances
 3.  EDI Tracker opens the Manage available archive instances page. This page displays any 
archive directories that have already been imported  EDI Tracker.
 4.  To add additional archive directories, click Add from zip file. EDI Tracker opens the Add
archive instance from zip file page.
 5.  By default, the wizard opens the browser to B2Bi_shared_data\msglog_archives. If you 
want to import zipped archive files  that are located in another location, use the Look in field to 
navigate to the correct file.

136  Operations Guide B2Bi  2.1


EDI Tracker

 6.  The browser displays any archive files that you can import. Select the log archive zip files that 
you want to import to EDI Tracker. Then click Select to import them.
 7.  The wizard returns you to the Manage available archive instances page where you can see 
that the new unzipped directories are added as available instances for EDI Tracker Archive 
collections.
 8.  Click OK to complete the import procedure.

Step 5: Create a EDI Tracker Archive collection


 1.  From the EDI Tracker main menu select File>Archives to display the Archives wizard.
The wizard displays any EDI Tracker Archive collections that you have already created . 
 2.  Click New. EDI Tracker displays the New Archive page.
 3.  In the Name field, enter a name for this archive collection. This is the name that is displayed in 
the EDI Tracker UI.
 4.  In the Description field, optionally enter a description of the Archive collection.
 5.  In the Archive instances section, select instances and move them from the Selected
archive instances pane to the Available archive instances pane using the arrow buttons.
 6.  Click OK to close and save.
The new Archive collection is now displayed in the list  o n the Archives page. It is also listed as 
a viewable element from the View>Run-time menu.

Step 6: View archive details


Once you have imported a log archive directory and added it to a EDI Tracker Archive collection, the 
logs of the collection are available for viewing in EDI Tracker, exactly as for the viewing of run-time 
logs

 1.  From the EDI Tracker View menu, select the name of an Archive collection. For example, 
View>Recently_archived_logs. This step makes the selected archive collection the focus of EDI 
Tracker seaches.
 2.  Click a Favorite search to search in the selected archive collection. Any logs that satisfy search 
criteria are displayed.

B2Bi  2.1 Operations Guide  137


11  B2Bi integration engine management tools

File Viewer
Use File Viewer to view low-level log files that are not written to the Trace Viewer. You cannot edit 
the files in the File Viewer, you can only view them. Access is limited to files within the B2Bi 
Integration Engine directory structure.

Start File Viewer and open a file


 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi
[Installation Name]> B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.
 3.  From the tool panel, double-click the File Viewer icon.
 4.  In the selection box that appears, select a layout type for viewing the file and click Open.
 5.  Select the file and click Open.

138  Operations Guide B2Bi  2.1


Integration Manager
To use Integration Manager you need to have a good understanding of how the B2Bi integration 
engine runs and is configured. For detailed information about building message processing 
sequences, see the B2Bi Mapping Services documentation. For information about how to use 
deployed Component Resources in the B2Bi user interface, see the B2Bi Administrator Guide.

Integration Manager enables you to perform the following tasks:

 l Add a project
 l Add an integration
 l Edit an integration
 l Delete an integration
 l Deploy an integration to a runtime server
 l Remove an integration from a runtime server
 l Export a project
 l Import an XIB dataset
 l Modify an XIB dataset
 l Deploy elements of an imported XIB dataset to a B2Bi Server.

Integration engine definitions


The following definitions describe integration engine specific terminology that is related to 
Integration Manager tasks.

Integration

An Integration is a set of processes that enable you to transfer information, in the form of 
messages, from one application to another. 

Integrations handle the transfer of information between a source and a target, both of 
which may be external to the integration engine.  

Activity

Each Integration contains one or more Activities. An Activity always belongs to a single 
Integration. Together, the Activities contained in an Integration define how the integration 
engine transmits messages and how it processes the exchanged information so that it is 
readable by the recipient.

If the Integration that owns an Activity is deleted, the Activity is also deleted.

B2Bi  2.1 Operations Guide  139


11  B2Bi integration engine management tools

Specific activities can refer to corresponding application properties. For example, the 
inbound EDIFACT Activity can use the EDIFACT application property from both the source 
and the target application.

In the integration engine you use the following types of Activity:

 l Classification Activity – Use Classification Activities to direct incoming messages to 
the appropriate Activities for processing. Classification Activities enable the conditional 
processing of incoming messages. A Classification Activity directs incoming messages 
according to defined criteria. A message that meets the criteria is passed on for 
processing to a subsequent Activity, even to an Activity in another integration.
A classification activity can only be attached to a Classification Anchor Activity.
 l Classification Anchor Activity – A Classification Anchor is the parent activity for a 
number of Classification Activities. A Classification Anchor Activity must be followed by at 
least one Classification Activity.
Incoming messages are evaluated to determine if they meet the classification criteria 
defined in the Activities. This evaluation is typically performed sequentially in the order 
that the Activities are attached to the anchor, until the message meets the criteria of a 
Classification Activity, in which case it is passed on for further processing.
If the broadcast function is used, the evaluation is performed in the same way, but the 
message is passed on for further processing by all Classification Activities where the 
criteria are valid.
 l B2Bi Entrypoint Activity – Serves as a Service entry point in B2Bi message-processing 
sequences.  
 l B2Bi Exitpoint Activity – Serves as a Service exit point in B2Bi message-processing 
sequences. 
 l Sequential Activity – Acts on information that is flowing between applications. For 
example, a message is received through an FTP communication connector, is then 
converted to another format, such as an in-house file, and is then sent on using an email 
communication connector. The Sequential Activity, in this case, is the conversion to 
another format.
 l Inbound EDIFACT Activity – Defines how the incoming EDIFACT message is broken 
down from interchanges into functional groups and documents. The documents can 
then be converted into other formats. Acknowledgment of receipt of a message can also 
be configured.
 l Outbound EDIFACT Activity – Defines how an outgoing EDIFACT message is 
converted, assembled into documents, functional groups, and interchanges, and sent to 
the recipient. Handling of an acknowledgment of receipt from the recipient is also 
configured.
 l  Inbound X12 Activity – Defines how the incoming X12 message is broken down from 
interchanges into functional groups and documents. The documents can then be 
converted into other formats. Acknowledgment of receipt of a message can also be 
configured.

140  Operations Guide B2Bi  2.1


Integration Manager

 l Outbound X12 Activity – Defines how an outgoing X12 message is converted, 


assembled into documents, functional groups, and interchanges, and sent to the 
recipient. Handling of an acknowledgment of receipt from the recipient is also 
configured.
 l Inbound HL7 Activity – Defines how an incoming HL7 message is handled on 
reception. The documents can then be converted into other formats. Acknowledgment 
of receipt of a message can also be configured.
 l Outbound HL7 Activity – Defines how an outgoing HL7 message is sent to the 
recipient. Handling of an acknowledgment of receipt from the recipient is also 
configured.

Stage

A Stage is a sub-object of an Activity. It is a compiled component that determines how to 
process a set of data. Each Activity can contain several Stages. The processing in a Stage is 
provided by a unit of processing code that can be a Message Builder Component (MBC), or 
a Datamapper map.

Branch

A Branch is a processing route that a functional group, or a document, takes if it meets the 
requirements that you specify, in an Activity.

MBC

A Message Builder Component (MBC) is a utility program written in the Axway-proprietary 
Message Builder language. MBCs  resides on the integration engine. You can select MBCs to 
use in Stages of Activities.  Working in the B2Bi Mapping Services environment, you can 
create your own MBCs that extend the standard functions of the integration engine.

Relationship with the B2Bi interface


Each Integration that you create must have at least one B2Bi Entrypoint Activity. It can have 0-to-n 
B2Bi Exitpoint Activities. After you create and deploy an Integration:

 l The B2Bi Entrypoint is available in the B2Bi UI in the Component configuration page drop-down 
list. You can add the Integration by selecting its B2Bi Entrypoint. When you configure the 
Component that uses the Integration, you can define the Integration as one of the following 
types:
 o Document
 o Map
 o Post-enveloping.
 l The Integration's B2Bi Exitpoints (if any are specified) are  represented as Outputs for 
Components that are used by the Integration.
 l After you configure an Integration's B2Bi Entrypoint as a Component in the B2Bi UI, you can use 
the Integration in Services and Metadata Services (as any other Component). 

B2Bi  2.1 Operations Guide  141


11  B2Bi integration engine management tools

 l You can manage deployed HMEs in the System Profile Manager tool. See Use System Profile 
Manager on page 214.

142  Operations Guide B2Bi  2.1


Integration Manager

Start Integration Manager

Prerequisites
 l B2Bi Server, B2Bi Client and B2Bi Integration Engine tools are installed.
 l The "Enable Integration Manager" option is selected during B2Bi Server installation (advanced 
mode). If you did not select the option during installation, you can run the installer in configure 
mode and activate the option.

Start procedure
 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi
[Installation Name] > B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.
 3.  From the tool panel, double-click the Integration Manager icon.

B2Bi  2.1 Operations Guide  143


11  B2Bi integration engine management tools

Add a Project

About Projects
In Integration Manager, a Project is a collection of integration-related objects that can be edited, 
exported and deployed together. A Project is represented in Integration Manager as a directory tree 
structure. You can create and manage multiple Projects in Integration Manager.

This topic describes the creation of a standard project. For the procedure to create a migration 
project to manage a dataset that is imported from the XIB product, see Add an XIB migration project 
on page 172.

Procedure
 1.  In the Integration Manager interface, in the left panel, make sure the Configuration Browser 
tab is selected.
 2.  From the menu bar, select File > New > Project....
 3.  In the New Project wizard screen complete the fields:
 l Name: Enter a name for the project. This is the name that is displayed on the parent 
Project folder in the Integration Manger directory structure.

 l Enable Migration Features – This option is only displayed if you have activated XIB 


migration features for Integration Manager. For details see Enable XIB migration on 
page 171. 
 l Description – Optionally add text to describe the project.
 4.  Complete the fields:
 l Name – Enter a name for the Integration you are creating
 l Enable – Select this option to enable the Integration after deploying it. If you want to 
proceed with the definition of the integration but cannot, for some reason, complete all 
the information required, do not select Enable (otherwise, the wizard will ask you to fill 
in missing information.) You can complete the required information later.
 l Description – Optionally enter a description of the Integration
 l Advanced – Use the functions of the Advanced tab to set the priority of the Integration 
 5.  Click Next.
 6.  On the Sentinel page, select a Sentinel logging setting:
 l Log all events
 l Log user-defined and erroneous events
 l Log user defined events only
 7.  Click Next.

144  Operations Guide B2Bi  2.1


Integration Manager

 8.  On the Activities page click New.
Select the new Activity type to add from the list. When you select an Activity type, the 
Integration Manager opens additional pages that enable you to configure the Activity. 
Configuration pages vary depending on the Activity type. Follow the links below for 
descriptions of how to configure each Activity:
 l Configure an Entrypoint Activity on page 148
 l Configure an Exitpoint Activity on page 149
 l Configure a Classification Anchor Activity on page 150
 l Configure a Classification Activity on page 151
 l Configure an EDIFACT Inbound Activity on page 152
 l Use the EDIFACT Inbound Activity Wizard  on page 153
 l Configure an EDIFACT Outbound Activity on page 155
 l Configure an HL7 Inbound Activity on page 156
 l Configure an HL7 Outbound Activity on page 157
 l Configure an X12 Inbound Activity on page 158
 l Configure an X12 Outbound Activity on page 159
 l Configure a Sequential Activity on page 160
 9.  After you add Activities, the list of Activities in the Integration is displayed in the New 
Integration wizard. If everything is correct, click Finish to save the Integration. The Integration 
is saved only in the current user transaction database. Before you can use the Integration you 
must deploy it to a run-time server.

B2Bi  2.1 Operations Guide  145


Add an Integration
To add a new integration:

 1.  In the Integration Manager interface, in the left panel, make sure the Configuration Browser 


tab is selected.
 2.  In the left panel, right-click an Integrations folder in a Project, and from the context menu, 
select New>Integration.
The New Integration wizard is displayed. 
 3.  Complete the fields:
 l Name – Enter a name for the Integration you are creating
 l Enable – Select this option to enable the Integration after deploying it. If you want to 
proceed with the definition of the integration but cannot, for some reason, complete all 
the information required, do not select Enable (otherwise, the wizard will ask you to fill 
in missing information.) You can complete the required information later.
 l Description – Optionally enter a description of the Integration
 l Advanced – Use the functions of the Advanced tab to set the priority of the Integration 
 4.  Click Next.
 5.  On the Sentinel page, select a Sentinel logging setting:
 l Log all events

 l Log user-defined and erroneous events


 l Log user defined events only
 6.  Click Next.
 7.  On the Activities page click New.
Select the new Activity type to add from the list. When you select an Activity type, the 
Integration Manager opens additional pages that enable you to configure the Activity. 
Configuration pages vary depending on the Activity type. Follow the links below for 
descriptions of how to configure each Activity:
 l Configure an Entrypoint Activity on page 148
 l Configure an Exitpoint Activity on page 149
 l Configure a Classification Anchor Activity on page 150
 l Configure a Classification Activity on page 151
 l Configure an EDIFACT Inbound Activity on page 152
 l Use the EDIFACT Inbound Activity Wizard  on page 153
 l Configure an EDIFACT Outbound Activity on page 155
 l Configure an HL7 Inbound Activity on page 156
 l Configure an HL7 Outbound Activity on page 157

B2Bi  2.1 Operations Guide  146


11  B2Bi integration engine management tools

 l Configure an X12 Inbound Activity on page 158
 l Configure an X12 Outbound Activity on page 159
 l Configure a Sequential Activity on page 160
 8.  After you add Activities, the list of Activities in the Integration is displayed in the New 
Integration wizard. If everything is correct, click Finish to save the Integration. The Integration 
is saved only in the current user transaction database. Before you can use the Integration you 
must deploy it to a run-time server.

147  Operations Guide B2Bi  2.1


Integration Manager

Configure an Entrypoint Activity


 1.  Select the General tab.
 l Name – Enter a name for the Activity or accept the default.
 l Description – Optionally enter a description of the Activity.
 l Enable –  Select this option to enable the Activity. If you want to proceed with the 
definition of the Activity but cannot, for some reason, complete all the information 
required, do not select Enable (otherwise, the wizard will ask you to fill in missing 
information.) You can complete the required information later.
 l Next Activity – To select a next Activity for the Integration sequence, click Browse 
and select an Activity from the list.
 2.  Click OK to save and close, or Cancel to close without saving.

B2Bi  2.1 Operations Guide  148


11  B2Bi integration engine management tools

Configure an Exitpoint Activity


 1.  Select the General tab.
 l Name – Enter a name for the Activity or accept the default.
 l Description – Optionally enter a description of the Activity.
 l Enable –  Select this option to enable the Activity. If you want to proceed with the 
definition of the Activity but cannot, for some reason, complete all the information 
required, do not select Enable (otherwise, the wizard will ask you to fill in missing 
information.) You can complete the required information later.
 2.  Click OK to save and close, or Cancel to close without saving.

149  Operations Guide B2Bi  2.1


Integration Manager

Configure a Classification Anchor Activity


To configure a classification anchor activity:

 1.  Select the General tab.
 l Enter a Name and, if required, a Description and select Enable.
 l If the Hierch Messaging Task field is blank, select a hierarchical messaging task, 
using the Browse tool.
 2.  Select the Configuration tab. 
 l Broadcast – Select this option if you want all inbound messages to be evaluated and 
then processed by all the matching Classification Activities.
 l Classification Order – The classification order is the order in which the Classification 
Activities associated with the anchor are evaluated. Change this order by using the 
Move Up and Move Down buttons. 
 When you first configure the Classification Anchor Activity it is empty. You need to 
create Classification Activities that are associated with this anchor and then edit the 
anchor to change the processing order of the Classification Activities. You can only 
change the execution order if you have different types of Activities (for example XML 
classification, EDI classification, and so on). You can change the order of when the 
different classification types are evaluated. For example, all you file content 
classification can be done before EDI classification. If you have the same type of 
classification, the evaluation order is:
 a.  The classification containing most criteria.
 b.  If the classifications have the same number of criteria, the classification with 
the first criteria field filled out.
 3.  Select the Sentinel tab and, select a Sentinel logging setting:
 l Log all events
 l Log user-defined and erroneous events
 l Log user defined events only
 4.  Click OK to save and close, or Cancel to close without saving.

B2Bi  2.1 Operations Guide  150


11  B2Bi integration engine management tools

Configure a Classification Activity


To configure a Classification Activity:

 1.  Select the General tab.
 l Name – Enter a name for the Activity or accept the default.
 l Description – Optionally enter a description of the Activity.
 l Enable –  Select this option to enable the Activity. If you want to proceed with the 
definition of the Activity but cannot, for some reason, complete all the information 
required, do not select Enable (otherwise, the wizard will ask you to fill in missing 
information.) You can complete the required information later.
 l Next Activity – To select a next Activity for the Integration sequence, click Browse 
and select an Activity from the list.
 2.  Select the Configuration tab. 
 l Classification Anchor – Each Classification Activity has to be attached to a 
Classification Anchor Activity. Click Browse to select a Classification Anchor Activiy.
 l Classifier MBC – A Classifier Activity uses an MBC (Message Builder Component) to 
perform classification filtering. Click Browse to select a classifier MBC.
Depending on the classifier MBC you select, you may have additional classification 
criteria options for the consumed file.

 3.  Click OK to save and close, or Cancel to close without saving.

151  Operations Guide B2Bi  2.1


Integration Manager

Configure an EDIFACT Inbound Activity


To configure an EDIFACT Inbound Activity:

 1.  Select the General tab.
 l Name – Enter a name for the Activity or accept the default.
 l Description – Optionally enter a description of the Activity.
 l Enable –  Select this option to enable the Activity. If you want to proceed with the 
definition of the Activity but cannot, for some reason, complete all the information 
required, do not select Enable (otherwise, the wizard will ask you to fill in missing 
information.) You can complete the required information later.
 l Hierarchical Messaging Task – Select a Hierarchical Messaging Task, using the 
Browse tool. 
 2.  Select the Branches tab. 
 1.  To add a criteria-based processing Branch to the Activity, select a node of the Interchange 
processing tree, and click New.
In the Branch General tab:
 l Name - Enter a name for the Branch.
 l Description – Optionally enter a description of the Branch.
 2.  in the Branch Criteria tab, use the fields to set the EDIFACT message attributes and values 
that serve as filtering criteria to initialize the branch processing.
 3.  In the Branch Stages tab: 
 a.  Click New to open the Select MBC page.
 b.  Navigate in the folder directories and select the MBC that provides processing for the 
Branch.
 c.  Complete the fields in the dialog panel. The content of the dialog panel depends on 
the MBC you selected in the previous step.
 d.  Click OK.
 3.  On the Sentinel page, select a Sentinel logging setting:
 l Log all events
 l Log user-defined and erroneous events
 l Log user defined events only
 4.  Click Finish to save and close, or Cancel to close without saving.

B2Bi  2.1 Operations Guide  152


11  B2Bi integration engine management tools

Use the EDIFACT Inbound Activity Wizard


Use the Inbound Activity Wizard to accelerate the definition of EDIFACT Inbound Activities in an 
Integration. The Wizard is sufficient for most Inbound Activity definitions. You can then use the 
manual method to modify the Activity, for example to add more Stages.

 1.  Complete the fields on the first page:
 l Name – Enter a name for the Inbound Activity. The name you enter here is used to 
reference the Inbound Activity throughout Integration Manager.
 l Analyze acknowledgements – Select this option if you want the integration engine 
to analyze acknowledgments.
This only applies when you are sending EDIFACT messages, and defines what will 
happen to acknowledgments received from the target application.
If you select this option, the integration engine sends the acknowledgment to the 
application, and displays the acknowledgement in Message Log.
 l Manage Functional Groups – Select this option if the Interchange contains 
Functional Groups.
An Interchange can contain functional groups, each of which contains documents. The 
integration engine can then process each functional group in a different way before 
distributing them.
Alternatively, the interchange can contain documents directly, which limits further 
processing.
 l Generate acknowledgement – Select this option if you want to generate an 
acknowledgment.
If you select this option, the integration engine sends an acknowledgment to the sender 
of the Interchange.
 2.  Click Next.
 3.  On the Configure Sentinel page, select a Sentinel logging setting:
 l Log all events
 l Log user-defined and erroneous events
 l Log user defined events only
 4.  Click Next.
 5.  In the Functional Group Branch configuration page, complete the fields:
 l Name - Enter a name for the Functional Group Branch. 
 l Description – Optionally enter a description of the Branch. 
 l In the Branch Criteria section, use the fields to set the EDIFACT message attributes and 
values that serve as filtering criteria to initialize the Branch processing.
 6.  Click Next.

153  Operations Guide B2Bi  2.1


Integration Manager

 7.  In the Document Branch configuration page:
 l Name - Enter a name for the Document Branch. 
 l Description – Optionally enter a description of the Branch. 
 l In the Branch Criteria section, use the fields to set the EDIFACT message attributes and 
values that serve as filtering criteria to initialize the Branch processing.
 l Converter – Click Browse to select a converter component.
 8.  Click Next.
The wizard asks you if you:
 l Want to add a new Functional Group Branch
 l Want to add a new Document Branch
 l Are done
Make a selection and click Next.
When you are done adding Branches, the wizard displays an EDIFACT Activity summary page.
 9.  If you are satisfied with the Activity structure, click Finish to save and quit the wizard.

B2Bi  2.1 Operations Guide  154


11  B2Bi integration engine management tools

Configure an EDIFACT Outbound Activity


To configure an EDIFACT Outbound Activity:

 1.  Select the General tab.
 l Name – Enter a name for the Activity or accept the default.
 l Description – Optionally enter a description of the Activity.
 l Enable –  Select this option to enable the Activity. If you want to proceed with the 
definition of the Activity but cannot, for some reason, complete all the information 
required, do not select Enable (otherwise, the wizard will ask you to fill in missing 
information.) You can complete the required information later.
 l Hierarchical Messaging Task – Select a Hierarchical Messaging Task, using the 
Browse tool. 
 2.  Select the Stages tab. 
 a.  Click New to open the Select MBC page.
 b.  Navigate in the folder directories and select the MBC that provides processing for the 
Stage.
 c.  Complete the fields in the MBC dialog panel. The content of the dialog panel depends on 
the MBC you selected in the previous step.
 d.  Repeat this procedure until you have the necessary MBCs configured.

 3.  On the Sentinel tab, select a Sentinel logging setting:
 l Log all events
 l Log user-defined and erroneous events
 l Log user defined events only
 4.  Click OK to save and close, or Cancel to close without saving.

155  Operations Guide B2Bi  2.1


Integration Manager

Configure an HL7 Inbound Activity


To configure an HL7 Inbound Activity:

 1.  Select the General tab.
 l Name – Enter a name for the Activity or accept the default.
 l Description – Optionally enter a description of the Activity.
 l Enable –  Select this option to enable the Activity. If you want to proceed with the 
definition of the Activity but cannot, for some reason, complete all the information 
required, do not select Enable (otherwise, the wizard will ask you to fill in missing 
information.) You can complete the required information later.
 l Hierarchical Messaging Task – Select a Hierarchical Messaging Task, using the 
Browse tool. 
 2.  Select the Branches tab. 
 1.  To add a criteria-based processing Branch to the Activity, select a node of the Interchange 
processing tree, and click New to add a new processing Branch to the tree.
 2.  In the Branch General tab:   
 l Name - Enter a name for the Branch.
 l Description – Optionally enter a description of the Branch.
 3.  in the Branch Criteria tab, use the fields to set the EDIFACT message attributes and values 
that serve as filtering criteria to initialize the branch processing.
 4.  In the Branch Stages tab: 
 a.  Click New to open the Select MBC page.
 b.  Navigate in the folder directories and select the MBC that provides processing for the 
Branch.
 c.  Complete the fields in the dialog panel. The content of the dialog panel depends on 
the MBC you selected in the previous step.
 d.  Click OK.
 3.  Click Finish to save and close, or Cancel to close without saving.

B2Bi  2.1 Operations Guide  156


11  B2Bi integration engine management tools

Configure an HL7 Outbound Activity


To configure an HL7 Outbound Activity:

 1.  Select the General tab.
 l Name – Enter a name for the Activity or accept the default.
 l Description – Optionally enter a description of the Activity.
 l Enable –  Select this option to enable the Activity. If you want to proceed with the 
definition of the Activity but cannot, for some reason, complete all the information 
required, do not select Enable (otherwise, the wizard will ask you to fill in missing 
information.) You can complete the required information later.
 l Hierarchical Messaging Task – Select a Hierarchical Messaging Task, using the 
Browse tool. 
 2.  Select the Stages tab. 
 a.  Click New to open the Select MBC page.
 b.  Navigate in the folder directories and select the MBC that provides processing for the 
Stage.
 c.  Complete the fields in the MBC dialog panel. The content of the dialog panel depends on 
the MBC you selected in the previous step.
 d.  Repeat this procedure until you have the necessary MBCs configured.

 3.  On the Sentinel tab, select a Sentinel logging setting:
 l Log all events
 l Log user-defined and erroneous events
 l Log user defined events only
 4.  Click OK to save and close, or Cancel to close without saving.

157  Operations Guide B2Bi  2.1


Integration Manager

Configure an X12 Inbound Activity


To configure an X12 Inbound Activity:

 1.  Select the General tab.   
 l Name – Enter a name for the Activity or accept the default.
 l Description – Optionally enter a description of the Activity.
 l Enable –  Select this option to enable the Activity. If you want to proceed with the 
definition of the Activity but cannot, for some reason, complete all the information 
required, do not select Enable (otherwise, the wizard will ask you to fill in missing 
information.) You can complete the required information later.
 l Hierarchical Messaging Task – Select a Hierarchical Messaging Task, using the 
Browse tool. 
 2.  Select the Branches tab.   
 1.  To add a criteria-based processing Branch to the Activity, select a node of the Interchange 
processing tree, and click New.
 2.  In the Branch General tab:
 l Name - Enter a name for the Branch.
 l Description – Optionally enter a description of the Branch.
 3.  In the Branch Criteria tab, use the fields to set the X12 message attributes and values that 
serve as filtering criteria to initialize the branch processing.
 4.  In the Branch Stages tab: 
 a.  Click New to open the Select MBC page.
 b.  Navigate in the folder directories and select the MBC that provides processing for the 
Branch.
 c.  Complete the fields in the dialog panel. The content of the dialog panel depends on 
the MBC you selected in the previous step.
 d.  Click OK.
 3.  On the Sentinel page, select a Sentinel logging setting:   
 l Log all events
 l Log user-defined and erroneous events
 l Log user defined events only
 4.  Click Finish to save and close, or Cancel to close without saving.

B2Bi  2.1 Operations Guide  158


11  B2Bi integration engine management tools

Configure an X12 Outbound Activity


To configure an X12 Outbound Activity:

 1.  Select the General tab.
 l Name – Enter a name for the Activity or accept the default.
 l Description – Optionally enter a description of the Activity.
 l Enable –  Select this option to enable the Activity. If you want to proceed with the 
definition of the Activity but cannot, for some reason, complete all the information 
required, do not select Enable (otherwise, the wizard will ask you to fill in missing 
information.) You can complete the required information later.
 l Hierarchical Messaging Task – Select a Hierarchical Messaging Task, using the 
Browse tool. 
 2.  Select the Stages tab. 
 a.  Click New to open the Select MBC page.
 b.  Navigate in the folder directories and select the MBC that provides processing for the 
Stage.
 c.  Complete the fields in the MBC dialog panel. The content of the dialog panel depends on 
the MBC you selected in the previous step.
 d.  Repeat this procedure until you have the necessary MBCs configured.

 3.  On the Sentinel tab, select a Sentinel logging setting:
 l Log all events
 l Log user-defined and erroneous events
 l Log user defined events only
 4.  Click OK to save and close, or Cancel to close without saving.

159  Operations Guide B2Bi  2.1


Integration Manager

Configure a Sequential Activity


To configure a Sequential Activity:

 1.  Select the General tab.
 l Name – Enter a name for the Activity or accept the default.
 l Description – Optionally enter a description of the add some descriptive text.
 l Enable –  Select this option to enable the Activity. If you want to proceed with the 
definition of the Activity but cannot, for some reason, complete all the information 
required, do not select Enable (otherwise, the wizard will ask you to fill in missing 
information.) You can complete the required information later.
 l Hierarchical Messaging Task – Select a Hierarchical Messaging Task, using the 
Browse tool. 
 2.  Select the Stages tab. 
 3.  Click New to open the Select MBC page.
 4.  Navigate in the folder directories and select the MBC or DML Map that provides processing for 
the Activity Stage.
 5.  Complete the fields in the dialog panel. The content of the dialog panel depends on the MBC or 
DML Map you selected in the previous step.
 6.  Click Finish to save and close, or Cancel to close without saving.

B2Bi  2.1 Operations Guide  160


11  B2Bi integration engine management tools

Deploy an Integration
After you create an Integration, in order to use it, you must deploy it to a B2Bi server. 

Before you deploy the Integration, the MBCs that the Integration uses must be registered on the 
target run-time server. If any required MBC is missing, it is not possible to deploy the Integration. 

When deploying to a cluster, deploying to one node deploys the Integration to the cluster. 

The HMEs used by Integrations are deployed with the Integrations, with the following default 
configuration: 1 Processing Engine, 5 sessions.

User rights requirements


You must have two levels of user rights to deploy Integrations to a run-time server:

 l Integration Manager admin rights – As an Integration Manager user you must have Integration 
Manager admin rights. Integration Manager user rights are set in the User Manager tool. see User 
Manager on page 239.
 l Run-time server user access rights – You must have a valid user name and password for access to 
the server where you are deploying the Integration. You must also have Integration deployment 
rights associated with your account. Depending on the server configuration, your user access 
rights may be managed in PassPort or in the B2Bi user interface.

Create a connection to the server


 1.  In the Integrator Manager main page, select the Runtime Server Browser tab.
 2.  On the tab icon bar, click the Add a new server connection... icon.
 3.  Complete the fields:
 l Connection Name – Enter a name for this connection, to be displayed in the 
Integration Manager run-time server list.
 l Host – Enter the fully-qualified domain name or IP address of the B2Bi run-time server. 
 l Port – Enter the B2Bi server access port.
 l UserName – Enter the user name of a valid B2Bi user account on the server.
 l Password – Enter the password for the account on the server.
 l Domain name - If PassPort is the user manager system for the server to which you are 
connecting, enter the PassPort domain of the user.
 4.  To test the server connection using the parameters you have entered, click Test Connection.
 5.  Click OK to create the connection in Integration Manager and close the New Connection page.

161  Operations Guide B2Bi  2.1


Integration Manager

Deploy the Integration


 1.  In the Integration Manager main page, select the Configuration Browser tab.
 2.  In the left pane, right-click the name of the Integration you want to deploy, and from the 
context menu, select Deploy/Update.
Integration Manager opens the Deploy to server page.
 3.  In the Server field, from the drop-down list select the name of the server to which you want to 
deploy the selected Integration.
 4.  Click OK.
 5.  Integration Manager sends the Integration to the selected server.
Note: The server verifies that you have connected with a valid user name and password and 
that you have the right to deploy integrations to the server. If you do not have adequate rights, 
the deployment is rejected.

After you deploy the Integration


Each Integration that you create must have at least one B2Bi Entrypoint Activity. It can have 0-to-n 
B2Bi Exitpoint Activities. After you create and deploy an Integration:

 l The B2Bi Entrypoint is available in the B2Bi UI in the Component configuration page drop-down 
list. You can add the Integration by selecting its B2Bi Entrypoint. When you configure the 
Component that uses the Integration, you can define the Integration as one of the following 
types:
 o Document
 o Map
 o Post-enveloping.
 l The Integration's B2Bi Exitpoints (if any are specified) are  represented as Outputs for 
Components that are used by the Integration.
 l After you configure an Integration's B2Bi Entrypoint as a Component in the B2Bi UI, you can use 
the Integration in Services and Metadata Services (as any other Component). 
 l You can manage deployed HMEs in the System Profile Manager tool. See Use System Profile 
Manager on page 214.

B2Bi  2.1 Operations Guide  162


11  B2Bi integration engine management tools

Update a deployed Integration


After you deploy an Integration from Integration Manager, you may need to deploy an updated 
version of the Integration. The following procedure describes how to do this.

 1.  In the Integration Manager main page, select the Configuration Browser tab.


 2.  In the left pane, right-click the name of the Integration you want to deploy in an updated 
version, and from the context menu, select Deploy/Update.
Integration Manager opens the Deploy to server page.
 3.  In the Server field, from the drop-down list select the name of the server on which you want to 
update the Integration.
 4.  Click OK.
 5.  Integration Manager sends the updated version of the Integration to the selected server, 
overwriting the previous version.

163  Operations Guide B2Bi  2.1


Integration Manager

Remove a deployed Integration

Prerequisite
Before you can remove an Integration from a server, you must make sure that it is not used in any 
B2Bi component on that server.

Procedure
 1.  In the Integrator Manager main page, select the Runtime Server Browser tab.
 2.  In the left pane node tree, click the plus sign of a node to display the list of Integrations that 
have been deployed to the node.
 3.  Right-click the name of the Integration you want to remove, and from the context menu, select 
Remove from deployment.
 4.  Integration Manager prompts you to confirm the removal operation. Click OK to continue and 
remove.

B2Bi  2.1 Operations Guide  164


11  B2Bi integration engine management tools

Edit Integrations, Activities and Stages

Edit an Integration
To edit an Integration:

 1.  Select the name of the Integration in the Configuration Browser tab of Integration Manager.
 2.  Select File > Open.
 3.  Make changes in any field of any integration tab as required.
 4.  Click OK.

Edit an Activity
To edit an Activity:

 1.  Double-click the name of an Integration in the Configuration Browser tab of Integration 
Manager.
 2.  Double-click the name of the Activity you want to modify in the Activity frame.
 3.  Make changes in any field of any Activity tab as required.

 4.  Click OK.

Edit a Stage
To edit a Stage:

 1.  Double-click the name of an Integration in the Configuration Browser tab of Integration 
Manager.
 2.  In the Activity frame, double-click the name of the Activity that contains the Stage you want to 
modify.
 3.  Select the Stages tab.
 4.  Double-click the name of the Stage you want to modify.
 5.  Make changes in any field of any Stage tab as required.
 6.  Click OK.

Cut-and-paste behavior
In general, you can use the standard cut-and-paste tools for moving objects between Integration 
Manager folders. However cutting and pasting Integrations is a special case. It is possible to 
copy/paste an Integration between two projects, but you cannot cut/paste an Integration between 

165  Operations Guide B2Bi  2.1


Integration Manager

projects. This behavior assures against the accidental loss of important data.

To safely move an Integration from one project to another:

 1.  Select a Integration in the first project.
 2.  Copy the Integration.
 3.  Select an Integration folder in the second project.
 4.  Paste the copied Integration.
 5.  Check that the Integration and dependencies are correctly copied to the desired destination.
 6.  Select the original Integration in the first project and delete it.

B2Bi  2.1 Operations Guide  166


11  B2Bi integration engine management tools

Delete an Integration
 1.  In the Integration Manager main page, select the Configuration Browser tab.
 2.  In the left pane, right-click the name of the Integration you want to delete.
 3.  From the context menu, select Delete.

167  Operations Guide B2Bi  2.1


Integration Manager

XIB migration

Overview
Integration Manager provides tools for migrating an XIB configuration to B2Bi.

The arrangement and handling of information is different in XIB and in B2Bi.  XIB combines 
integration and transport and functionality in a single architecture. B2Bi comprises a pair of engines 
which provide integration and transport services respectively, and is built to enable the easy 
deployment of maps and map-processing resources.

Migration tasks
To migrate an XIB dataset:

 1.  Enable XIB migration on page 171
 2.  Add an XIB migration project on page 172
 3.  Import an XIB dataset to Integration Manager on page 174
When you import an XIB dataset to Integration Manager, two processes occur:
 l The import tool creates the objects that define the integration processing.  

 l The import tool collects the data that enables you to generate the application transports 
that were formerly used in XIB. 
 4.  Copy resources to the runtime server on page 175
 5.  Deploy an XIB integration configuration to B2Bi on page 176
 6.  Deploy an XIB transport configuration to B2Bi on page 177

The following figure illustrates the migration of an XIB dataset to a B2Bi environment using 
Integration Manager.

B2Bi  2.1 Operations Guide  168


11  B2Bi integration engine management tools

Applications sub-directories and properties


When you import an XIB dataset to Integration Manager, the importer program generates the 
Applications sub-directory. The Applications sub directory only exists for XIB migration enabled 
projects in Integration Manager. The Application directory is visible in the Migration_Project 
example in the following figure:

169  Operations Guide B2Bi  2.1


Integration Manager

The the objects that are generated in the Application folder during an XIB migration contain sets of 
data (properties) that are linked to one or more integrations. The properties that are contained in 
these Application objects are necessary for the deployment of the XIB dataset to a B2Bi Server.

After importing an XIB dataset to Integration Manager, you can edit and delete Application objects, 
or add new objects of your own.

Copy/paste XIB imported Activities in Integration


Manager
After you import an XIB dataset to Integration Manager, you can modify the imported project in any 
of the usual ways permitted by Integration Manager. This includes the copy and paste of Activities 
between Integrations in the project. 

When an Activity in one Integration refers to an Activity in a different Integration, the entire folder 
structure up to the common folder and all dependent integrations are copied. 

B2Bi  2.1 Operations Guide  170


11  B2Bi integration engine management tools

Enable XIB migration


Before you can use the XIB migration features of Integration Manager you must enable XIB Migration 
in System Profile Manager.

Enable XIB migration in System Profile Manager


 1.  Open System Profile Manager.
 2.  Select the Environment tab.
 3.  In the Miscellaneous section of the Environment tab, select the option Enable
XIB migration.
 4.  From the icon bar of the System Profile Manager, click the Save icon to save the configuration 
change.
A message indicates when the configuration on the connected integration engine has been 
successfully updated.

After you enable XIB migration


After you enable XIB migration:

 l You have the option to activate applications and properties as part of the project creation 
wizard.

 l The layout of the integration manager screen is modified to accommodate the display of 
applications.
 l The Integration Manager menu enables you to import XIB V2 datasets (normally this option is 
disabled).

171  Operations Guide B2Bi  2.1


Integration Manager

Add an XIB migration project


This topic describes how to add a new Project folder in Integration Manager that includes XIB 
migration features, including Applications and Properties.

Prerequisite
Enable XIB migration on page 171

Procedure
 1.  In Integration Manager, select File > New > Project to open the New Project wizard.
 2.  In the Project Details page, complete the fields:
 l Name – Enter the name of the project as you want it to display in Integration Manager.
 l Enable Migration Features – Select this option to enable XIB migration features for 
this project directory in Integration Manager.
 l Description – Optionally add a project description. The text you enter here appears in 
the Integration Manager UI when you hover the mouse over the project name.
 3.  Click OK.
A message asks you to confirm that you want to activate the migration features on this project 
directory. Click OK to continue.

Integration Manager generates a new project with the name you entered in the configuration 
screen. The project directory includes an Applications sub-directory.

B2Bi  2.1 Operations Guide  172


11  B2Bi integration engine management tools

After you add an XIB migration project


After you enable XIB migration features and add a migration project, you can import XIB datasets to 
Integration Manager (including all of the applications and properties that you have previously 
defined in XIB V2), edit the content and deploy the datasets to B2Bi runtime environments.

173  Operations Guide B2Bi  2.1


Integration Manager

Import an XIB dataset to Integration Manager


XIB datasets are backup files of functioning run-time environments. A run-time dataset stores the 
configuration information that is used to process messages. Each dataset includes:

 l Integrations
 l MBC Registrations (Not the actual MBC executables) 
 l Task definitions

When you export a dataset from XIB, the software creates a new directory. This directory contains a 
set of files that contain all the configuration data from the dataset. You can copy an exported 
dataset by copying the entire directory.

Place the exported dataset in the $B2Bi_SHARED_LOCAL/cfgarchives/migration folder on the 
B2Bi server.

Prerequisites
 l XIB migration is enabled for the Integration Manager. See Enable XIB migration on page 171.
 l You have created a project in Integration Manager, with migration features enabled.
 l A dataset is available to be imported. You may have exported a dataset from an XIB environment 
for use in B2Bi or you may have exported a dataset from Integration Manager. You can export 
and import a dataset as either a folder or a zip file. 

See your XIB documentation for information on exporting datasets from XIB.

Procedure
 1.  In the left pane of the Integration Manager interface, in the directory tree structure, expand the 
directory tree of a project that has migration features enabled. 
 2.  Select the Integrations folder of the project. An Integrations folder has to be selected in order to 
continue with this procedure.
 3.  Select File>Export/Import>Migration>Import XIB Dataset Data and select whether 
you are importing from a folder or from a zip file.

B2Bi  2.1 Operations Guide  174


11  B2Bi integration engine management tools

 4.  Use navigation screen to search your network and locate the XIB dataset folder or zip file that 
you want to import. Select the dataset and then click Select.
 5.  An Import Details page displays a list of the objects of the dataset that you are about to import 
to Integration Manager..
 6.  Click Import to continue. Depending on the size of the dataset, the import operation may take 
several minutes.

After you complete the import procedure


The project tree of the Integration Manager is populated with the objects that you imported from the 
XIB dataset.

These objects may include:

 l Integrations with entry points , exit points and multiple activities.
 l Applications
 l Tasks
 l Migration Objects

You can perform the following tasks with the imported dataset:

 l Edit or add elements to the imported integrations.
See special note: . Copy/paste XIB imported Activities in Integration Manager on page 170

 l Deploy an entire project containing the imported dataset configuration to a B2Bi runtime server.
 l Divide the elements of a single project into multiple projects for partial deployment to a runtime 
server.
 l Deploy the integrations  that comprise the project individually to a B2Bi runtime server.
 l Deploy the migrated transport configuration to a B2Bi runtime server..

Copy resources to the runtime server


Before you can deploy the imported XIB integration to a B2Bi runtime server, you must copy the 
integration resources (MBCs and Datamapper maps) from the XIB environment to the target B2Bi 
runtime server environment. 

Paste resources to the following directory in the target runtime environment:

$B2BI_SHARED_LOCAL/4edi/component  

175  Operations Guide B2Bi  2.1


Integration Manager

Deploy an XIB integration configuration to B2Bi


After you import an XIB dataset to Integration Manager you can deploy the integration configuration 
elements to the B2Bi runtime environment in the form of resources (maps, detectors, etc.). Once the 
Resources are deployed to B2Bi, they can be used in Services, providing processing for message 
handing between participant endpoints. The procedure in this chapter describes how to deploy XIB-
migrated integration configurations as B2Bi Resources.

For information on how to deploy XIB-migrated transports, see Deploy an XIB transport 
configuration to B2Bi on page 177.

Prerequisites
You must have already imported XIB dataset to Integration Manager. See Import an XIB dataset to 
Integration Manager on page 174.

Procedure
 1.  In Integration Manager, in the left pane (directory pane) , either right-click a project that you 
imported as a dataset from XIB, or right-click an Integration within the imported XIB project.
 2.  From the context menu, select Deploy/Update.
 3.  In the "Deploy to server" wizard page, enter the name of the target B2Bi Server for deployment.

 4.  Click OK.
Integration Manager deploys the integrations to the selected B2Bi environment in the form of 
Resources.

After you deploy an integration


After you deploy a migrated XIB integration, you can view the resulting Resources in the B2Bi User 
Interface.

 1.  Go to Processing configuration > Manage components to open the "Manage 


components" page.
 2.  From the list of tasks, click Add a component.
 3.  On the "Choose the source" page select Manually create a new component and click Next.
 4.  An the "Add a component" page, select a component type that corresponds to the Resource 
type you imported, for example you may typically have imported maps.

In the Resource drop-down field you can now view available Resources for the selected component 
type, and confirm that your XIB configuration elements are available in B2Bi.

B2Bi  2.1 Operations Guide  176


11  B2Bi integration engine management tools

Deploy an XIB transport configuration to B2Bi

Prerequisites
You must have already imported XIB dataset to Integration Manager, and this dataset must include 
migrated application transport data.

Procedures

Step 1: Export the transports from Integration Manager


 1.  In Integration Manager, in the left pane (directory pane) , select a project that you imported as 
a dataset from XIB.
 2.  With the project selected, click File > Migration > Generate Transfer Configuration.
A page  lists all of the send and receive methods that have been imported from the XIB dataset.
 3.  From the display list, select the pickups and deliveries that you want to export to the B2Bi 
trading engine and click OK.
 4.  In the following page, navigate to the directory where you want to save the exported transport 
file.
 5.  In the File name field, enter a meaningful name so that you can easily identify the file for 
import in the B2Bi user interface.
 6.  Click Save.
The export tool creates a zipped archive of XML files for application pickup exchanges and 
application delivery exchanges.
These are the files you will import to B2Bi in the following procedure. You can only import 
zipped files.

Step 2: Import transports into B2Bi


 1.  In the B2Bi user interface, select System Management > System Management to display 
the System Management page.
 2.  From the related tasks list at the bottom of the page, select Import entire system profile to 
open the import wizard.
 3.  On the Import entire system page, click Browse to locate and select the archive file 
containing application pickup or application delivery definitions that you created in the 
previous procedure.
 4.  Select an import option:
 l Replace existing objects if encountered (Default) – Imports all backed-up objects 
replacing (unmodified) previous content and imports objects that do not exist.

177  Operations Guide B2Bi  2.1


Integration Manager

 l Ignore imported objects if existing objects are encountered – If an identical 


existing object is encountered, it remains as is and is not imported, a message is logged, 
and the import process moves on to evaluate the next object. 
 l Update (add objects that don't already exist, replace objects that do exist) – 
Adds new objects that don't exist. Adds backed-up content to objects that do exist 
(incremental updates).
 5.  Click Next to launch the import. The import process may take several minutes for large sets of 
transports.
 6.  B2Bi generates the set of transports from the content of the selected XML file. These transports 
are configured in the same way that they were configured in the XIB system from which you 
migrated. To view complete lists of all transports that are now available for message exchanges:
 l For application deliveries, go to Trading Configuration > Manage application
deliveries.
 l For application pickups, go to Trading Configuration > Manage application
pickups. 
Imported pickups are initially in a disabled state. 

B2Bi  2.1 Operations Guide  178


11  B2Bi integration engine management tools

Message Log
Use Message Log to view integration engine message-processing related information, such 
transfer status, synchpoints, etc. Although Message Log includes reprocessing functions, we 
recommend the use of EDI Tracker for message reprocessing.

Message Log is for message-processing information. To view logs of system-related errors on the 
integration engine, see Trace Viewer on page 234.

Each message is associated with a unique LogId. A message going through the integration engine 
may change its shape (mapping, splitting, enveloping). For each new form of the message a new 
LogId is obtained. When you look at the Message Log, Hierarchical view, it is possible to see the 
complete chain of LogIds and log events and how each LogId is related to its child-LogIds and/or 
parent-LogIds.

Normal message-related errors are logged in the Message Log. For example:

 l Parsing failures
 l Classification failures (no matching criteria)
 l Send failures
 l Retrieve failed polling (ftp server down, or directory missing, POP server down…)

Some of the above log events also yield an Alert, normally only the first one of many.

The Message Log displays the logged information (including the relationships between messages). 
Each log entry represents a message for which events were logged. The exception is an entry that 
represents a failure to receive a message.

Open Message Log


 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi
[Installation Name]> B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.
 3.  From the tool panel, double-click the Message Log icon.

Message Log: View and manage logs


By default, when you open Message Log, it displays the following panes:

179  Operations Guide B2Bi  2.1


Message Log

Pane content Description

Favorite searches ;    Searches that were saved.   

Log entries  (top right)    Entries returned by the last search.   

Log entry events  (bottom right)    Events for the selected entry.   

Favorite Searches
Favorite Searches are searches that have been created and stored in the system by users. A search 
can be viewed as a subset of all existing messages. For example, a search can be specified as all log 
entries within the last 24 hours. This search would then display in the Log entries pane only the 
messages that match that specific criteria.

Log Entries and Log Entry Events


A log entry represents a message for which events were logged. Each entry includes the following 
information:

Log Description
Details

Creation  The date and time at which the first event was created.
Date  

Modification  The date and time at which the last event was created.
Date 

ID Log ID. See detailed description below.

Integration The name of the integration in which the event occurs.

Activity The name of the Activity within the integration in which the event occurs.

Description The description shows the first event associated with this log entry.
The icon shows the highest grade of classification severity of the associated events. For 
example, if an entry has two events associated with it (one of classification severity "Error" 
and one of classification severity "Fatal"), the classification severity of the entry is shown 
as Fatal.

Event classifications
There are six event classification severity levels.

B2Bi  2.1 Operations Guide  180


11  B2Bi integration engine management tools

Active (currently Inactive (processing Severity


processing) complete) class

OK

Debug

Information

Warning

Error

Fatal

Active means that the processing is still under way. Inactive means that the processing has finished.

Log Entry IDs and their sequence numbering


Logger IDs are allocated in batches by the hierarchical message task and the transfer gateway task at 
start up. This means that each task has its own sequence of log IDs. For example, hierarchical 
message task 1 may get log IDs 100-200, hierarchical message task 2 may get log IDs 201-300, and 
so on. This means that log ID 201 might be used earlier than log ID 190 since they are used by 
different tasks. Also note that when you have multiple logger servers, the log IDs are relative to each 
logger server. This means you may have logger ID 100 in logger server 1 and logger ID 400 in 
logger server 2, so logger server 2 ID 400 might be logged prior to logger server 1 ID 100.

Log entry pane contextual menu


Right-click on the first (left) column of any line entry in the Log entry pane to display the contextual 
menu. The following table lists the command option that comprise the contextual menu.

Command Description

Show Hierarchy... Select this command to display the Hierarchical view display window. You can use 
this window to explore the parent/child relationships between log entries.

Resend This command is active only when you right-click on a SynchPoint-type log entry. 
Use this command to resend a failed message transfer.

Clear Select this command to delete the selected entry from the entry list.

Columns Select this command to show/hide any of the Log entry
pane columns.

181  Operations Guide B2Bi  2.1


Message Log

Log Events pane


When you select any event in the Log Entry pane, a list of log events in the Log Events pane will be 
displayed. A log entry can have one or more log events associated with it. Each line in the Log 
events pane constitutes a single event concerning the handling of the logged message. For each 
event you can view the following information:

Log Details Description

Date  The date and time when the event was created  The icon shows the event classification.

Type The event type.

Code The event code. The interpretation of this code depends on the event type.

Integration The name of the (dynamic) integration in which the event occurs. 

Activity The name of the Activity within the (dynamic) integration in which the event occurs.

Description Description of the event type.

Use the View menu


The view menu gives you ability to change what is displayed in the message log. You can for 
example view just entries that contain in-house documents or entries that where sent by email.

You can also choose to display log entries in a hierarchical view, refer to Viewing details of a log 
entry.

If you have selected to generate SyncPoint in your configuration you can resend your message from 
the View menu. (Refer to Integration Manager for more details on SyncPoint). Refer to Re-sending 
messages for more information.

Use the Settings menu


The settings that can be changed affect the user indexes and the format for dates.

Enable/ Disable User Indexes


This is an advanced option that, when disabled, removes user indexes from the Logger server. It is 
enabled by default. Consult customer support if you need this option.

Options
The Options that can be set affect the format of the date display.

B2Bi  2.1 Operations Guide  182


11  B2Bi integration engine management tools

To set the options, select Settings > Options. 

Miscellaneous

Option Description

Allow successful log entries to be marked  Administrative setting: allow finished, successful messages to 
as manually corrected be marked as manually corrected

Expand Log Entry By default Changes the default behavior for displaying Log Entries in the 
Message Log

Show deleted activity information Show deleted activity information in the Message Log

Memory

Option Description

Entries per section Each search returns max 500 entries (default). These are sliced up in sections. With 
this setting, you can change the number of entries per section. 

Batch request  Each search returns max 500 entries (default). With this setting, you can change the 
entries count maximum number of returned results.

Warn if a log entry  Set the threshold value for the Integration Engine to provide a warning for large 
exceeds X bytes entries.

Reduce memory 
consumption

Log Date
Pick the date format to be displayed in log entries.

Statusbar Date
Pick the date format for status bar.

Create the default log search


If the required search pattern is not available (that is, it is not shown in the list of favorite searches), 
you can use the default log search to carry out a search and, if required, save the search.

183  Operations Guide B2Bi  2.1


Message Log

 1.  Select Search > New > Default. 


 2.  Enter the search criteria you need. 

Item Action

Only active  Active entries are those that are still being processed. If you wish only to view such 
entries entries, select the Only active entries check box.

Add Search Add an additional search.

Save As Click Save As to save the search settings under a new favorite search. In the window 
displayed next, enter a name for the search you want to save. This search then appears 
in the Favorite Searches pane.

Save Click Save to save the search setting when editing a favorite search.

Absolute  If you want to search a specific calendar period, select Absolute Range, then From and 
Range To.

Relative Range If you want to search backwards in the past, select Relative Range. Then select the time 
period using the drop-down list boxes for Days and Time. The period can range from 1 
second to 100 days.

Remove  Removes a previously added Search 
Search

To Select the end year, month, day, and time for the search.

Severity Select the Severity check boxes for the event severities search. If you do not select any 
of the check boxes, the Integration Engine searches for entries that have any severity. If 
you select one or more check boxes, the Integration Engine searches for entries that 
have the given severities.

From Select the start year, month, day, and time for the search.

Close To close the dialog box, click Close

Count To display the number of entries that match the search, click Count. The Integration 
Engine displays the number of entries that match the search criteria.

Apply To perform the search, click Apply. The search results are displayed in the log entry list in 
the Message Log window.

Search the log


This section describes basic searches. Other types of search may be available if custom search dialog 
boxes were created.

B2Bi  2.1 Operations Guide  184


11  B2Bi integration engine management tools

Generic log search


The generic log search is a modification of the default log search whereby the user can add a second 
tab with specific search information. Refer as well to Using Recursive Searches.

Other defined searches


To access other defined searches, select Search > New > [Name of search].

Favorite Searches
 1.  Double-click the required search name in the Favorite Searches pane. 
The search results are displayed in the log entry list.
 2.  Click an entry in the log entry list to display the events in the lower right pane.
In the Message Log window, the search results are listed in the log entry list.

Change the columns displayed


If you right click an entry or event, you can select what columns should be visible in the list of log 
entries or log events. This gives you the opportunity to hide those columns that are of no interest. 
This setting is per user and view, and will be remembered the next time the message log is started.

Change the sort order


To change the display sort order, click the column header for the column on which you want to 
sort.

If you perform a search and the matching entries are more than 500, the integration engine will:

 1.  Sort the entries according to the default sort order.
 2.  Divide the entries into batches. Each batch, except possibly the last batch, will contain the 
maximum number (500) of entries.
 3.  Display the first batch in the log entry list.

To display batches other than the current batch, use the following toolbar buttons:

Button Description

Display first batch

Display previous batch       

Display next batch

Display last batch

185  Operations Guide B2Bi  2.1


Message Log

View details of a log entry


In the log entry list in Message Log, double-click the entry. You can open multiple copies of this 
dialog box using different log entries.

Log entry Description


details

Log entry  Shows the parent and children (if any) of the selected entry. You can expand and 
hierarchy  compress the diagram to show or hide the children of the entry by clicking the plus 
(left pane)   and minus signs.

Log entry events  Lists the events associated with the entry that is selected in the diagram.
(bottom right 
pane) 

Display details of a log entry


 1.  Select the entry in the left pane of the diagram.
 2.  View the events listed in the log entry event list (right pane).

The display of the log entry hierarchy can be altered to facilitate tracing of errors. In very complex 
message handling, for example an EDIFACT message with multiple functional groups and 
interchanges, the hierarchy is not displayed in full and no connection paths between parents and 
children are shown.

You can set a particular entry as the root entry, in other words the “top” of the tree. You can also 
view from the selected entry in different directions. For example, from a particular entry, you can 
look in the processing backwards, towards the parent, or forwards, towards the children.

Set a particular entry as the root


 1.  Select the entry in the left pane.
 2.  Click the Set Root button.

Display toward the parent


 1.  Select the entry from which you want to display.
 2.  Click the Parent View button.
 3.  To return to the original display, select the parent entry and click the Child View button.

B2Bi  2.1 Operations Guide  186


11  B2Bi integration engine management tools

Display details of a log entry event


 1.  Double-click the date of the event in the log entry event list, either in the log entry event list or 
in the hierarchical child view. 
 2.  The dialog box that appears differs depending on the type of event. It includes the following 
options:

Properties tab

Item Description

Description  Description of the activity. This can either be generated by the Integration Engine, or be 
connected to the name of the integration. In this case, Message passthrough is the name of 
the integration, and Send is the name of the activity.

Code   The code number, if one has been defined.

Severity The severity of the event, used for identifying the severity of an error. Under normal 
circumstance, the severity is classed as Info.

Activity   The activity identification number assigned by the Integration Engine.

Integration   Name of the integration to which the message event refers.

Date   The date and time when the activity was carried out.

Type   The type of message. This refers to the tabs in the dialog box. In this case, there is only one 
tab, therefore, there is only one listing under the Transfer message. If there were two tabs, 
there would be two listings.

Transfer Message tab

Item Description

Transfer ID The transfer ID for the message, unique for the message, preceded by the host name.

Attributes The listing of attributes in the message that can be viewed.

Size Size of message.

View content  Click View to view the details of the selected attribute in the format selected from the 
as drop-down list box.

187  Operations Guide B2Bi  2.1


Message Log

SyncPoint
Another type of general log entry is called a SyncPoint.

From the SyncPoint tab, you can re-send the message, or edit the contents of the message before 
re-sending. You can also select another activity to resend the message from. To be able to use this 
functionality you must have SyncPoints.

To edit the message:

 1.  Click the Edit button.
 2.  Edit the contents of the message in the dialog box, and click OK.

Only user categories User and Administrator are authorized to perform a re-send or to edit a 
SyncPoint.

Use recursive searches


If your search produces a large number of search results, you can reduce the number of results via a 
search on the search results using additional parameters. You can also then perform a search on 
these results, and so on. This type of search is called a recursive search.

To perform a recursive search:

 1.  Select Search > New.


 2.  Select a search from the menu.
This example describes the standard Default search, although the instructions also apply to all 
other searches.
 3.  Click Add Search. 
 4.  In the Select Recursive Search dialog box, select a search. Click Select.
The settings in the respective fields under the Default tab are those that you set previously.
 5.  Select the required check boxes and enter the UNH values required.
 6.  Do one of the following:
 l Click Save / Save As to save the new recursive search.
 l Click Count to display the number of hits for the search.
 l Click Apply to update the log entry list in the message log.
 l Click Add Search to carry out an additional recursive search on the results.
 l Click Remove Search to return to the remove the added search.

Remove a Favorite Search


 1.  In the Favorite Searches pane, select the search that you want to remove.
 2.  Click Search > Delete.
 3.  Confirm that you want to delete the search.

B2Bi  2.1 Operations Guide  188


11  B2Bi integration engine management tools

Re-sending messages
To be able to resend a message, a synchronization point must be created for the message. A 
SyncPoint event is automatically created for those messages encountering an error during 
communication transfer or other errors occurring in the integration engine framework. Errors 
occurring in user MBCs do not automatically generate synchronization points. For errors occurring in 
user MBCs, the MBC_HIERCHMSGENV.CreateSyncpoint statement is used to create a synchronization 
point. In the Message Log, you can search for these messages using the SyncPoints search dialog 
box.

To re-send a single message:

 1.  Open the SyncPoint event from where you want to re-send the message. 
This is done in the event window for the message. See Viewing details of a log entry.  
 2.  Browse for any activity in which to re-send the message. 
This is useful for an instance when a message could not be classified to an activity, allowing 
you to manually select which activity to use for further processing. 
 3.  Double-click the SyncPoint log event. 
 4.  Click Browse and select the activity to re-send.

To re-send multiple messages:

 1.  In the log entry window of the Message Log, select those messages you want to re-send.
 2.  Select the View > Resend menu option to re-send the selected messages. 
The messages are re-sent from the last SyncPoint event logged for respective message.

Re-send a non-archived message


When you re-send a message that has not yet been archived, the re-sent message has the same 
logger ID as the original message. Any new log events are appended to the original message. The 
severity shown in the log entry window of the Message Log is reset from the re-send event. When 
searching for the severity of a log entry, the search is made for an occurrence of the severity, that is, 
not the current severity. This means that when searching for log entries of severity error, you also 
get matches of log entries that have been in error but have been re-sent and no longer are in error.

When re-sending a log event that is still active, log events from the original message and the re-sent 
message are mixed in the log event window. You should therefore avoid re-sending active log 
entries. Wait until they are inactive before re-sending the message.

Re-send an archived message


When re-sending an archived message, it is not possible to reuse the same logger ID as the original 
message. The re-sent message gets a new logger ID and a parent/child relation to the original 
message is created.

189  Operations Guide B2Bi  2.1


Message Log

Reprocess a message
When you reprocess a message, the integration engine restarts processing at the point where the 
original message was received. All message handling in the integration engine is repeated.

To reprocess a message:

 1.  From a search results list, select the message you want to reprocess.
 2.  From the menu bar, select File > Reprocess message.

Alternatively, you can right-click the message entry in the list and then select Reprocess message
... from the context menu.

Manually set a message to correct


If a transfer in a list of search results is marked as not completing successfully, you can manually 
override this status and mark the transfer as correct.

 1.  From the list of search results, select the item to correct.
 2.  From the menu bar, select File > Mark as manually corrected.  

Alternatively, you can right-click the item in the list, and then select Mark as manually
corrected… from the context menu.

B2Bi  2.1 Operations Guide  190


11  B2Bi integration engine management tools

Metadata Browser
Use Metadata Browser to display metadata retrieved from one or more systems.

Limitation
The Metadata Browser plugins for API Connector and Datamapper ADF should not be used. They will 
be removed from the product in a future release.

Open Metadata Browser


 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi
[Installation Name]> B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.
 3.  From the tool panel, double-click the Metadata Browser icon.

Work in Metadata Browser


The left pane of Metadata Browser displays the source metadata. When you select the source on the 
left, the imported metadata appears in the right pane. When saved, this data is stored in an ADF file. 
The information in each pane is displayed in the form of a tree structure. In the source metadata 
pane, a tree can be constructed that displays the metadata that was retrieved in hierarchical fashion. 
All of this metadata or only selected elements of the metadata can be copied from the source 
metadata pane to the imported metadata pane, where it is also displayed.

To build up metadata in the source metadata pane, do one or both of the following: 

 l Double-click an expandable item (preceded by a plus sign) in the tree. This will display the items 
it contains.
 l Select a non-expandable item (not preceded by a plus sign) in the tree. On the Source menu, 
click Access Site. This will add a plus sign to the item, indicating that its items have been 
loaded and that it can be expanded.

For some items, a dialog box opens, prompting you to select a subset of data for the next level.This 
enables you to select one or more items rather than download details for all items.  

For other items, the Metadata Browser must retrieve a large amount of metadata. In this case, the 
metadata is retrieved asynchronously and a progress bar appears.

You can copy one or more items to the imported metadata pane. If a subset of one of the items is 
required, you can select each unnecessary item and click Import > Delete Item.

191  Operations Guide B2Bi  2.1


Metadata Browser

Metadata types
Metadata Browser displays two metadata types:

 l Default metadata
 l Application metadata

Default metadata
The table below lists the types of metadata that are automatically provided.

Type Description

Data Definition Tool Used for converting models created by the Data Definition Tool to ADF files. 

Datamapper ADF Used for copying records from existing ADF files. 

Datamapper EDI Used for converting Datamapper EDI tables to ADF files. 

Application metadata
Some application connectors, such as the XML Application Connector, support metadata retrieval. 
After you install a connector, new metadata types are available automatically in the Metadata 
Browser.  

Metadata properties
To see the properties for an item, select it and click View > Properties. A dialog box displays the 
list of properties for that item.

Menu options
The following table describes the tasks you can perform using the menu options in Metadata 
Browser.

Option Description

File >  Clears the right (imported metadata) pane. 
New

B2Bi  2.1 Operations Guide  192


11  B2Bi integration engine management tools

File >  Enables you to select an existing client Datamapper ADF file and import the data from that file 
Open into the imported metadata pane. 

File >  Saves the data from the imported metadata pane to a Datamapper ADF file. If the data was 
Save not imported from an existing ADF file or saved previously, you are prompted to provide a file 
name.

File >  Saves the data in the imported metadata pane to a Datamapper ADF file and enables you to 
Save As specify a new file name.

File > Exit Closes Metadata Browser. 

View >  Displays a dialog box that contains a list of properties for the selected item.
Properties

Source >  Retrieve the next level of metadata for the selected metadata item in the source metadata 
Access  pane.
Site

Source >  Removes all child metadata items from the selected item in the left (source metadata) pane. 
Clear Item

Import >  Copies the selected source metadata item to the imported metadata pane. If a data tree 
Add Item structure already exists in the imported metadata pane, then the new tree is appended to that 
structure. 

Import >  Copies the selected source metadata children to the imported metadata pane. 
Add 
Children

Import >  Removes the selected imported metadata item and all of its children from the display. 
Delete 
Item

Resume work in Metadata Browser


When you close Metadata Browser, the current dataset is saved. The current dataset contains the 
data you retrieved from the system you last logged into, plus any changes you may have made to 
the retrieved data.

193  Operations Guide B2Bi  2.1


Performance Monitor

Performance Monitor
Use Performance Monitor to view the performance of the integration engine.

Start Performance Monitor


 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi
[Installation Name]> B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.
 3.  From the tool panel, double-click the Performance Monitor icon.

Work in Performance Monitor


Two tabs are visible in Performance Monitor

 l Task Monitor tab  on page 194
 l Queue Monitor tab  on page 199

Both of these tabs provide real-time insight in the inner workings of the integration engine. In 
addition, statistics are collected. These statistics are collected from the moment the integration 
engine was started.

In addition, you can export reports from Performance Monitor.

Task Monitor tab


The Task Monitor provides detailed information about the performance of the various tasks running 
inside the integration engine. The information varies for the various tasks. Select any task from the 
list in the left pane to display information about the task in the right pane.

Alerter tasks
The Alerter sub-tab displays information about Alerter tasks. The Alerter sub-tab contains two fields:

Field Description

Access time How much time it takes to access this server

Number of alerts The number of Alerts registered for this server

The Task References sub-tab shows which other tasks are depending on this server task.

B2Bi  2.1 Operations Guide  194


11  B2Bi integration engine management tools

Field Description

Parent tasks The Parent tasks column typically displays the task or machine on which the 
selected task is running.

Task The task column displays the name of the task selected in the left column.

Referenced  The Referenced tasks column displays a list of tasks that are either used by or 
tasks use the selected task.

Filer tasks
The Filer sub-tab displays information about Filer tasks. The Filer sub-tab contains two fields:

Field Description

Access time Indicates how fast the filer server can process requests. The access time is 
calculated as an average of 100 authentication requests. A high access time 
might indicate system disk saturation or too many tasks using this task

Configuration  Indicates how fast the filer server can get access to the requested information.
Access time

The Task References sub-tab shows which other tasks are depending on this server task.

Field Description

Parent tasks The Parent tasks column typically displays the task or machine on which the 
selected task is running.

Task The task column displays the name of the task selected in the left column.

Referenced  The Referenced tasks column displays a list of tasks that are either used by or 
tasks use the selected task.

Logger tasks
The Logger sub-tab displays information about Logger tasks. The Logger sub-tab contains two 
fields:

Field Description

Access time How much time it takes to access this server

Active Entries The number of entries that are in the system, and are “waiting” for something 
else to happen, before they become inactive

195  Operations Guide B2Bi  2.1


Performance Monitor

The Task References sub-tab shows which other tasks are depending on this server task.

Field Description

Parent tasks The Parent tasks column typically displays the task or machine on which the 
selected task is running.

Task The task column displays the name of the task selected in the left column.

Referenced  The Referenced tasks column displays a list of tasks that are either used by or 
tasks use the selected task.

System task (B2BiPLATFORM)


Performance Monitor displays the following information for this task:

 l Disk Access Time (local disk)
 o Synchronized – each time a file is written the file content is synchronized with the physical 
disk
 o Unsynchronized – indication of how fast content can be written to the disk buffers of the 
operating system
Disk access time is calculated as an average time for writing and deleting 100 files of 10 Kb. 
 l Free Disk Space, (CORE_ROOT / CORE_DATA / CORE_LOCAL)

B2Bi Kernel Server task


The B2Bi Kernel Server is an internal server which is responsible for the storage and retrieval of 
configuration data persisted in the integration engine.

Performance Monitor displays the following information for this task:

 l Disk Access Time (local disk)
 o Synchronized – each time a file is written the file content is synchronized with the physical 
disk
 o Unsynchronized – indication of how fast content can be written to the disk buffers of the 
operating system
Disk access time is calculated as an average time for writing and deleting 100 files of 10 Kb. 

Processing Engine (PE) tasks


Performance Monitor displays the following information for these tasks:

B2Bi  2.1 Operations Guide  196


11  B2Bi integration engine management tools

Field Description

MFC cache size  This field displays the number of Message Flow Components (MFCs) that the 
Processing Engine tries to keep loaded at the same time. A high cache number 
improves performance at the cost of higher memory and resource usage.

Enable time  Time profiling indicates:
profiling on 
 l How often the MBCs are called
MBCs 
 l The execution time for each MBC
Note: Time profiling adds overhead for measuring processes, so should be 
avoided in production environments.

MBC statistics  This table displays information about Message Flow Components (MFCs) 
table running in the selected Processing Engine Task. The information is displayed 
in the following columns:
 l Name: Name of the MFC as defined in the Component Registry
 l Status: Whether or not the MFC is currently loaded in memory
 l Total used: How many times the MFC has been loaded
 l Exec. count: How many times the MFC has been invoked
 l Exec. time: Total time the MFC has been executing.
This information is only available if you have enabled time profiling.

The Processing Engine entries provide a detailed view on the components that have been executed 
within a certain processing engine and which components have been cached (loaded in memory). 
Per component it shows how often the component has been loaded (Total used) and how often the 
component has been invoked (Exec. Count). The execution time shows the total amount of time the 
component has been executed.  In order to get this information, time profile must be enabled first:

After running files through the system, more details appear on the Task Monitor tab.

Table tasks
The Table sub-tab displays the following fields containing information about the Table task:

Item Description

Server uptime Table server uptime

Number of clients Number of Table server clients

Number of open files Number of open files on the Table server

197  Operations Guide B2Bi  2.1


Performance Monitor

Item Description

Added table entries Number of table entries added on the server

Deleted table entries Number of table entries removed from the server

Read table entries Number of table entries that have been read

Active table entries Number of table entries active

Oldest table entry The age in minutes of the oldest table entry

Access time Time it takes to access this server

The Task References tab shows which other tasks are depending on this server task.

Field Description

Parent tasks The Parent tasks column typically displays the task or machine on which the 
selected task is running.

Task The task column displays the name of the task selected in the left column.

Referenced  The Referenced tasks column displays a list of tasks that are either used by or 
tasks use the selected task.

Timer tasks
The Timer sub-tab displays the following fields containing information about the Timer task:

Field Description

Server uptime Timer server uptime

Server idle time Timer server idle time

Number of clients Number of Timer server clients

Number of open files Number of open files on the Timer server

Added timers Number of timers added on the server

Removed timers Number of timers removed from the server

Expired timers Number of expired server

Active timers Number of active timers

B2Bi  2.1 Operations Guide  198


11  B2Bi integration engine management tools

Field Description

Last expire time Time when last timer expired

Access time Time it takes to access this server

The Task References tab shows which other tasks are depending on this server task.

Field Description

Parent tasks The Parent tasks column typically displays the task or machine on which the 
selected task is running.

Task The task column displays the name of the task selected in the left column.

Referenced  The Referenced tasks column displays a list of tasks that are either used by or 
tasks use the selected task.

Queue Monitor tab


The Queue Monitor provides detailed insight in the queue content/status, belonging to the various 
tasks in the integration engine. For each task it displays a set of statistics that provide information 
about the performance of the integration engine.

For each queue, the following items are tracked:

Item Description

Task The name of the task as it is defined in the Core tab of the Task Monitor 
properties window. The task name is followed by the queues related to the 
task.

Queue Task Queue Task associated to this queue

Entries Number of entries being processed or waiting to be processed

Exist Mean  Average time currently queued items have been waiting in the queue to be 
Time processed

Exist Min.  Minimum time an entry out of all  currently queued items has been waiting in 
Time the queue to be processed

Exist Max.  Maximum time an entry out of all  currently queued items has been waiting in 
Time the queue to be processed

199  Operations Guide B2Bi  2.1


Performance Monitor

Item Description

History Mean  Average time all queued items have been waiting in the queue to be processed
Time

History Min.  Minimum time an entry out of all queue entries has been waiting in the queue 
Time to be processed

History Max.  Maximum time an entry out of all queue entries has been waiting in the queue 
Time to be processed

Queue entry details


To view additional information about a queue that contains active entries, double-click the queue 
name in the Task column of the queue display table. A Queue detail window  o pens with columns 
that display the following information:

Item Description

Integration The name of the Integration-Process that contains the Activity that has called 
the processing task

Activity The name of the Activity that has called the processing task

Waiting The number of queue entries that are waiting for processing

Processing The number of entries that are currently being processed

Refresh the queue list


To refresh the list, select File > Refresh the Queue list.

Set Queue Monitor session settings


To set the session settings, select File > Settings for this session.

In the page that appears, various settings can be set (non-permanent) for the Task Monitor.

Reports
The Task Monitor can produce two report types, which can either be copied to the clipboard or 
exported as CSV files.

 l Queue Statistics – To copy or save this report, select Reports > Queue Statistics > Copy or 


Save As.

B2Bi  2.1 Operations Guide  200


11  B2Bi integration engine management tools

 l MBC Statistics – To copy or save this report, select Reports > MBC Statistics > Copy or 


Save As.

These statistics are calculated from the moment the integration engine was started.

201  Operations Guide B2Bi  2.1


Queue Monitor

Queue Monitor
Use Queue Monitor to view lists of queues on a selected integration engine.

Start Queue Monitor


 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi
[Installation Name]> B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.
 3.  From the tool panel, double-click the Queue Monitor icon.

Work with Queue Monitor


The Queue Monitor includes three tabs: 

 l Queue
 l Management 

 l Settings

Queue
The left pane of the Queue tab shows the queue servers running within the integration engine. The 
order of the queues can differ from one installation to another, as well as on the same installation if 
you removed the queue server, performed a force rebuild, and restarted all tasks.

The sorting of the queues inside the queue server is the creation sequence of the queue names 
inside the queue server. It is completely random because the position is given by the start sequence 
and the IDs or the tasks

After double-clicking the entry (or a single left click on the + sign in front of the entry), the queues 
managed by this queue server are shown. Each queue entry is prefixed with the number of active 
entries in the queue.

Queue Operations
Statistics – Displays the statistics of a specific queue:

B2Bi  2.1 Operations Guide  202


11  B2Bi integration engine management tools

Item Description

Number of  Number of entries being processed or waiting to be processed
messages in queue

Current Mean Time Average time currently queued items have been waiting in the queue to 
be processed

Current Min. Time Minimum time an entry out of all  currently queued items has been 
waiting in the queue to be processed

Current Max. Time Maximum time an entry out of all  currently queued items has been 
waiting in the queue to be processed

Total Mean Time Average time all queued items have been waiting in the queue to be 
processed

Total Min. Time Minimum time an entry out of all queue entries has been waiting in the 
queue to be processed

Total Max. Time Maximum time an entry out of all queue entries has been waiting in the 
queue to be processed

Commit history – Shows the history of commits on the queue.

Clean queue – Deletes all entries from the selected queue. All serialized entries will be put into the 
audit trace for reference.

Remove queue – This function has a special purpose; it deletes the queue from the disk. This is 
used only on the deleted queues (as is displayed on the queue server). When a task is deleted in the 
integration engine and the queue remains on the disk, disk space can be recovered using this 
function. All entries from that queue will be deleted forever. Caution: Be very careful when using 
this function because it cannot be undone.

View modes

 l Original – This mode is the original mode and kept for backward compatibility. The order of the 
queues can differ from one installation to another, as well as on the same installation if you 
removed the queue server, performed a force rebuild, and restarted all tasks.
The sorting of the queues inside the queue server is the creation sequence of the queue names 
inside the queue server. It is completely random because the position is given by the start 
sequence and the ids or the tasks.
 l Alphabetic sort on Queue Server – Sorts the queues in alphabetic mode (A-Z) inside the queue 
servers.
 l Sort by Queue Type – Sorts the queues (over the various queue tasks) by type. The types can be 
found from the internal functions of the queues (which can be found from the queue directory). 
Those types are: MFP, HME, TG, and for trans.-adapters (comm.-adapters) Expire, Receive, Send 
and Trigger.
The queues are sorted alphabetically within each queue type.

203  Operations Guide B2Bi  2.1


Queue Monitor

 l Sort by Functionality – Sorts the queues (over the various queue tasks) by functionality. This 
sorting is based of the type of the processing, communication or between. The types are: 
Hierarchical Message Processor (HME), Message Feed Processor (MFP), Trans-adapters (comm.-
adapters) and Transfer Gateway.
The functions are sorted alphabetically within each queue type.
 l Alphabetic sort using prefixes on Queue Server – To use this special type of sort, select the 
Management tab.
Different profiles display in the top half of the split window. The content of the selected profile is 
displayed as a tree in the lower half of the split window. Each profile contains folders which will 
be displayed as servers in the first tree view (for example: old, new, and the rest of the queues). 
Each folder contains a number of prefixes. Those prefixes are used to populate the folders from 
the queue tab. The separator between the prefix and the name should be the underscore “_”.
This option sorts the queues (over the various queue tasks) by name (A-Z).
 l Sort by depth of the queues on Queue Server – This type of sort is used by those who use the 
Queue Monitor as a monitoring device to see congestion on the system. This type of monitoring 
requires manual refresh of the system to avoid a slow-down from over-querying the system.
 o Each manual refresh recreates the view and sorts the queues using the number of contained 
messages as criteria. 
 o When you click Refresh, the entire view is rebuilt and the queue servers are displayed in a 
collapsed format.

Queue entry details

Column Description

Task The name of the task as it is defined in the Core Task tab of the Axway 
Server properties window. The task name is followed by the queues related 
to the task.

Queue Task Displays the Queue task that is related to each queue.

Entries Displays how many entries are waiting or are being processed for each 
queue.

Exist Mean Time Displays the mean time that the entries currently in the queue have been 
waiting in the queue.

Exist Min Time Displays the minimum time that the entries currently in the queue have been 
waiting in the queue.

Exist Max Time Displays the maximum time that the entries currently in the queue have 
been waiting in the queue.

B2Bi  2.1 Operations Guide  204


11  B2Bi integration engine management tools

Column Description

History Mean  Displays the mean time that all queue entries processed from the time the 
Time queue task was started, have waited in the queue.

History Min Time Displays the minimum time that all queue entries processed from the time 
the queue task was started, have waited in the queue.

Operations on queue entries


Entries are the actual messages in the queue server.

 l The Delete function deletes the entry.
 l The Syncpoint function deletes the entry and creates a syncpoint entry in the message log with 
the copy of that queue entry. This is used when an entry blocks a processing operation and the 
user wants to save the data and re-send the modified data.
 l The Syncpoint without delete function creates a SyncPoint entry in the message log with the 
copy of the queue entry. This is used to create a copy of that data into the Message Log for 
future resend or analysis.
 l The Change priority function changes the priority of an entry. This is used especially in 
dynamic loading the MBC to prioritize an entry.
 l The Open function opens the entry in read-only view.

Settings

Settings available for all queues (left pane)


The maximum number of entries that can be read from the queue is 100. You can override this limit 
by setting a dedicated  environment variable.

Caution: If this value is set too large, the entire queue server may crash if messages are too large in 
relation to allocated memory. 

The Open multiple entries option applies to the proc-entry type (the entries from HME, TG (input 


queue) and MFP). This allows you to open two entries from the same queue to visually check the 
differences between them. For this type of view, the attributes are displayed as text and the Open 
Data button is disabled.

Settings for the Color management of the queue (right pane)


This pane shows the settings for the queues display, the threshold for changing the display color of 
the queues.

205  Operations Guide B2Bi  2.1


Queue Monitor

To enable the previous behavior, select Use color multiplication factor and 1000 for the color 


multiplication factor value.

The color of the queues is changed with the following algorithm:

 l White, if the queue is empty
 l Green, if the queue has less than Multiplication factor elements
 l Yellow, if the queue has between Multiplication factor and 5 * Multiplication factor elements
 l Red, if the queue has more than 5 * Multiplication factor elements.

To bypass this algorithm, enter the exact threshold for each transition.

B2Bi  2.1 Operations Guide  206


11  B2Bi integration engine management tools

Remote Compiler
Use the Remote Compiler to compile, simulate, and register new/changed Message Builder (MB) 
components on the server side.

Start Remote Compiler


 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi
[Installation Name]> B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.
 3.  From the tool panel, double-click the Remote Compiler icon.

Compilation options
Option Description

Trace Generate code for source code trace. The compiler generates code that makes it 
possible for the Message Builder interpreter to keep track of the current source 
code file name and line number when executing the program. When a message is 
written to the log and the program has been compiled with this option, the file 
name and line number is output together with the rest of the message.   
Note: A program compiled with this option executes slower than if it was 
compiled without it. 

No  Do not optimize. By default, the compiler tries to replace constant expressions 
Optimization with constant values, remove non-reachable code, make some peephole 
optimizations, etc. This option disables these actions. 

Ignore  Ignore the specified PRAGMA statements.
Pragma 
Statements

Check only,  Perform the compilation without producing any executable (".x4") file
no output 
generated

Output  When the compilation has completed without errors, the number of read 
statistics characters, lines and files are written to the standard error output.

207  Operations Guide B2Bi  2.1


Remote Compiler

Option Description

Output  If this option is specified, for each include and library file (see the description of 
include and  the EDI_LIB environment variable, page 56), an informational message is 
library  output. Include files that are ignored because of the ONCE modifier to the 
information INCLUDE statement are also indicated to be so. 

Allow  New lines are, by default, not allowed in Message Builder string constants. For 
newlines in  backward compatibility reasons, this option can be used to allow them.
strings

Auto register Register the program after compiling automatically

Source files
Option Description

Input  Specify the source file to be compiled. Up to 3 input files can be specified
file

Library  Specify the libraries to be used for compilation
file(s)

Custom  Provide additional compilation options. With the “Browse” button, an overview of all 
options compiler options can be obtained.

Output  Specify the location of the destination file (By default this is the same directory and 
file file name as the source file, with a different extension)

Specify the editor


You can select to use the internal Integrator editor or specify an External Windows editor to use with 
the Remote Compiler. To select the editor, on the Options menu, click Editor.

If you use an external editor, you can use File > Synchronize remote files option to synchronize 


your client files with the server.

Compile, simulate, and register the


component
When you are ready to compile the Message Builder (MB) component, click the Compile button. 

To run a simulation, click the Simulate button. You can set several options:

B2Bi  2.1 Operations Guide  208


11  B2Bi integration engine management tools

Option Description

HierchEnv Trace  Generates debugging information in a trace file.
(hierarchical 
environment)

Message File Enables you to specify a test message.

MBC Configuration  Select String or Generic property stage (preferred because it enables 
(UI) you to specify individual values for the various component options).

Work files directory Browse to the location where you want to store the simulation results.

Start Runs the simulation.

To use the component, you must first register it. Click Register. The status bar will read "registered 
successfully" and will show the path to the component.

209  Operations Guide B2Bi  2.1


SeqNum Utility

SeqNum Utility
The SeqNum Utility enables you to view and manage the expected identities for exchanged EDI 
documents with various partners. Use the SeqNum Utility  to view and edit ID entries between 
multiple partners in a single view.

Each entry in the SeqNum interface represents the next ID that is expected for an exchange with a 
particular partner.

In normal circumstances, the management of EDI IDs is done in the B2Bi user interface, in the 
configuration pages for EDIFACT and X12 inbound agreements. 

You can use this utility to:

• View entries

• Add entries

• Modify entries

• Remove entries

Start the SeqNum Utility


Prerequisite: B2Bi is installed and started and the B2Bi Client is also installed.

 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi


[Installation Name] > B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional user access accounts in User Manager.
 3.  From the tool panel, double-click the SeqNum Utility icon.

The SeqNum Utility page opens and displays a tab for each of the following sequence types:

 l Interchange X12
 l Functional Group X12
 l Transaction Set X12
 l Interchange EDIFACT
 l Functional Group EDIFACT
 l Transaction Set EDIFACT

Each of these tabs displays a table with the following columns:

B2Bi  2.1 Operations Guide  210


11  B2Bi integration engine management tools

 l ID number – This is an internal ID.
 l Key – The key is comprises the content of the fields corresponding to the identifiers for an EDI 
message Interchange or Functional Group.
 l Sequence number – The next number expected in the sequence for this partner and 
document format exchange.
 l State – Indicates whether the next expected sequence number value has been set correctly 
(OK/Undefined).

211  Operations Guide B2Bi  2.1


SeqNum Utility

Use the SeqNum Utility


Use the  SeqNum Utility to view and modify the expected identities for exchanged EDI documents 
with various partners.

 1.  Click any entry to open an editing page for a specific EDI interchange, transaction set, or 
functional group.
 2.  Modify the fields as required.
 3.  Click OK to save changes, or Cancel to close the editing page without modifying.

B2Bi  2.1 Operations Guide  212


11  B2Bi integration engine management tools

System Profile Manager


The System Profile Manager provides a graphic user interface in which you can configure B2Bi 
integration engine tasks and environment variables.

The environment variable changes that you make in System Profile Manager are automatically 
updated in the file:

/shared/data/system/b2bi.properties

When you make any changes using System Profile Manager, the tool automatically restarts B2Bi so 
that changes take effect in your runtime system.

Start System Profile Manager


When B2Bi is installed and started and B2Bi Client is also installed, you can open the System Profile 
Manager.

 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi


[Installation Name] > B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.

 3.  From the tool panel, double-click the System Profile Manager icon.

213  Operations Guide B2Bi  2.1


System Profile Manager

Use System Profile Manager


When you open System Profile Manager, the user interface displays a set of tabs that classify 
environment variable settings by type:

 l HME Config
 l Logger Config
 l Logger Searches
 l Tasks Config
 l Environment
 l Queue Monitoring

Additionally, System Profile Manager has a "hidden" Advanced Properties page, that you can use to 
control debugging and disk space allotment. See System Profile Manager advanced properties page 
on page 227.

HME Config tab


Use the HME Config tab to configure HME Tasks and Processing Engines.

Definitions
Hierarchical Messaging Environment (HME) – A B2Bi integration engine server task for 
processing hierarchical messages such as EDIFACT, X12, and most inhouse formats. 

Processing Engine (PE) – A B2Bi integration engine task that provides a general execution 
environment for more specialized integration engine execution environments, such as the transfer 
(adapter and gateway) and Hierarchal Messaging Environment. 

An HME task is started by a PE task. The number of PE tasks defines how many instances of the HME 
are started. You must define at least one PE for the HME. 

Tab display
The HME Config tab displays a list of the HME Tasks running on the B2Bi integration engine server to 
which you are currently connected. For each Task, the tab also displays the number of sessions and 
number of Processing Engines (PE's) that are attributed to the Task.

Initial settings
During B2Bi Server installation the installer user is prompted to provide a value for the number of 
CPUs to use for B2Bi Server operations. The installer uses this value to calculate initial settings for:

 l Number of Processing Engines for HME1, HME2, and HME3
 l Number of Logger Tasks

B2Bi  2.1 Operations Guide  214


11  B2Bi integration engine management tools

The following table shows a typical scaling per number of CPUs.

CPU PE/HME1 PE/HME2 PE/HME3 PE/HME4 Logger tasks


2 2 2 4 1 2
4 4 4 8 1 4
8 8 8 16 1 8

Modify number of processing engines


After installation you can modify Processing Engine settings in the HME Config tab. 

B2Bi uses CPUs automatically, to align with the scaling of the Processing Engines and Logger Tasks 
in the HMEs. When you assign additional Processing Engines, you ensure that more instances of the 
B2Bi message processing programs will run in parallel.

To make decisions on how to tune Process Engines and Tasks you  should analyze the message 
handling behavior in the Queue Monitor. See Queue Monitor on page 202. For example, the HME 
labeled "HME3" typically handles the mapping load. Adding Processing Engines to this HME is a 
good strategy if you see a build up of messages in the HME3 queue.

Finding the ideal settings for your environment may require some trials and adjustments.

Modify number of logger tasks


After installation you can modify the number of logger tasks in the Logger Config tab. See:

 l Add a logger task on page 217
 l Delete a logger task on page 217

Modify an HME
To modify an HME Task:

 1.  Double click any HME Task in the list of HME Tasks.
System Profile Manager displays the Modify HME Parameter page.
 2.  Enter new parameter values as required:
 l Number of sessions – Enter an integer in the range 1 -500.
 l Number of PE (Processing Engine) – Enter an integer in the range 1-100. The number 
of PE tasks defines how many instances of the HME are started
 l MBC cache size – Enter a cache size for the Message Builder Component Cache. 
Note: Default for HME 3 is 50 MB. This is the recommended minimum. If you run a large 
number of dynamically loaded components you may want to increase the HME 3 cache 
size limit.
 3.  Click OK.

215  Operations Guide B2Bi  2.1


System Profile Manager

Logger Config tab


Use the Logger Config tab to set message logger archiving schedules and to edit and test logger 
archiver scripts.

Tab display
The Logger Config tab displays a list of B2Bi Logger tasks that are active on the integration engine to 
which you are currently connected. The number of default loggers in a B2Bi installation is directly 
dependant on the number of CPU(s) that were selected to use during installation.

Configure logger archiving


To configure the log archiving for a Logger task:

 1.  Double click the name of a logger in the list of loggers .
System Profile Manager displays the Modify Logger Parameter page.
 2.  Select the Scheduling tab and complete the fields:
 l Archive every – Use the selection boxes to set the frequency at which B2Bi evaluates 
inactive logger files for potential archiving. This can be any time period from once an 
hour to once every 10 years. Default = 1 day.
 l Start archiving at – Use the selection boxes to set the start time of archiving 
(month/day/hour/minute). Default = First minute of the selected frequency period.
 l Skip archiving on the following days of the week – If there are any days of the 
week for which you do not want to run the archiver, enter the days here. During periods 
of high volumes of message transfers you may wish to avoid archiving to enhance 
throughput performance.
 l Archive inactive logs older than – Specify the selection criteria for an inactive file 
to be archived, based on the age of the file. Default + 30 days.
 l Inactive every – Set the period of time that the active log file  should be inactivated.
 l Starting at – Set the time at which the newly inactivated log is converted to an 
archive.
 l Print info traces when starting and finishing the archive process – Select this 
option to have the integration engine write an informational entry to the trace viewer 
when it starts the archive process and another one when it finishes the process.
 l Force logger to switch to log file when archiving even if current log file
isn't full  
 l Write debug information to trace log  

B2Bi  2.1 Operations Guide  216


11  B2Bi integration engine management tools

 3.  Select the Script tab:
 l Archiver script panel – In this panel you can develop the script used by the archiver. 
For tips and examples on how to edit this script, see Manage log file archiver scripts on 
page 218.
 l Test script – Click to verify that the script runs as you expect. The test produces input 
files to the script for the test. These test files cannot be used for anything else. This 
means that you cannot restore the test archive into the system.
When you click Test script the a confirmation message is displayed. Click OK to 
continue with the test or Cancel to abort.
When you start the script, a dialog shows that it is running. If the script is in error and 
hangs, click Cancel to stop it.
 l Exclude non-existing files from the archiver file list – During archiving, a list of 
all files referenced in this archive is provided to the archiver script. This list includes all 
of the message files. If for any reason a message file no longer exists, by default, the 
archiver list contains a reference to this file. If your archiver script is not able to deal 
with non-existing files, select this option to have the archiver remove the references to 
the non-existing files. 
Note: References to non-existing files indicate configuration errors, possibly caused by 
MBCs or Maps that violate rules for correct copy/deletion of message data.
 l Write warnings about non existing files to trace log – Write a warning to the 
trace log when the archiver detects non-existing files.
 4.  Click OK.

Add a logger task


To add a logger task to the existing set of logger tasks:

 1.  Right-click anywhere in the Logger Config screen and select New. 
System Profile Manager opens the configuration screen for the new logger task. 
 2.  Select your preferred options (described in the previous section) and click OK.

When you add a new logger:

 l B2Bi restarts all integration engine tasks
 l A new B2Bi Archiver task is created, corresponding to the newly added logger.
 l You can view the new logger task and its corresponding archiver tasks in Task Monitor. See Task 
Monitor on page 229.

Delete a logger task


Only custom logger tasks can be deleted. A custom logger task is a logger task that was added after 
B2Bi installation in System Profile manager. To delete a custom logger task:

217  Operations Guide B2Bi  2.1


System Profile Manager

 1.  Make sure that all user tasks are stopped. You cannot delete a logger task that is actively in use.
 2.  Right-click the logger task you want to delete in the Logger Config screen. Only logger tasks 
that were added after installation can be deleted.
 3.  Select Delete and then confirm the deletion when prompted.

When you delete a logger task:

 l Related inactive log entries are archived.
 l Related logger singleton tasks are deleted.
 l Related archiver tasks are deleted.
 l Indexes related to the logger are deleted.
 l The deleted logger is no longer referenced in the HME.

Manage log file archiver scripts


The when the integration engine performs archiving, it calls a user-defined script to create the 
physical archive files. After the archives are created, the integration engine informs the logger server 
that it has successfully archived the files. The logger then removes all external and internal files.

You must never manually delete any of the internal, index, or external files. Manual deletions lead to 
faults in the archiving. Following a successful archiving process, the logger automatically carries out 
the deleting function.

Script management recommendations


Naming conventions

For ease of tracing archive files, the name of the archive file should contain the date. In scaled 
systems, use a different technique, such as the date followed by a suffix denoting the name of the 
logger.

Error handling

The physical archive file that the archive creates can be very large. If the file is too large for the 
location where it should be stored, the script should exit with a non-zero exit status to abort the 
archiving. This is typically done automatically since commands like tar exit with a non-zero exit 
status in case of failure.

Deactivating outputs

If you do not want to archive the data, configure the archiver script to do nothing. The script then 
simply discards the data.

Reference file

The first input parameter to the user-defined script is a file that contains file references to all files 
that need to be part of the archive. The referenced files are absolute paths from the root directory of 
the file system.

B2Bi  2.1 Operations Guide  218


11  B2Bi integration engine management tools

Default script
When you install the System Profile Manager (with the B2Bi tools client) the Archiver script has the 
following form:

exit 0;
#java -jar $CORE_SOLUTIONS/java/lib/b2bi.archiver.jar -f $1 -p Logger_1_
-d

Where:

 l exit 0; discards data without archiving.
 l #java -jar $CORE_SOLUTIONS/java/lib/b2bi.archiver.jar -f $1 -p Logger_1_
-d is a commented line that, if un-commented, enables archiving to zip file.

Example 1: Enable and schedule archiving


The following example shows the default script modified to enable archiving. To create this script 
you delete the comment character ("#") from the second line of the default script, and add it to the 
first line.

#exit 0;
java -jar $CORE_SOLUTIONS/java/lib/b2bi.archiver.jar -f $1 -p Logger_1_
-d

When you enable archiving, you should check the Scheduling tab of the Modify Logger
Parameters page, and set the logging schedule to correspond to your system requirements.

Example 2: UNIX script using tar to archive data


The following example shows a script for UNIX systems that uses the tar command to create the 
physical archive file. The script creates a .tar (archive) file, in the $CORE_DATA directory, that 
contains all the files from the logger. In this case the system disk space usage is not be reduced by 
archiving. To conserve disk space you could modify the script to archive the data to a storage 
device.

source=$1
archive=$CORE_DATA/`date +%Y-%m-%d`.tar
cd / ;tar cfv $archive `cat $source | sed -e s!/!!`

How this script works:

 l Extracting files – The tar command extracts files from an archive using the same name as is 
used when the files were inserted. This can create a conflict with the run-time system when you 
try to restore an archive with the absolute paths, as specified in the input file to the script.

219  Operations Guide B2Bi  2.1


System Profile Manager

 l Changing the path – This script uses the sed command to remove the root directory 


separator and thereby make the paths relative instead of absolute. When you have paths relative 
to the root directory means that you must change directory to the root directory before running 
the tar command.
 l Reading the input file – Since the standard UNIX tar command cannot read its input from a 
file, the cat command is used to make the input file be command line arguments to tar.
 l Creating a unique file name – To generate an archive file name unique for this archive, use 
the date command, together with the formatting options to get the year, month and today's 
date. Refer to UNIX manual (man) pages for descriptions of the related commands.

Example 3: UNIX script to discard data


The following example script for UNIX systems calls the exit command, which has the effect of 
discarding the data to be archived. The files to be archived are automatically deleted when the script 
finishes.

exit 0

Example 4: Windows script using WinZip to archive data


The following example script for Windows systems uses the WinZip command to create the physical 
archive file. The script creates a .ZIP (archive) file, in the %CORE_DATA% directory. This file contains 
all the files from the logger.  In this case, the system disk space usage is not be reduced by archiving. 
To conserve disk space you could modify the script to archive the data to a storage device.

@echo off
for /F "tokens=2" %%T in ('Date /T') do (set DATE=%%T)
for /F "delims=/ tokens=1" %%T in ("%DATE%") do (set DAY=%%T)
for /F "delims=/ tokens=2" %%T in ("%DATE%") do (set MONTH=%%T)
for /F "delims=/ tokens=3" %%T in ("%DATE%") do (set YEAR=%%T)
set WINZIP="C:\Program Files\WinZip\wzzip"
set SOURCE=%1
set ARCHIVE=%CORE_DATA%\%YEAR%-%MONTH%-%DAY%.zip
%WINZIP% -a -P @%SOURCE% %ARCHIVE%

How this script works:

 l Creating a unique file name –To generate a unique name for the zip file, based on the 


current date, the sample script uses the Windows 2000 command extensions to convert the 
output from the DATE /T command into a string that can be used as a file name. 
 l Adding files to the archive – This script runs the wzzip command, which is a command line 
add-on to WinZip. The options used with the wzzip command tell WinZip to add the files 
defined in the input parameter file to the archive.

B2Bi  2.1 Operations Guide  220


11  B2Bi integration engine management tools

 l Prerequisites – To run the sample script you need to have WinZip with the WinZip Command 
Line Support Add-on installed. The parser for generating the archive file name also requires that 
you have Windows command extensions enabled. Refer to WinZip and Windows help files for 
description of the different commands.

Example 5: Windows script to discard data


The following example script for Windows systems calls the exit command, which has the effect of 
discarding the data to be archived. The files to be archived are automatically deleted when the script 
finishes. This is the default configuration of the archiver script.

exit 0

Troubleshoot log file archiving failures


Currently B2Bi does not support the use of double slashes (// for Linux or \\ for Windows) in 
environment variable paths for the support of log archiving. Log archiving depends on the $CORE_
DATA environment variable. If the value of this variable includes double slashes, an error message is 
generated to the trace log and log archives are not generated.

Logger Searches tab


In the logger searches tab, you can create searches that you can then launch from Message Log.

To create a custom logger search:

 1.  In System Profile manager, select the Logger Searches tab.


 2.  Left click in the tab, and from the context menu, select New.
The Configuration page is displayed.
 3.  Complete the fields:
 l Name – Enter a name for the search. This is the name that will appear to identify the 
search in Message Log.
 l Type – The log-entry event type for which you are searching in the logs. This can be 
any standard or custom logging event that is configured on your system. Examples: 
B2BiSystemEvent, FileSend, MyCustomEvent,..
 l Tag Names – Enter one or more tags that are defined for the event type. Example: 
OrderNo, OrderDate, ...
 l Use backward compatible searches – If this option is not selected, the search is 
made on the combination of a type, a tag and a value. This guarantees that only those 
log entries having the related type, tag and value are returned.
If you select this option, the search returns results for any occurrence of name, type and 
value within a log entry, whether or not the attributes are related to each other.
 4.  Click OK.

221  Operations Guide B2Bi  2.1


System Profile Manager

After you create the search


After you create a search you can select and launch it in Message Log. See Message Log  on page 
179.

Tasks Config tab


Use the Tasks Config tab to  manage MFP and XML Task variables.

Message Feed Protocol (MFP) is an Axway proprietary protocol that you can use to submit files 
directly into the B2Bi integration engine. The protocol also enables you to view a status report after 
files are submitted.  For details about MFP, see Message Feed Protocol on page 382.

Tab display
The Tasks Config tab displays:

 l Fields for modifying MFP Task connections
 l Fields for modifying Interchange Connector connector
 l A button for opening the XML Metadata Browser configuration page
 l Fields for modifying how the integration engine sends events to Sentinel

Modify MFP Task connection parameters


To modify an MFP Task:

 1.  Enter a new value in either of the displayed fields:
 l Listen for connections on TCP/IP port – Specify the listening port for the MFP 
Task.
 l Max number of concurrent connections – Enter an integer value between 1 and 
500.
 2.  Click OK.

Modify Interchange Connector parameters


To modify the integration engine Interchange Connector parameters:

 1.  Enter a new value in either of the displayed fields:
 l Max number or concurrent server connections (outbound) – Enter an integer 
value 1-n (no upper limit).
 l Max number of concurrent receive connections (inbound) – Enter an integer 
value 1-n (no upper limit).
 2.  Click OK.

B2Bi  2.1 Operations Guide  222


11  B2Bi integration engine management tools

Modify XML schemas for the MetaData Browser


To modify the list of XML schemas that are available for use by the integration engine MetaData 
browser:

 1.  In the XML section, click Configuration for MetaData Browser.


 2.  From the list of schemas:
 l To add a schema, click New and then enter the schema Name, Location and Type. Click 
OK.
 l To modify an existing schema, double-click the name of the schema (or select the 
schema and click Open), modify the Name, Location (path) or Type, and click OK.  
Click OK.
 l To remove a schema, select the schema in the list and click Delete.  Click OK.

Modify how the integration engine sends events to Sentinel


Under high volumes of message exchanges, the B2Bi integration engine may delay the delivery of 
events to Sentinel. To avoid this, you can set parameters that control how the integration engine 
sends events:

 l Send mode - Select one of the two following modes for sending integration engine events to 
Sentinel:

 o Direct – Select this option if you want to send events directly to Sentinel without first 
writing them to the overflow file. This increases the rate of transfer of events to Sentinel, 
however, it can significantly reduce integration engine performance.
 o Batch – By default, the integration engine sends events to Sentinel in batch mode, first 
sending them to the overflow file. The integration engine then consumes these events from 
the overflow file and sends them to Sentinel as processing resources allow. This consume-
and-send process can take several minutes, but reserves maximum integration engine 
performance for message-processing tasks.
 l Overflow file safety limit – Enter a percentage as a threshold for when the integration 
engine will begin sending events to Sentinel from the overflow file. The default value is 80% of 
the overflow buffer size. If this threshold percentage is reached, the integration engine begins 
sending events to Sentinel, potentially reducing normal message-processing resources. 

Environment tab
Use the Environment tab to control Message Log behavior, to set the message-processing 
environment variables and to perform other miscellaneous tasks.

Manage logging
To manage Message Log logging behavior, use the following fields:

223  Operations Guide B2Bi  2.1


System Profile Manager

 l Message log level – Select a logging level for Message Log:


 o Off – No logging
 o Normal – Log all basic events, no attributes
 o Detailed – Log an extended set of events and all attribute values
 l Create Message Log indexes – Select this option to enable creation of indexes necessary for 
custom Logger searches.

Manage Sentinel Tracked Objects


To manage how Axway 5 Suite sends event data to Sentinel, use the following fields:

 l Tracked Object Name – View (and optionally change) the name of the Sentinel Tracked 


object that the B2Bi core uses for sending events to Sentinel. For event data to be recorded in 
Sentinel, a Tracked Object with this name must exist in Sentinel. 
Unless you are customizing the way you are sending event data to Sentinel, you should not 
modify this field.
 l Send message processing events to Sentinel – Use this option to activate or deactivate 
the sending of message-processing event messages to Sentinel.
 l Send system events to Sentinel – Use this option to activate or deactivate the sending of 
system event messages to Sentinel.

Manage processing variables


To manage message-processing variables, use the following fields:

 l Enable EDIFACT strict validation – When you enable this option, B2Bi restricts the 


combinations of Syntax version and Syntax Identifier to those allowed by the standard.
 l Max re-processing – When integrations are configured to support message reprocessing, this 
parameter limits the number of reprocessing iterations. This prevents messages from going into 
an endless loop in case of misconfiguration.
 l Generate ACK for unknown documents – When you enable this option, B2Bi generates 
acknowledgements for unknown X12 documents.
 l Stop duplicates from being processed – If you disable this option, in the event of node 
failover, all messages are processed so that the  b ack-end system must deal with duplicates. This 
also generates multiple Message Log entries. The integration engine behavior then depends on 
how the back-end system is set and where the fail-over occurred
If you enable this option, in the event of node failover, all messages are processed so that the  
back-end system must deal with duplicates. This also generates multiple Message Log entries. 
The integration engine behavior then depends on how the back-end system is set and where the 
fail-over occurred.
If this option is enabled, in the event of a node failover, all entries in the message queue are 
tagged as possible duplicates.

B2Bi  2.1 Operations Guide  224


11  B2Bi integration engine management tools

Miscellaneous settings
Use the Misc tab to set the following environmental variables:

 l Enable AMTrix migration – Enables AMTrix-compatible processing in B2Bi. Select this option 


if you have migrated to B2Bi from an AMTrix environment.
 l Enable XIB migration – Enables XIB migration handling in Integration Manager and on the 
B2Bi integration engine. Select this option if you are migrating datasets from an XIB 
environment.
 l User view extension – When enter an extension in this field, the files with specified extension 
always open with a pre-designated editor type.
Be sure to include the dot character “.” in the extension value.
 l Shared file system timeout – Controls the B2Bi shared file system timeout limit.
 l Cluster node timeout – Controls the B2Bi cluster node timeout limit.
 l Number of connection attempts to PM Server – Default = 30. By default, when the 
PM server is unavailable the integration engine tries to reconnect 10 times at intervals of 2 
seconds. To change the default number attempts, enter a new value in this field.
 l Delay between connection attempts to PM Server – Default = 2 (seconds). By default, 
when the PM server is unavailable the integration engine tries to reconnect 10 times at intervals 
of 2 seconds. To change the default interval between attempts, enter a new value in this field.

Sequencing
Use the Sequencing tab to set the environment variable that controls how the integration engine 
controls out of sequence messages. Select one of the options in Out of sequence action drop 
down list:

 l Stop out of sequence messages – When you select this option, out of sequence messages 


are stopped and an error is reported.
 l Pass messages through – When you select this option, out of sequence messages are 
processed with a warning.

Queue monitoring tab


Use the Queue monitoring tab to control how B2Bi monitors the integration message queues. You 
can use this tab to configure B2Bi to poll the number of messages in the integration engine queues 
and to generate warning and error messages if the number of message queues exceeds the 
thresholds that you specify.

The default behavior is to not generate any warning or errors. 

In this tab you can modify the following fields:

 l Queue polling interval – The frequency in seconds that B2Bi polls the integration engine 


message queues.

225  Operations Guide B2Bi  2.1


System Profile Manager

 l Single queue error threshold – The maximum number of items that a single integration 


engine queue can contain before an error event is written to the Trace Log.
 l Total queue error threshold – The maximum number of items that all queues can contain 
before an error event is written to the Trace Log.
 l Queue percentage warning threshold – The percentage of the maximum queue entry 
count at which B2Bi will write a warning event to Trace Log. When the queue number reaches 
100% warnings are no longer written because they are replaced by error events.

Relationship to Sentinel
If integration engine queue monitoring is activated, and B2Bi also is configured for Sentinel 
monitoring, the integration engine queue warnings and events are also sent to Sentinel.

B2Bi  2.1 Operations Guide  226


11  B2Bi integration engine management tools

System Profile Manager advanced properties


page
In addition to the standard set of tabs and commands, System Profile Manager has a "hidden" 
Advanced Properties page, that you can used for special administrative tasks.

Opening the Advanced Properties page


To open the Advanced Properties page, first open System Profile Manager, then enter Ctrl-Alt-S. 
The following screen in displayed:

Field descriptions
 l Debug activation – select the servers to run in debug mode:
 o Kernal server debug
 o Kernal server client debug 
 o Kernal server system debug 
 o Deployment server debug 
 o MapStage server debug 
 o System profile manager debug 

227  Operations Guide B2Bi  2.1


System Profile Manager

 l Minimum CORE_DATA space – Default = 100 MB. The minimum threshold of core data. If 


memory descends below this minimum threshold, the integration engine will stop.
 l Minimum B2BI_SHARED_DATA space – Default = 100 MB. The minimum threshold of B2Bi 
shared data storage. If memory descends below this minimum threshold, the integration engine 
will stop.

B2Bi  2.1 Operations Guide  228


11  B2Bi integration engine management tools

Task Monitor
Use Task Monitor to view the processes that are running on integration engines on all installed 
nodes. The task definitions for these processes are stored in the run-time dataset on each node.

Start Task Monitor


 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi
[Installation Name]> B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.
 3.  From the tool panel, double-click the Task Monitor icon.

Task Monitor organization


The Task Monitor displays two frames:

 l B2Bi Node frame

The top frame (B2Bi Node frame), displays an alphabetical list of all B2Bi nodes that are 
currently running. 
For each node, you can see:
 o Name – Name of the node.
 o Role – Role of the node in the cluster architecture. The role of the node can be System 
and/or Primary Node.
 o The status of the System Tasks and User Tasks. Tasks can have one of the following statuses.

Status Description

Stopped   The task is stopped.

Stopping   The task is stopping and shutting down.

Waiting stop The task is ready to stop.

Starting up The task is starting and initializing.

Running The task is running.

 l Tasks frame

229  Operations Guide B2Bi  2.1


Task Monitor

The bottom frame (Tasks frame) displays a tab for each node listed in the top frame. Select a 
tab to see a list of all tasks running on that node. 
For each task, the frame has a column that displays:
 o Task – Name of the task on the node.
 o Process – Name of the process that supports the task.
 o PID – The ID number the process has in the operating system.
 o Status – The status of the process. Processes can have one of the following statuses:

Status Description

Standby The process is in failover condition and is  expected to start up.

Stopped   The process has stopped.

Stopping   The process is stopping and shutting down.
The integration engine starter server has called the STARTER_STOP 
statement in the stop program or has sent at least one signal to the 
process and is waiting for it to terminate.

Waiting stop The process is waiting to be stopped.
Other processes have to be stopped before the process itself can be 
stopped.

Waiting start The process is waiting to be started. 
Other processes have to be started before the process itself can be 
started.

Starting The process is starting and initializing.
The integration engine starter server is waiting for the process to 
create the file specified by the create-file parameter to the 
STARTER.ProcessAdd statement, or waiting for a server to respond. 

Started  The process has started and is ready to execute processing.

Terminated This status occurs for a short while when a process has unexpectedly 
terminated. 

Waiting to be  The process is waiting to be executed.
run

Running The process has started and is executing.

Finished  The process has completed.
running

B2Bi  2.1 Operations Guide  230


11  B2Bi integration engine management tools

Relationship to Sentinel
If B2Bi is configured for Sentinel monitoring, changes in the status of a task in the integration 
engine are also sent to Sentinel.

Task Monitor views


You can use either the View menu on the menu bar or the icons at the top of the page to select one 
of the following task frame views:

 l All tasks – Displays all tasks of an integration engine in each integration engine tab.
 l System – Displays only system tasks in each integration engine tab. The System processes 
correspond to the tasks started when you start the integration engine on Windows by starting 
the Integration Engine service in Services, or on UNIX by executing core_servers start. 
You cannot start or stop these processes from within the integration engine, but you can view 
details about them.
 l User – (Default view) Displays only user tasks in each integration engine tab.

View task process details


To view details about a process that supports any task, in the task frame (bottom frame) of the task 
monitor, double-click any name in the Task column. Task Monitor opens a process details window. 
The process properties are displayed. 

You cannot modify these properties, but you may need to display them for technical support 
purposes.

This detail window has three tabs:

 l General tab - Displays the following fields:
 o Name – Displays the name of the task.
 o Command – Displays the location and name of the command that drives the task.
 l Start/Stop Parameters tab – displays the following fields:
 o Start attempts
 o Start delay (seconds)
 o Start timeout (seconds)
 o Minimum uptime (seconds)
 o Create file
 o Stop timeout (seconds)
 o Stop delay (seconds)
 o Stop program

231  Operations Guide B2Bi  2.1


Task Monitor

 l Other tab – displays the following fields:
 o Dependencies 
 o Stop signals

Start and stop processes


Only user processes can be started and stopped from Task Monitor. 

The processes correspond to the tasks in the integration engine run-time dataset. One process exists 
for each task on the Tasks tab. 

Caution: Although you can use Task Monitor to start and stop processes from within the integration 
engine, this is not recommended. We recommend you stop the B2Bi trading engine instead. 
Stopping the B2Bi trading engine triggers the stop of the integration engine processes.

Stop a process
To manually stop a started process, 

 1.  Right-click the name of a user task in the list of tasks for an integration engine
 2.  On the File menu, click Stop.
The integration engine stops the selected process. Its status changes to "Stopped" and the 
stopped icon appears. The integration engine also stops any processes that are dependent on 
the selected process.

Start a process
To manually start a stopped process:

 1.  Right-click the name of a user task in the list of tasks for an integration engine.
 2.  On the File menu, click Start. 
The integration engine starts the selected process, and the started icon is shown. After the 
integration engine starts, the status of the selected process is displayed as "Started" and the 
started icon appears.

Generate a process variables file


Use the menu command File > Dump variables to write the contents of the Message Builder 
Component variables in the process to a file. You can execute this command on any processing 
engine task in the Task Monitor list display.

To create a variable dump file:

B2Bi  2.1 Operations Guide  232


11  B2Bi integration engine management tools

 1.  Make sure you have selected to display either All Tasks or User Tasks.


 2.  From the list of tasks, select a Processing Engine Task (Procengine Task) . 
 3.  Select File > Dump variables from the menu bar. Alternatively, you can right-click the task 
name and select Dump variables from the context menu.
Task Monitor opens a file save window.
 4.  Enter a name for the variable dump file and select a location for the file on you local machine.
 5.  Click Save.

233  Operations Guide B2Bi  2.1


Trace Viewer

Trace Viewer
Use Trace Viewer to view system related trace messages generated as the integration engine runs. 
A trace message is a non-structured message. It has no predefined form, and it is up to the program 
generating the trace to freely create the message. Trace messages are typically generated in two 
cases:

 l If an error occurs in a program it might generate a trace message detailing the error.
 l If a program has been started in debug mode it might write informative trace messages about its 
actions. In this case, trace messages are continuously generated. To view them, you must define 
filters to restrict the amount of information displayed. 

Viewing trace messages is helpful to system administrator  troubleshooting problems. 

Trace Viewer is for monitoring system-related events. To view message-processing traces generated 
on the integration engine, see Message Log  on page 179.

Start Trace Viewer


 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi
[Installation Name]> B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.
 3.  From the tool panel, double-click the Trace Viewer icon.
No information is displayed in Trace Viewer trace list (right pane) until you launch a search.

Work in Trace Viewer

Event severity icons


Trace Viewer displays icons on messages that indicate eight levels of event severity:

Icon Type

Debug

Information

Warning

B2Bi  2.1 Operations Guide  234


11  B2Bi integration engine management tools

Icon Type

Error

Fatal

Audit

Resend

Custom

Current date and time


The current day of the week, date and time is displayed on the status bar on the lower border of the 
screen.

Trace server connection status


The number of available trace server connections (one for each cluster), and the number of active 
connections is displayed on the right side of the menu bar.

Use an existing search filter


From the Favorite searches list (left panel), double click the name of a search.

Trace Viewer displays all trace log entries that correspond to the search criteria.

Create a filtered search


Double-click one of the predefined filters, or create a new filter following the steps below:

 1.  On the File menu, click New.
Alternatively, you can click the New search... icon on the toolbar.
 2.  Enter a name for the filtered search.
 3.  Specify the filtering criteria for your search:

235  Operations Guide B2Bi  2.1


Trace Viewer

Item Action

Relative range To specify a relative start period in the past as a point of departure for 
search results, select the Relative range option, then enter a number of 
days/hours/minutes/seconds as the beginning relative time for filtering.

Absolute  To limit the trace to a specific time interval, select the Absolute Range 


range / From option, then the date and time for the beginning of the traces to display.

Absolute  To limit the trace to a specific time interval, select the Absolute Range 


range / To option, then the date and time for the end of the traces to display.

Severity If you do not want to limit the trace display to the severity of warning 
messages, choose Select All. 
To filter based on the severity of warning messages, and/or to include 
audit event entries, select Specify Level, then select the check boxes for 
the items you want to display:
 l DEBUG
 l FATAL
 l INFO
 l AUDIT
 l WARNING

 l CUSTOM
 l ERROR

Custom  If you selected Specify Level, you can also enter a custom severity type in 
Severity type the text box.

Source type  Select a filter trace type:
filter  l Select all – No source filter applied
 l B2Bi – B2Bi traces only
 l Specify – Select this filter option, then enter a string to use as 
a filter on traces.

Program Specify the program that generates the trace messages. For example, if you 
enter cfgserver, only entries that refer to the cfgserver program are be 
listed. If you enter r4edi*, all entries referring to programs that begin with 
the string r4edi are listed. If you enter *tool_toolbox*, all entries that refer 
to program names that contain the string tool_toolbox are listed.

B2Bi  2.1 Operations Guide  236


11  B2Bi integration engine management tools

Item Action

Free text Specify text that should be contained in the trace message.  For example, if 
you enter admin, only messages containing the text “admin” will be listed. 
If you enter admin*, all messages that begin with the text “admin” will be 
listed. If you enter *admin*, all messages that contain the text “admin” 
anywhere in the message will be listed.

Continuously  Select this option to continuously collect and update display information.
collect trace 
information

 4.  Click Apply to store the selections.
 5.  Click OK.
The selected trace log is displayed in Trace Viewer. It displays the data and time of each 
occurrence, the node generating the occurrence, the program generating the occurrence, and 
the message.

Edit an existing search


 1.  In the Favorite Filters list (left pane) click the name of a saved search to select it. 
 2.  From the menu bar, select File > Open.
Trace Viewer opens the editing page for the selected search.

 3.  Modify the search filters as required.
 4.  Click Apply. 

Pause Trace Viewer


To view an individual log entry, first select View > Pause to stop the log display temporarily. The 
trace log continues to store entries that can be viewed when Trace Viewer is activated.

Activate Trace Viewer


To activate Trace Viewer, click View > Activate.

Clear the trace list


To clear the display of trace entries, click View > Clear Trace List. This clears the display only, 
not the log. To repopulate the display, select the new filter settings.

237  Operations Guide B2Bi  2.1


Trace Viewer

Sort the log entries chronologically


Since the trace messages are written from several different tasks, you need to sort them to get them 
in chronological order. To do that, click View > Sort.

Copy log entries


To copy one or more entries, select the entry/entries you want to copy, and then click View >
Copy. The entries are stored in the paste buffer and you can paste them into a file or email.

View individual log entries


To view a specific log entry, select the entry and click File > Open. The dialog box shows the same 
information as in the log entry line, but in an easier-to-read format.

B2Bi  2.1 Operations Guide  238


11  B2Bi integration engine management tools

User Manager
Use the User Manager to specify and control user access to the B2Bi tools on the local node. You 
can create users and groups of users and assign different rights to them to control the tools and 
features they can access. 

Note: This tool is only available if Passport AM is not used as the identity provider.

Start User Manager


 1.  From the Windows Start menu select All Programs > Axway Software > Axway B2Bi
[Installation Name]> B2Bi Tools > B2Bi Tools Client.
 2.  Enter your Login and Password.
The default login and password are both admin. However, the admin user can change the 
password and create additional logins in User Manager.
 3.  From the tool panel, double-click the User Manager icon.

Work in User Manager


The top pane in User Manager lists individual logins that have been defined, and the bottom pane 
lists groups.

Access rights are specified for each tool in such a way that access can be denied. If access is denied, 
the  icon for the tool will not appear, making it impossible to run.

There are three access levels to each tool, and the access rights associated with the three levels vary 
depending on the tool:

Access Description
Level

Admin Administration access rights are allowed. This access is typically unrestricted 
and all of the functionality of the tool is available.

User User access rights are allowed. For some tools, this includes read-only access 
to the information managed with the tool.

Other Access rights other than those for Admin or User are allowed. For some tools, 
Other access allows partial access to the tool; some (but not all) of the 
functionality is available.

239  Operations Guide B2Bi  2.1


User Manager

Manage groups in User Manager


Use groups to specify the access rights to specific B2Bi tools for a subset of users. For example, a 
group called Developers might be created to provide access to the tools the developers need to use.

Default B2Bi User Groups


Five user groups are created during installation:

Group Access

B2Bi Monitoring Trace Viewer
(Support Level 1) Message Log – Read only (cannot edit or resend)
EDI Tracker – Read only (cannot edit or resend)
File Viewer

B2Bi Operators Trace Viewer
(Support Level 2) Message Log – Can edit and resend
EDI Tracker – Can edit and resend
File Viewer
Performance Monitor
Queue Monitor
Logger Utility
Alert Manager
Task Monitor

B2Bi Developers Same as B2Bi Monitoring, plus:
Remote Compiler
Character Sets Manager
Datamapper (link to start the Datamapper client on the local PC)
Datamapper Builder
Metadata Browser

Administrators All of the above, plus User Manager
Note: You cannot modify or delete the Administrators group.

Users Alert Manager (restricted access)
Datamapper Builder (restricted access)
Message Log
Metadata Browser (restricted access)
Trace Viewer

B2Bi  2.1 Operations Guide  240


11  B2Bi integration engine management tools

Create or change a group


You can create a new group, or change an existing group's details or access rights.

 1.  On the File menu, click New Group, or double-click the group that you want to change.


 2.  Enter or change the Name and Description for the group.
 3.  To specify access rights to tools, click Tools. 
 4.  To add a tool to the Available tools list, select the tool in the right pane and click Add.
 5.  To specify the access level for the tool, click Admin, User, or Other.
For more information about these access levels, see Work in User Manager.
 6.  Repeat steps 4-5 for each tool the group needs to be able to access. Then, click OK.
 7.  To define the actions that generate an audit event entry in Trace Viewer, click Audit.
 8.  Select an action under Available and click Add to move it to the left side. Repeat for other 
actions as needed. Then, click OK to save the changes and close the Audit dialog box.
 9.  To save the group, click OK.

Delete a group
Before you delete a group, keep the following in mind:

 l You cannot delete the Administrators group.
 l You cannot delete a group that is associated with one or more logins. First modify each login to 
remove the group association, then delete the group.

Manage logins in User Manager


A login specifies a user's access rights to the B2Bi tools. You specify the user's access rights by 
associating one or more groups with the user's login. When there are multiple groups associated 
with a login, the highest level of access (the maximum accessibility) for a given tool applies.

A change to a login (or to a group) takes effect immediately in the following sense:

 l Any users who subsequently log in using the login have the modified access rights.
 l Any users logged in using the login at the time of the change continue to have the original 
access rights until they log off.

Note: The admin login is predefined. It cannot be deleted and its associated access rights cannot be 
changed. However, you can change the password, which by default is "admin". Anyone logging in 
to the B2Bi Tools Client with this login has unrestricted access to all of the tools and their functions.

241  Operations Guide B2Bi  2.1


User Manager

Primary and secondary groups


A login must have a primary group associated with it. It may or may not have one or more secondary 
groups associated with it. There is no distinction between primary and secondary groups except that 
the primary group associated with a login is used to determine group ownership of records. 

Create or change a login


You can create a new login, or change the group(s) associated with an existing login. Before you 
begin, ensure each required group exists with the correct access rights. For more information, see 
Create or change a group.

 1.  On the File menu, click New User, or double-click the login that you want to change.


 2.  Specify the user information. All fields except Description are required.
 3.  Click the Groups button.
 4.  In the Primary Group box, select the group that will be associated with records the user 
creates.
 5.  Under Secondary Groups, if needed, select a group on the right side and click Add to move it 
to the Member of list on the left. Repeat as needed for any other groups.
 6.  Click OK to save the group selections.
 7.  To save the login information, click OK.

Delete a login
Before you delete a login, keep the following in mind:

 l You cannot delete the admin login.
 l You cannot delete a login if a user is currently signed in using that login.

To delete a login:

 1.  Select the login that you want to delete.
 2.  On the File menu, click Delete.
 3.  Click OK to confirm that you want to delete the login.

B2Bi  2.1 Operations Guide  242


Tools in tools directory
12  
The tools directory at <trading engine install directory>\tools contains many tools. 
The following table summarizes the tools and provides links for more information about some of 
them. Some of these tools are easy to use, but others are not intended for use by end users or 
should be used only on the advice of technical support.

If you use Windows, the names of these tools have an extension of .cmd (for example,
as1Tool.cmd). If you use UNIX, whether or not the tools have an extension depends on the 
specific brand of UNIX or Linux OS (for example, as1Tool or as1Tool.sh). This does not apply to 
scripts with extension of .sql. 

Depending on whether you use Windows or UNIX, some of these tools may not have been installed 
with the application. If a tool changes a value in the database, restart the server for the change to 
take effect.

Tool Description

as1Tool Packages, unpackages and dumps EDIINT messages. This 
tool is not for use by end users.

as2Tool Packages, unpackages and dumps EDIINT messages. This 
tool is not for use by end users.

as3Tool Packages, unpackages and dumps EDIINT messages. This 
tool is not for use by end users.

asxTool Packages, unpackages and dumps EDIINT messages. This 
tool is not for use by end users.

certScan Scans public-key certificates and reports information, 
warnings and errors. See Analyze certificates for errors.

certStats Collects statistics about the certificates in the database. 

crlPurgeHttpsClient Removes outdated CRLs from the CRL table and file system. 
See Purge old CRLs.

dataMover Migrates data from one database to another. This tool is to 
be used only by some Activator users under the supervision 
of technical support. 

B2Bi  2.1 Operations Guide  243


12  Tools in tools directory

Tool Description

deallocateClob De-allocates Character Large Object (CLOB) data types in 
Oracle databases. Recommended for use only by database 
administrators and experienced users of Oracle.
Before version 5.6, Interchange misallocated CLOB for 
some database tables. This could result in a database 
eventually running out of space. We recommend using this 
tool if you use a version before 5.6 or are upgrading. The 
tool performs a limited unit of work at each invocation. As 
the amount of misallocated storage can vary from one 
installation to another, you can run the tool repeatedly 
until the tool generates messages indicating there is no 
more unnecessary CLOB storage to remove.
Run the tool without parameters from a command line to 
display instructions for use.
This tool is not necessary if you are using a current version 
of Interchange.

deletePedigrees Deletes ePedigree records in the database. This tool is 
intended for use in a development or test environment 
only. Run the tool without parameters to display 
instructions. Only users whose licenses support ePedigree 
should use this tool.

derby_IJ Enables SQL queries of a Derby database. This tool is not 
for use by end users.

diagnose When performing troubleshooting, this tool can be used to 
compress and send log files to technical support. Technical 
support often requests log files when helping users. Run 
the tool from a command line and follow the menu 
prompts.
For information about how to submit log files to technical 
support through the user interface, see Send log files to 
technical support.

diff The diff tool is similar to the Unix diff tool and the 
Windows comp tool. It improves upon these tools by 
reporting the offsets of differences even in binary files. 
Also, it is platform independent, and it sets exit codes to 
allow shell scripts or batch files to make use of the tool. 
Very large files are processed using Java nio buffers for 
efficiency. The tool provides help if you invoke it with -?.

244  Operations Guide B2Bi  2.1


Tool Description

dirTester Tests the Java temp or other specified directory by writing 
an unbuffered and a buffered temp file. This tool is for use 
only upon advice of technical support.

ebxmlCpaSchematronValidator Performs tests on the content of the ebXML CPA. The tool 
makes sure matching elements in each PartyInfo 
element of the ebXML CPA are consistent. 

ebxmlCpaSecurityGuard Used for digitally signing CPAs. Its various functions all 
relate to signing and verifying digital signatures of a CPA. 

ebxmlCpaValidator Performs a schema validation on a CPA. 

exportProfile Exports community and partner profiles to XML files. 
Community profiles are exported as partner profiles. 
Partner profiles also can be exported as partner profiles, 
either singly or in a batch. Run exportProfile without 
parameters to display directions for using the tool. This 
tool is only for use with B2Bi 5.4 or later.

externalConfigBackupRestore.cmd For the use of this tool, see Back up and restore a custom 
configuration on page 377.

extractSpecialTarFiles The tar command has a known limitation for archive entries 
bigger than 8 GB in size.
Use this tool to unpack tar files created by B2Bi when they 
have a size larger than 8GB.
Use this tool from the command line with the following 
syntax:
extractSpecialTarFiles <soruce_file.tar.gz>
<destination_directory>

fillInMessageDirection For messages traded before upgrading to version 5.4 or 
later of B2Bi, this tool adds metadata to the database 
regarding the direction of traded messages (inbound, 
outbound). Message direction displays in the search results 
of Message Tracker.
Use of this tool is optional if you have used versions earlier 
than 5.4. The tool is not needed if you did not use a 
version earlier than 5.4.
Run this tool only when the server is not running. If the 
database contains thousands of records, it may take hours 
for the tool to run. If you start the tool and end the process 
before it is completed, you can re-start the tool later and it 
picks up where it left off.

B2Bi  2.1 Operations Guide  245


12  Tools in tools directory

Tool Description

ftpTester Verifies interoperability of the trading engine with FTP 
servers. 

httpTester Tests whether an HTTP client can connect to the HTTP 
server. This tool is for use only upon advice of technical 
support.

jmsTester Checks for proper configuration of JMS queues.

keyInfoWriter Extracts KeyInfo element information from a certificate for 
use in a CPA for ebXML trading. See Extract KeyInfo 
element for a CPA.

listTimeZones Lists all available time zones for the JRE in use on a 
computer.

logViewer Interleaves multiple log files and sorts log entries 
chronologically. It also can filter log categories, log levels 
and threads. This tool is not for use by end users.

manageTrading Starts/stops trading engines and pauses trading engine 
message consumption. This tool supports the following 
options:
 l manageTrading help
 l manageTrading processing start [transient] – Starts all 
trading engines on the local server. When "transient" 
option is specified, the nodesmembership table does not 
update the flag that indicates if a node is automatically 
started or not at server startup.
 l manageTrading processing stop [transient] – Stops all 
trading engines on the local server. Same comment on 
the "transient" option as for start.
 l manageTrading consumption pause – Engages the 
Pause Consumption system throttler across all trading 
engines in the cluster.
 l manageTrading consumption resume – Stops the Pause 
Consumption system throttler across all trading engines 
in the cluster.

mapProxyDeployer Enables you to list, deploy, and remove containers from 
the deployment server Map Proxy. 
For details of how to use this tool, see Command line 
interface for the deployment server on page 79.

246  Operations Guide B2Bi  2.1


Tool Description

messagePurgeTool Immediately deletes all database records of traded 
messages and all files in the backup directory. See Purge 
trading engine manually on page 459.

mmdGenerator Used to generate all possible MMDs or a specific MMD for 
an ebXML CPA. 

modifyUIPorts Resets the HTTP user interface port in the event of a port 
conflict that makes the UI inaccessible. This tool is for use 
only upon advice of technical support. Run the tool 
without parameters to display instructions for use. In 
addition, read the port resetting instructions in the 
startup.xml file at <install directory>\conf.

netInfo Finds network interfaces for a computer. 

oracle_create_table Script for implementing Oracle custom tablespaces. See 
Spaces.sql the Oracle custom tablespaces option of the Interchange 
Installation Guide.

partyInfo Lists the names and details about the community, partner 
and WebTrader profiles configured in B2Bi and the totals 
for each profile type. This tool provides a way to obtain 
information about profiles outside of the user interface.

passportIntegrationConfig Enables you to set the B2Bi / PassPort connection 
parameters from a command line.

rejectInprocessMessages Sets B2Bi messages that are stuck in the in-process state to 
a status of failed. This tool is for use only upon advice of 
technical support, and only when all TE and CN nodes are 
stopped. Run the tool without parameters to display a list 
of valid parameters.

sftpTester Verifies the operation of the SFTP client in the trading 
engine and a partner’s SFTP server.

sysInfo Displays system information such as the operating system, 
memory statistics, JVM class path and JVM library path. 
This information also writes to <install
directory>\logs\sysInfo.log.

systemBackupRestore Command line tool for backup and restore functions. See 
System configuration backup/restore using the command 
line on page 357.

B2Bi  2.1 Operations Guide  247


12  Tools in tools directory

Tool Description

treeScan Scans the collaboration and action trees for corruption. 

uiSslConfig Backup tool for editing the ...conf\startup.xml file in 
case the setup method described in Configure 
UI connection does not work properly.

upgradeCompare Searches for and lists changes made to an installation tree 
after a snapshot was taken with the upgradeList tool. 
This tool is used when upgrading. 

upgradeDiff Recursively compares the sizes of system files in the old 
and new installation directory trees. This tool is used when 
upgrading. 

upgradeList Generates a snapshot of the entire application installation 
directory tree. This tool is used when upgrading. 

versionInfo Lists the version and build number of the installed 
application. Run the tool without parameters to generate 
the list.

248  Operations Guide B2Bi  2.1


B2Bi system tuning and
troubleshooting 13  
The topics in this chapter provide methods and procedures for tuning your B2Bi installation for 
optimum levels of performance. This chapter includes the following sections:

 l B2Bi I/O management on page 276
 l Java memory usage on page 279
 l Manage sockets and Oracle processes on page 286

 l Network tuning  on page 285
 l Troubleshoot unexpected trading engine restarts on page 288
 l Troubleshoot startup failure with large numbers of trading pickups on page 294
 l Troubleshoot integration engine selects wrong IP address from backup network interface on 
page 270

B2Bi  2.1 Operations Guide  249


13  B2Bi system tuning and troubleshooting

B2Bi I/O management


For best system performance, monitor and tune your B2Bi I/O system usage.

Using the monitor tool


Use the following program to monitor I/O usage: 

 [integration_engine_install_directory]\solutions\4edi\pgm\b2bi_
diskaccesstime.x4

This tool returns two values: synchronized and unsynchronized.

Command recommendations:

 l Run the command when there is no traffic.
 l Run the command several times to obtain average values.

Example results
> r4edi diskaccess.x4

Synchronized Unsynchronized
B2BI_SHARE_DATA 1.220 ms 0.085 ms
CORE_ROOT 1.395 ms 0.085 ms
CORE_DATA 1.385 ms 0.050 ms

Analyzing the results


A synchronized time of < 5 ms is a desired value. A synchronized time in the range of 5-10 ms is 
an acceptable value, but may indicate the need for additional cluster tuning to improve overall 
performance and reduce communication errors.

Unsynchronized time: < 0.2 ms is an acceptable value.

Adjusting I/O performance


The following are possible actions to improve access time if monitor values are greater than the 
acceptable times.

250  Operations Guide B2Bi  2.1


B2Bi I/O management

Action 1: Set memory message size limit


Attention: Execute the following actions only with the assistance of an Axway expert or support.

In the B2Bi server, set the limit for caching message content in memory (default = 4096 kb) :

 l When the message size is < limit, the message is cached in memory
 l When the message size is > limit, the message is written in to physical file in the integration 
engine filer directory

Example :  Suppose you typically process a high load (more than 5 msg/sec) and messages are 
around 10kb in size.

 1.  Make sure also that there is enough memory available on the system to handle the load. 
 2.  Increase the limit in order to use more memory and limit the I/O usage.
To increase the limit, run the B2Bi installer in Configure mode. Select to configure the Server, 
and reset the  value Message size limit for caching message content in memory to a 
higher value.

Action 2: Modify integration engine environment


variables
Attention: Execute the following actions only with the assistance of an Axway expert or support.

Example : Suppose you want to handle high loads of messages (more than 5 msg/sec) and have 
configured B2Bi so that message entry creates a large number of entries in the Message Log.

Use System Profile Manager to control the logging behavior.

On the System Profile Manager > Environment tab > Message logging section, set the Message
logging level value to no logging.

Action 3: Create separate UNIX disk mounts


Create two separate UNIX/Linux mounts to speed up disk I/O: Create one mount for the trading 
engine and one mount for the integration engine.

Action 4: Tune archiving


I/O can be slow because the logger is overloaded. Make sure that the archiving is working properly.

Attention: Execute the following actions only with the assistance of an Axway expert or support.

 1.  Check Message Log for entries older than 7 days.
 2.  Check if there are fxxx files older than 7 days located in $B2BI_SHARED/data/filer .

B2Bi  2.1 Operations Guide  251


13  B2Bi system tuning and troubleshooting

Note: You can use  filer_list.x4 and filerutil.x4 to list and remove filer files. See 
procedures below.
 3.  Verify that there are no “old” active entries (old means that the message processing stopped for 
different reasons) which can slow down the logger. If old entries exist, analyze the entries to 
understand why the processing is not complete, and reprocess or inactivate active entries 
accordingly. To inactivate entries, do one of the following:
 l Use LOGGER_OPTIONS –R.
 l Manually inactivate the entries in Message Log.

Using Filer_list
 1.  Run Integrator profile.
 2.  Run  r4edi ~/filer_list.x4 $B2BI_SHARED_DATA/filer > $CORE_ROOT/filer_data
 3.  Check the results in filer_data.

Using Filerutil
 1.  To list all files older than <_no_of_days_> :
r4edi filerutil.x4 -a $CORE_LOCAL/config/passwd -r $B2BI_SHARED_
DATA/data/filer/singleton/ -t _no_of_days_

 2.  To delete the files older than  <_no_of_days_> :
r4edi filerutil.x4 -a $CORE_LOCAL/config/passwd -r $B2BI_SHARED_
DATA/data/filer/singleton/ -t _no_of_days_ -D

Action 5: Improve I/O coherence


Problems in the coherence between two nodes can result in one or more of the following errors:

 l "Failed to start filer directory"
 l "Filer insert reply: Returned filer file xxx is not empty"
 l "UTIL_FILESTATUS: failed to fetch status for file xxx" 
 l "Stale NFS file handle"
 l "Filer insert reply xxx doesn't exist"

Attention: Execute the following actions only with the assistance of an Axway expert or support.

 l Test IO coherence using http://wiki.samba.org/index.php/Ping_pong. 
Note: This IO coherence test requires working fs locks.

252  Operations Guide B2Bi  2.1


Java memory usage

Java memory usage


The Java maximum memory limit can be reached in cases of high load and when B2Bi processes 
large messages. Exceeding the memory limit can lead to the following types of errors (depending on 
the component module that throws the error):

 l “no memory left”
 l “java heap space” 

To manage this type of error:

 l Check the amount of memory that is available when you perform a load test. To do this you can 
use tool such as top, topas, free, nmon or Task Manager, depending on the OS. Make sure the 
system has enough memory to handle the load. The minimum memory required is 4GB. 
Depending on your configuration and processing load, this number varies. In many cases, 10 to 
16 GB of memory is required.
 l Check if Xmx values are high enough in the integration engine and in the trading engine.
 o Integration engine – Set the Xmx value in the file $CORE_
LOCAL/config/java/jvm.cfg

Example on a UNIX system  : UNIX:Replace '-Xmx128M') 


You can set the integration engine memory limit in any configuration file that is referenced in 
the environment variable CORE_JVM_COMMON_CREATE_FILES.

 o Trading engine – Open the file <trading_engine_install_
directory>/conf/jvmArguments.xml in a text editor, and modify the Xmx value for the 
related node. For additional information see Tune the trading engine on page 280.

B2Bi  2.1 Operations Guide  253


13  B2Bi system tuning and troubleshooting

Tune the trading engine


This chapter describes parameters and settings that you can use to manage trading engine behavior.

Manage the Java heap size


Two parameters control the allowed range of the JVM heap size in for the B2Bi trading engine: Xms 
and Xmx (initial low and initial high, respectively). Both default to 256m in the 
Interchange/bin/startServer file. These parameters also govern the Java heap used by the 
Executive Node JVM.

The place to change the actual Xms and Xmx values used for the Control Node (CN) and Trading 
Engine (TE) JVM nodes is in the Interchange/conf/jvmArguments.xml file. The best practice is 
to keep both parameters equivalent to each other's value for a given JVM. For example, the CN can 
have Xms512m and Xmx512m while the TE has Xms1024m and Xmx1024m, because within a JVM 
the values are equivalent.

Setting the optimal value for the JVM is often a trial and error process, based on transaction size, 
transaction volumes, OS, hardware, etc. On most low-volume systems, no tuning is required. High-
volume systems can typically benefit from tuning.

The effective maximum value you can use for this setting is 2048 MB. Note that for values above 
1024 MB, there is a risk that JAVA consumes more resources for memory management than it 
benefits from additional memory allotment. 

In any case, the values of the Executive, CN and TE Java heaps combined must not exceed the 
physical memory of the machine. Additionally, be sure to reserve some free RAM for the OS to use 
(minimum recommended is one half Gigabyte).

To change the default heap size settings:

 1.  Go to <Interchange_install_directory>/conf/ and open the jvmarguments.xml file 
in an editor.
 2.  Locate the following lines in the file (TE example):

<NodeType type="TE"
class="com.axway.clusterold.startup.Boot">
<Option>${axway.haboob.heap.initial}</Option>
<Option>${axway.haboob.heap.maximum}</Option>

 3.  Replace the initial and maximum heap variables with values as shown in the following 

254  Operations Guide B2Bi  2.1


Tune the trading engine

examples:

<NodeType type="TE"
class="com.axway.clusterold.startup.Boot">
<Option>Xms1024m</Option>
<Option>Xmx1024m</Option>

 4.  Save the file.

Manage operating properties


There are two ways to adjust the operating properties of the B2Bi trading engine. You can edit the 
tuning.properties file, or you can change values in the UI on the "System properties" page.

tuning.properties file
You can manage a specific set of trading engine properties from the tuning.properties file, 
located in [Interchange_install_directory]/conf. Trading engine properties not supported 
in this file can be set in the System properties page, see System properties page on page 258.

The properties in this file are applied only to the node where the tuning.properties file is 
located. You must set the property for each node of a cluster by modifying the file for each node.

By default, tuning.properties is empty, which indicates that all of its entries are operating at 
their default values.

You can set the following tuning parameters by adding them to tuning.properties. As with 
setting the JVM value, it is impossible to suggest optimum values for these settings. Any changes in 
this file only take effect after stopping and restarting B2Bi.

The following is an example of a line that has been added to this file:

systemThrottle.pausePickups=true  

The following table lists parameters that you can add to the tuning properties file.

tuning.properties parameter Default Notes


Setting

connectionPool.testOnBorrow true default = true

connectionPool.testOnReturn true    default = true

httpExchange.replytimeout 1800000    default = 30 * 60 * 1000 (30 minutes)

B2Bi  2.1 Operations Guide  255


13  B2Bi system tuning and troubleshooting

tuning.properties parameter Default Notes


Setting

maxUIViewablePayloadSize  12000000 The max number of bytes a payload can 


be and still be viewed in a browser.

messagePurge.Interval 15 The number of  minutes  b etween one  


round  o f  message purges and the next.

messagePurge.maxMessageToPurge 5000 In interval-based purging, the total 


number of messages to delete in one 
interval period.

messagePurge.onceADayHour 0 If messagePurge.onceADay is set to true, 
this field controls the hour of the day to 
run the purge. Values are from 0 to 23 
only.

messagePurge.onceADay False Instead of running a continuous purge, 


run purge once a day. Valid values are 
true/false.

messagePurge.Tasks 5 The number of tasks that will be 
scheduled to perform message purge.

producerScheduler.useCoordinator  true    Default = true   

retryIntervalMinutes 5, 10, 15,  The last interval will be repeated as 


30, 60  necessary.

startupSynchronizer.disable false    Disables the cluster startup 


synchronization.

startupSynchronizer.multicastAddre The  multicast  address  uses  to synchronize  
ss  232.92.56. the startup of Control nodes.
63

startupSynchronizer.multicastPort    47556 The port used to synchronize the startup 


of Control nodes.

statsServer.appletHeight 620    The height of the stats monitor applet in 


pixels.

statsServer.port  3579 The  p ort  o ver  which the  stats  monitor  


applet connects to the Control node.

256  Operations Guide B2Bi  2.1


Tune the trading engine

tuning.properties parameter Default Notes


Setting

systemThrottle.checkInterval 1000 The system throttle runs as a background 


thread, periodically checking system 
resources. This parameter specifies in 
milliseconds the frequency of the check.

systemThrottle.disable false default = false

systemThrottle.gcEnabled true Indicates whether a garbage collection 


should be invoked if the system is found 
to be low on memory. This will only have 
an effect if 
systemThrottle.minimumBytesFree 
is greater than zero.

systemThrottle.maximumTaskQueu 150 The system throttle engages if the 


eSize number of active tasks plus the number 
of queued tasks is greater than this 
number.

systemThrottle.minimumBytesFree 0 The system throttle engages if available 
heap falls below this number. Default 
value is zero, which indicates that the 
memory should not be checked.

systemThrottle.pausePickups true  

taskScheduler.maxThreads 50 This value should always be 1/3 of the 
systemThrottle.maximumTaskQueue
Size value (as illustrated by the default 
values displayed in this table). 

ui.maxTrackerPurgeCount 1000 Limits the number of messages that can 


be purged via the UI.

virtualData.bufferSizeIncrement 52429 Default = virtualData.maxBufferSize * 


0.10

virtualData.maxBufferSize 524288 Default = 512 * 1024

virtualData.startBufferSize 131072 Default = virtualData.maxBufferSize * 


0.25

B2Bi  2.1 Operations Guide  257


13  B2Bi system tuning and troubleshooting

System properties page


The "System properties" page enables system administrators to configure a wide range of trading 
engine parameters. The individual properties you can configure are described on the UI page.

Caution: Incorrectly modifying values on this page can severely degrade product behavior. Do not 
modify values on this page without explicit guidance from Axway support.

To access the "hidden" default System Properties configuration page, point your browser to 
http://<hostname>:6080/ui/core/SystemProperties. Trading engine properties not 
displayed on this page can be set in the tuning.properties file; see tuning.properties file on 
page 255.

In some cases, changes in this page  take effect immediately, while in other cases a product stop and 
restart are required. If you fail to see an immediate change in B2Bi behavior, try a stop/restart.

258  Operations Guide B2Bi  2.1


Network tuning

Network tuning

Testing your network connections


Use the ping command to test the response time to:

 l Shared disk
 l B2Bi database
 l Integration engine database

An acceptable maximum response time is to the shared disk is 15 seconds.

You must obtain a response time to the remote database of less than 5 seconds.

If  the database response is over five seconds, the failover functionality shuts down the node. The 
following error is generated:

B2Bi Supervisor:282:Database is not available, request timed out.


Request issued 6 seconds ago.

B2Bi Supervisor:587:Set Forced Stop

Resolving slow database response time


Attention: Execute the following actions only with the assistance of an Axway expert or support.

A good first step is to confirm that the database failover is due to slow response time and network 
issues. For normal operations (no forced stop) the B2BI_ISALIVE_TIMER setting of the integration 
engine environment.dat file defines the maximum time the kernel server waits before shutting 
down the node. 

Go to [integration engine install directory]\config and open environment.dat in 


a text editor. Increase the environment variable B2BI_ISALIVE_TIMER. Restart the integration 
engine and observe the B2Bi database connection response. If the connection is stabilized, it is 
likely that there is a network issue.

To resolve network issues:

 l Make sure that the network interface is at least 1 Gbps.
 l Make sure no external applications are heavily loading the machine where the database resides, 
even during a short period of time.

B2Bi  2.1 Operations Guide  259


13  B2Bi system tuning and troubleshooting

Manage sockets and Oracle processes

Number of sockets available


In some cases, particularly on Windows platforms, you may receive error messages indicating that 
no more sockets are available. Socket-related errors generally occur when too many files are open.

To resolve this type of error:

Windows
On Windows, you can monitor the number of open files, using a tool such as Process Explorer in 
"handle mode". 

To modify socket availability you can:

 l Modify Windows registry keys – 
 o Decrease TCPTimeWait (for example: from 240 to 60)
 o Increase MaxUserPort to 20000 
 l Open the file $CORE_LOCAL/config/environment.dat in a text editor, and increase 
BSOCKET_SOCKET_COUNT. The default value is 64. You may wish to increased the value to, for 
example, 1024.

UNIX/Linux
On UNIX, to check the number of files open, use the command lsof | wc -l. 

Modify the ulimit as required: > ulimit –n <new value>

On Linux, the file /proc/sys/fs/file-nr provides the number of files allocated / available / 
maximum.

For example, the file might indicate: 20055 (allocated) 0 (available) 6553600 (maximum).

To extend the maximum number of allowed open files, modify the value in proc/sys/fs/file-
max

Oracle processes
When you reach the maximum number of process connected to Oracle you receive an error of the 
type “tns no appropriate service handle found”

To resolve this error, monitor the number of processes connected, and change number of process in 
Oracle accordingly. A typical value is 1500 processes.

260  Operations Guide B2Bi  2.1


Increase message splitting efficiency

Increase message splitting efficiency


In B2Bi, the use of a Map or a Message Builder Component  to split consumed messages into a large 
number (>1000) of messages may lead slowed processing or the generation of memory-related 
errors, such as the following:

FATAL :20150813:05.47.17.72:procengine(procengine(hierchmsgenv)):memory
allocation error WARNING:20130813:05.47.17.74:procengine:A fatal error
has ocurred in the interpreter, a dump of active coroutines has been
written to the file procengine_fatal.dmp.
WARNING:20130813:05.47.18.63:procengine:A dump of interpreter variables
has been written to the file procengine_fatal_vars.dmp.

FATAL :20151028:16.48.37.55:procengine(procengine(hierchmsgenv)):memory
allocation error file "l:\\/src/4edi/interpreter/interp.c", line 30148
WARNING:20141028:16.48.43.16:procengine:A fatal error has ocurred in the
interpreter, a dump of active coroutines has been written to the file
procengine_fatal.dmp. WARNING:20141028:16.49.33.53:procengine:A dump of
interpreter variables has been written to the file procengine_fatal_
vars.dmp

ERROR :20151210:04.09.30.24:procengine(procengine
(transgateway)):../../transferlogger.s4:448:failed to write entry to
logger server: the log entry is too big

These types of performance degradation and errors are often due to the high number of 
simultaneous log commits done by the Hierarchical Messaging Environment task of the integration 
engine. 

To lower the memory requirement of the Hierarchical Messaging Environment task, and allow a 
larger number of output messages to be created, execute the following tasks:

Task 1: Set the maximum integration engine


log commits variable
 1.  Go to <B2Bi_install_directory>/Integrator/local/config/. 
 2.  Open then file environment.dat in a text editor.
 3.  Set the environment variable CORE_MAX_LOG_COMMITS to 100.

B2Bi  2.1 Operations Guide  261


13  B2Bi system tuning and troubleshooting

 Note: If the performance or errors continue to occur with this setting, you may need to 
increase the value, depending on the number and size of the output messages.
 4.  Restart the B2Bi integration engine.

Task 2: Rebuild of the integration engine


runtime data
To force the rebuild of integration engine runtime data:

 1.  Start the B2Bi  integration engine tools client.
See B2Bi integration engine management tools on page 87.
 2.  From the Dataset menu of the main tool page, select Force a rebuild of run-time data.

Troubleshoot unexpected trading engine


restarts

Unexpected trading engine restarts


Unexpected trading engine restarts may be due to:

 l Operating system issues
 l Product issues
 l Configuration issues

Analyze restart problems

Collect logs
The first step in troubleshooting is to collect trading engine logs, B2Bi logs and integration engine 
traces,, and then analyze this data to identify the module that threw the first error.

Debug mode
If the logs and traces do not provide enough information, the next step is to run the servers in 
debug mode.

262  Operations Guide B2Bi  2.1


Troubleshoot unexpected trading engine restarts

Activate integration engine debug


 1.  Go to <integration_engine_install_directory>\config.
 2.  Open environment.dat in a text editor.
 3.  Add this environment variable: B2BXGI_CONNECTOR_DEBUG=1
 4.  Save the file.
 5.  Restart B2Bi.

Activate trading engine debug


 1.  Go to <trading engine install directory>\conf\.
 2.  Open log4j.properties in a text editor.
 3.  Add the following lines:
 l log4j.category. b2bx.pluggabletransport=debug
 l log4j.category.
b2bx.pluggabletransport.IntegratorPluggableServer=debug
 l log4j.category.
b2bx.pluggabletransport.PluggableIntegratorClient=debug

 4.  Save the file.

 5.  Restart B2Bi.

Activate B2Bi Server task debug


 1.  Start B2Bi and log on to the B2Bi user interface as an administrator.
 2.  Click System management from the menu bar to open the System management page.
 3.  Click on the name of an integration engine node to open the Integration engine page.
 4.  Add a custom setting with name b2bxserver.debug and value true.
 5.  Click Save changes.
 6.  From the System management page, restart all nodes.
 7.  To view trading engine debug logs, go to <trading_engine_install_directory>\logs 
and open the file [machine name]_cn_console.log.

Activate integration engine HME task data I/O debug


To turn on debugging of Hierarchical Messaging Environment (HME) task disk I/O events: 

 1.  Go to [integration engine install directory]\local\config\.


 2.  Open the file environment.dat in a text editor.

B2Bi  2.1 Operations Guide  263


13  B2Bi system tuning and troubleshooting

 3.  Add CORE_HMEDATAIO_DEBUG=yes.
 4.  Save the file.
 5.  Restart the integration engine.

Activate B2Bi filer task debug


To turn on debugging of the B2Bi filer task:

 1.  Go to [integration engine install directory]\local\config\.


 2.  Open the file environment.dat in a text editor.
 3.  Add FILERD_OPTIONS=-d.
 4.  Save the file.
 5.  Restart the integration engine.

Set debug on a specific integration engine module

Step 1: Set the environment variables


Windows

 1.  Open a Windows command console.

 2.  Run [integration_engine_install_directory]\profile.bat.

UNIX

 1.  Go to [integration_engine_install_directory]/bin
 2.  Run CORE_SETUP.

Step 2: Run the set debug task


 1.  Go to [integration_engine_install-directory]/local/tool/pgm.
 2.  Launch the command:
r4edi task_setdebug.x4 -A password [-m host] [-c config server port] [-t
name] [-d level]

Where:
–d = 2 (debug)
–t = The name of the task. For a list of tasks, look in the B2Bi user interface,  System
Management page. Click Integrator tasks on an integration engine node. (Example task 
name: “B2Bi HME 4 Task”)

264  Operations Guide B2Bi  2.1


Troubleshoot unexpected trading engine restarts

Set debug on the starter server (when B2Bi server cannot


start)

Step 1: Set the environment variables


Windows:

 1.  Open a Windows command console.
 2.  Run [integration_engine_install_directory]\profile.bat.

UNIX:

 1.  Go to [integration_engine_install_directory]/bin
 2.  Run CORE_SETUP.

Step 2: Run the set debug task


 1.  Start the trading engine.
 2.  Go to [integration_engine_install-directory]/local/tool/pgm.
 3.  Launch the command:
r4edi st_debug.x4 -a local/config/passwd -s $CORE_STARTER_PORT -d y

 4.  Check the integration engine trace: Look for debug entries coming from starter.x4.

Generate and analyze dump files


Memory dump files record useful information that may help identify why a server has stopped 
unexpectedly.

Windows
Use the Windows task manager to kill the cn (control node) and the (trading engine) processes.

View the output files:

 l <trading_engine_install_directory>/logs/[machine_name_cn_console.log]
 l <trading_engine_install_directory>/logs/[machine_name]_b2b_console.log

UNIX
Use the following commands to kill the control node:

 l ps -ef | grep cn

 l  kill -3 <pid>

B2Bi  2.1 Operations Guide  265


13  B2Bi system tuning and troubleshooting

View the output file: <trading_engine_install_directory>/logs/[machine_name_cn_
console.log]

Use the following commands to kill the trading engine node:

 l ps -ef | grep te
 l kill -3 <pid>

View the output file: <trading_engine_install_directory>/logs/[machine_name]_b2b_
console.log

Slow and problematic cluster startups with NFS


If a B2Bi cluster takes more time than expected to start correctly or restarts several times before 
successfully starting, and uses an NFS shared file system, this can be due to various causes on the 
client and the server side.

Thread limitation on NFS server


Increase the number of kernel threads ("processes") that the nfsd daemon can use on the NFS share 
machine ("the server" in this context). The nfsd daemon runs on the server and handles client 
requests for file system operations. Each daemon handles one request at a time. Assign the 
maximum number of threads based on the load you expect the server to handle. 

Most startup scripts start 8 instances of nfsd (RPCNFSDCOUNT=8). You can increase this value to 30 
threads (RPCNFSDCOUNT=30). Alternatively, you can change values when starting nfsd, using the 
number of instances as a command line option.

Caching behavior of B2Bi nodes


Node startup problems may be due to caching behavior. It may be useful to disable the NFS cache.

Procedure:

 1.  On each node, go to the /etc directory.
 2.  In the stab file, set lookupcache=none.

For additional information about nfs stab file formats and options, see 
http://unixhelp.ed.ac.uk/CGI/man-cgi?nfs+5 .

To test for the existence of the nsf cache:

 1.  Go to the same folder on both nodes.
 2.  On node 1 execute: stat filename
If a filename does not exist, an error is returned.
 3.  On node 2 execute: touch filename
 4.  On node 1 execute again: stat filename

266  Operations Guide B2Bi  2.1


Troubleshoot unexpected trading engine restarts

You may still obtain errors for a certain period of time.
 5.  Repeat the stat filename command until the file appears.

NFS read lease bug workaround for Linux distributions running kernel
version 2.x (2012/11/14)
NFS uses a read lease to guarantee that a client can perform local read opens without informing the 
server. Axway tests show that under some circumstances this read lease is not updated correctly and 
causes inconsistency on what the different nodes see on the shared file system. This can cause the 
nodes in a cluster to stop and restart unexpectedly and repeatedly.

Because this issue is not currently resolved in the 2.x Linux kernel, Axway recommends that you turn 
off the read lease function on the NFS server. This is done by setting a flag in the /proc/sys file 
system to tell the kernel to not allow any use of this feature. 

The following procedure provides an example of how to set the flag on a Red Hat machine acting as 
NFS server. Similar procedures can be adapted for other distributions.

 1.  Important: Stop B2Bi before you perform this procedure.
 2.  As root, execute the command:
echo 0 > /proc/sys/fs/leases-enable

 3.  Restart the NFS daemon:
/etc/init.d/nfs restart

 4.  After you complete the previous steps, unmount and re-mount from the NFS clients.

Note The change implemented by this procedure disappears when you reboot the server.  To 
make this change persistent over machine restarts, add the following lines  to a start-up 
script that is executed before the NFS daemon is started. A good place for this is in 
/etc/init.d/nfs in the "start" section, after the check for root UID but before the nfsd 
is started (insertion in bold):

# Only root can start the service

[ $uid -ne 0 ] && exit 4

# Hotfix for the read-leases problem

echo 0 > /proc/sys/fs/leases-enable

B2Bi  2.1 Operations Guide  267


13  B2Bi system tuning and troubleshooting

Troubleshoot startup failure with large


numbers of trading pickups
Problem: When starting B2Bi servers (trading engine and integration engine) when you have large 
number of trading pickups, the B2Bi system throttle is engaged and startup fails. 
"Too may open files" and null pointer exceptions are thrown. The following is an example of the 
type of errors related to this failure:

2014-06-09 10:32:18,889 - WARN [SystemThrottle] (SystemThrottle.run:224)


- Engaging the SystemThrottle, status is Error writing test file
/nfs3/user/b2b21_L3851_
Common/common/data/backup/fileSystemHealth/linux51_te.txt -
java.io.FileNotFoundException:
/nfs3/user/b2b21_L3851_
Common/common/data/backup/fileSystemHealth/linux51_te.txt (Too many open
files)

2014-06-03 17:02:57,135 - WARN [Cluster Thread 56]


(Jetty.getHandlersFromJettyConfig:307) - Jetty configuration file for
HTTP 0.0.0.0:10199 missing:
/home/user/B2B2.1/Interchange/bin/../webappsSpecial/jettyTe.xml
2014-06-03 17:02:57,136 - ERROR [Cluster Thread 56]
(ManagedHttpServer.start:76) - Error starting HTTP 0.0.0.0:10199
com.axway.transport.http.server.HttpServerException: Error starting HTTP
0.0.0.0:10199; java.lang.NullPointerException
at com.axway.transport.http.server.Jetty.doStart(Jetty.java:86)
at com.axway.transport.http.server.HttpServletEngine.start
(HttpServletEngine.java:77)
at
com.cyclonecommerce.tradingengine.transport.http.server.ManagedHtt
pServer.start(ManagedHttpServer.java:72)
at
com.cyclonecommerce.tradingengine.transport.server.ManagedServer.s
tartServer(ManagedServer.java:292)
at
com.cyclonecommerce.tradingengine.transport.server.ManagedServer.s
tart(ManagedServer.java:100)
at
com.cyclonecommerce.tradingengine.transport.server.ServerManager.s
tart(ServerManager.java:108)
at
com.cyclonecommerce.tradingengine.transport.system.distribution.St

268  Operations Guide B2Bi  2.1


Troubleshoot startup failure with large numbers of trading
pickups

artStopMessage.execute(StartStopMessage.java:118)
at com.axway.cluster.messaging.MessageExecutionWrapper.execute
(MessageExecutionWrapper.java:29)
at com.axway.cluster.bus.connection.Connection.handleMessage
(Connection.java:249) at
com.axway.cluster.bus.comm.MessageExecutor.run
(MessageExecutor.java:48)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source) at java.lang.Thread.run(Unknown Source)
at com.axway.cluster.extensions.thread.EventedThread.primRun
(EventedThread.java:102)
at com.axway.cluster.extensions.thread.EventedThread.run
(EventedThread.java:80)
Caused by: java.lang.NullPointerException
at org.eclipse.jetty.server.handler.HandlerCollection.setHandlers
(HandlerCollection.java:86)
at org.eclipse.jetty.server.handler.HandlerCollection.addHandler
(HandlerCollection.java:155)
at com.axway.transport.http.server.Jetty.handlerAsCollection
(Jetty.java:333)
at com.axway.transport.http.server.Jetty.getHandlersFromJettyConfig
(Jetty.java:318)
at com.axway.transport.http.server.Jetty.createHandlersFromConfig
(Jetty.java:182)
at com.axway.transport.http.server.Jetty.doStart(Jetty.java:71) ...
14 more

Solution: Working with your system administrator, modify the B2Bi user account on the operating 
system where B2Bi is installed. Set the ‘open files’ property to a high number. The optimum setting 
depends on the way your system is to be used. The greater the number of pickups, the larger the 
setting should be.
For example, for a community configured with 2000 Trading pickups, begin with an 'open files' 
setting of 102400, check the results and adjust accordingly. 

Tips for estimating the optimum 'open files'


setting on Unix/Linux
A Unix/Linux root user can run the following command to get  a rough estimate of the open file 
count of a given user for any given moment:

[root@linux38 ~]# lsof | grep <user_name> | wc –l

B2Bi  2.1 Operations Guide  269


13  B2Bi system tuning and troubleshooting

Run the command in a loop while the system starts to determine if the existing setting for the "open 
files" property is acceptable. If the errors listed above appear in the logs, the setting is not high 
enough. If the system starts cleanly the setting is correct. 

Example:

Use the lsof command to estimate an appropriate value for the  ‘open files’ property:

Run the following loop while the nodes are restarting - (run as your user, not root).

[root@linux38 ~]# while true; do lsof | grep <my_user> | wc -l; sleep 5;


done

This command reports the open file count for the specified user every 5 seconds. For example:

15387

15387

15387

15387

15387

15387

15387

15387

Working with the system administrator, use these results to set the 'open files' value. The values that 
are returned will vary depending on the number of community pickups that are defined. The setting 
you use for the 'open files' property should be higher than the maximum 'open file count' value that 
is returned, allowing a buffer for additional resources.

Troubleshoot integration engine selects


wrong IP address from backup network
interface
Description of the issue

In B2Bi Windows installations where you have set up  two network adapters, the integration 
engine retrieves the wrong IP address from the backup network interface.

Resolution

For Windows platforms, from B2Bi 2.1.0 SP6 patch 1, you must complete the following 
procedure to ensure the retrieval of the IP addresses list in the correct order (primary vs 
secondary) when two network adapters are set up:

270  Operations Guide B2Bi  2.1


Troubleshoot integration engine selects wrong IP address
from backup network interface

 1.  Go to: 
<B2Bi_installation_directory>/Integrator/local/config/ 
 2.  Open environment.dat in a text editor.
 3.  Set the value of CORE_BSOCKET_USE_ADDRINFO to "1".
Example:

CORE_BSOCKET_USE_ADDRINFO=1

 4.  Save the file and restart the integration engine.

Note When B2Bi is installed in a cluster, the variable needs to be set on all the nodes with 
the same value.

B2Bi  2.1 Operations Guide  271


Installer configure mode
After you install a B2Bi Client or Server environment, you can modify many parameters of the 
products by running the installer in configure mode.

When you run the installer in configure mode you have access to the original installation pages as 
well as to additional pages that you can use to fine-tune the B2Bi performance and behavior.

Start the installers in configure mode


Windows:

 1.  In Windows Explorer, go to the root of the B2Bi Client or Server installation directory and right-
click configure64.exe.
 2.  Select Run as administrator.

Alternatively, you can:

 1.  Go to Start > All Programs > Axway Software > [B2Bi Client or Server installation
name] > Configure.
 2.  Right-click Configure and select Run as administrator.

UNIX/Linux:

Go to the root of the B2Bi Client or Server installation directory and launch configure.sh.

Configuring
After you start an installer in configure mode, you use it much as you do in installation mode.

You can work in either in a console display or a graphic interface display (Windows only) to view 
your current installation settings and modify fields to meet your operating requirements.

Select the products that you want to configure


You do not need to view all configuration parameters. An initial configuration page enables you to 
select the product elements that you want to view and optionally configure.

View and modify parameters


You can configure the following parameters in configure mode.

B2Bi Server parameters


PassPort AM  

B2Bi  2.1 Operations Guide  272


 l Use PassPort AM 
 o PassPort host
 o PassPort port
 o Shared secret

Integrator

 l License Number
 l License Key
 l SAP connector
 o Library path

B2Bi Core Server  

 l Queue size 
 l Message size limit – Default = 16384 
 l Use B2Bi Visibility
 l Enable online archive
 l Enable Integration Manager

B2Bi Core Server connectors – Select the connectors to activate in your environment.

 l WebEDI
 l ALE

 l FTP
 l File system
 l HTTP
 l Email
 l Secure Transport
 l Enable migration

B2Bi Core Server behavior – These parameters can only be viewed and modified in configure 


mode.

 l Use failsafe mode – The fail-safe operation configuration controls how files are written to 


disk. The files can be written in synchronized or unsynchronized mode:
Option selected = Synchronized write to ensure data persistence in case of a system crash. 
The program that writes to a file on the disk has to wait until the disk acknowledges the physical 
disk writes. (This involves physically spinning the disk and moving the arm, which is time 
consuming.)
Option not selected = Unsynchronized write, to improve performance: The program that 
writes to a file on the disk, writes to an O/S buffer. This buffer is emptied/synchronized at 
intervals, and the overall disk I/O performance is very good. In case of a system crash, there is a 
risk of losing the contents of the buffer.

273  Operations Guide B2Bi  2.1


Installer configure mode

The recommended setup is to configure the B2Bi integration engine to run with fail-safe 
operation enabled (synchronized write mode). This guarantees maximum message integrity and 
overall system consistency.
 l Enable EDIFACT batch file splitter – Enables the use of EDIFACT batches.
 l Enable X12 batch file splitter – Enables the use of X12 batches. 
 l Use DML Maps – Enable the use of of DML maps within B2Bi. Enabled by default. You should 
only clear this option in exceptional cases (for example when migrating environments).
 l Generate acknowledgements for undefined X12 transaction sets – Enables the 
generation of acknowledgements for non-defined transaction sets for specified partners within 
your system. Disabled by default.
 l Stop possible duplicates from being reprocessed flag – Messages that transit in B2Bi can 
potentially be duplicated when the B2Bi system is unexpectedly halted before it can notify a 
partner system that the communication is completed / confirmed. Use this option to control 
B2Bi handling of possible duplicates.
Important: If you modify this setting (select or clear), for the changes to take effect you must 
save the changes by opening the System Profile Manager application of the B2Bi Client tool set, 
and selecting File > Save Dataset.
Option not selected = The integration engine automatically reprocesses completed (but 
uncommitted) transfers when the system restarts.
Option selected = The Integration Engine does not automatically reprocess messages which 
potentially have been processed already. Instead, it marks these messages as possible duplicates. 
The system administrator must decide whether or not to retransmit flagged messages manually.

B2Bi Core SAP connector – Select this option to specify the location of the SAP libraries on your 


network so that they can be copied by the installer to the B2Bi installation. In most cases your SAP 
libraries are located here:

[SAP installation directory]/lib

B2Bi SAP exchanges require SAP version 3.0.9 libraries. 

B2Bi Client parameters


 l B2Bi Server host – Principal B2Bi Server to be managed by the client.
 l System manager port – Access port on the main server host for the System Profile Manager 
tool.
 l Mapping Services license key – Use this field to change the Mapping Services license key.

Apply the configuration


When you are satisfied with the parameter settings, click Configure to apply changes and update 
the configuration.

B2Bi  2.1 Operations Guide  274


B2Bi system tuning and troubleshooting
The topics in this chapter provide methods and procedures for tuning your B2Bi installation for 
optimum levels of performance. This chapter includes the following sections:

 l B2Bi I/O management on page 276
 l Java memory usage on page 279
 l Manage sockets and Oracle processes on page 286
 l Network tuning  on page 285
 l Troubleshoot unexpected trading engine restarts on page 288
 l Troubleshoot startup failure with large numbers of trading pickups on page 294
 l Troubleshoot integration engine selects wrong IP address from backup network interface on 
page 270

B2Bi  2.1 Operations Guide  275


B2Bi I/O management
For best system performance, monitor and tune your B2Bi I/O system usage.

Using the monitor tool


Use the following program to monitor I/O usage: 

 [integration_engine_install_directory]\solutions\4edi\pgm\b2bi_
diskaccesstime.x4

This tool returns two values: synchronized and unsynchronized.

Command recommendations:

 l Run the command when there is no traffic.
 l Run the command several times to obtain average values.

Example results
> r4edi diskaccess.x4
Synchronized Unsynchronized

B2BI_SHARE_DATA 1.220 ms 0.085 ms


CORE_ROOT 1.395 ms 0.085 ms
CORE_DATA 1.385 ms 0.050 ms

Analyzing the results


A synchronized time of < 5 ms is a desired value. A synchronized time in the range of 5-10 ms is 
an acceptable value, but may indicate the need for additional cluster tuning to improve overall 
performance and reduce communication errors.

Unsynchronized time: < 0.2 ms is an acceptable value.

Adjusting I/O performance


The following are possible actions to improve access time if monitor values are greater than the 
acceptable times.

Action 1: Set memory message size limit


Attention: Execute the following actions only with the assistance of an Axway expert or support.

In the B2Bi server, set the limit for caching message content in memory (default = 4096 kb) :

276  Operations Guide B2Bi  2.1


B2Bi system tuning and troubleshooting

 l When the message size is < limit, the message is cached in memory
 l When the message size is > limit, the message is written in to physical file in the integration 
engine filer directory

Example :  Suppose you typically process a high load (more than 5 msg/sec) and messages are 
around 10kb in size.

 1.  Make sure also that there is enough memory available on the system to handle the load. 
 2.  Increase the limit in order to use more memory and limit the I/O usage.
To increase the limit, run the B2Bi installer in Configure mode. Select to configure the Server, 
and reset the  value Message size limit for caching message content in memory to a 
higher value.

Action 2: Modify integration engine environment variables


Attention: Execute the following actions only with the assistance of an Axway expert or support.

Example : Suppose you want to handle high loads of messages (more than 5 msg/sec) and have 
configured B2Bi so that message entry creates a large number of entries in the Message Log.

Use System Profile Manager to control the logging behavior.

On the System Profile Manager > Environment tab > Message logging section, set the Message
logging level value to no logging.

Action 3: Create separate UNIX disk mounts


Create two separate UNIX/Linux mounts to speed up disk I/O: Create one mount for the trading 
engine and one mount for the integration engine.

Action 4: Tune archiving


I/O can be slow because the logger is overloaded. Make sure that the archiving is working properly.

Attention: Execute the following actions only with the assistance of an Axway expert or support.

 1.  Check Message Log for entries older than 7 days.
 2.  Check if there are fxxx files older than 7 days located in $B2BI_SHARED/data/filer .
Note: You can use  filer_list.x4 and filerutil.x4 to list and remove filer files. See 
procedures below.
 3.  Verify that there are no “old” active entries (old means that the message processing stopped for 
different reasons) which can slow down the logger. If old entries exist, analyze the entries to 
understand why the processing is not complete, and reprocess or inactivate active entries 
accordingly. To inactivate entries, do one of the following:
 l Use LOGGER_OPTIONS –R.
 l Manually inactivate the entries in Message Log.

B2Bi  2.1 Operations Guide  277


Using Filer_list
 1.  Run Integrator profile.
 2.  Run  r4edi ~/filer_list.x4 $B2BI_SHARED_DATA/filer > $CORE_ROOT/filer_data
 3.  Check the results in filer_data.

Using Filerutil
 1.  To list all files older than <_no_of_days_> :
r4edi filerutil.x4 -a $CORE_LOCAL/config/passwd -r $B2BI_SHARED_
DATA/data/filer/singleton/ -t _no_of_days_

 2.  To delete the files older than  <_no_of_days_> :
r4edi filerutil.x4 -a $CORE_LOCAL/config/passwd -r $B2BI_SHARED_
DATA/data/filer/singleton/ -t _no_of_days_ -D

Action 5: Improve I/O coherence


Problems in the coherence between two nodes can result in one or more of the following errors:

 l "Failed to start filer directory"
 l "Filer insert reply: Returned filer file xxx is not empty"
 l "UTIL_FILESTATUS: failed to fetch status for file xxx" 

 l "Stale NFS file handle"
 l "Filer insert reply xxx doesn't exist"

Attention: Execute the following actions only with the assistance of an Axway expert or support.

 l Test IO coherence using http://wiki.samba.org/index.php/Ping_pong. 
Note: This IO coherence test requires working fs locks.

278  Operations Guide B2Bi  2.1


B2Bi system tuning and troubleshooting

Java memory usage


The Java maximum memory limit can be reached in cases of high load and when B2Bi processes 
large messages. Exceeding the memory limit can lead to the following types of errors (depending on 
the component module that throws the error):

 l “no memory left”
 l “java heap space” 

To manage this type of error:

 l Check the amount of memory that is available when you perform a load test. To do this you can 
use tool such as top, topas, free, nmon or Task Manager, depending on the OS. Make sure the 
system has enough memory to handle the load. The minimum memory required is 4GB. 
Depending on your configuration and processing load, this number varies. In many cases, 10 to 
16 GB of memory is required.
 l Check if Xmx values are high enough in the integration engine and in the trading engine.
 o Integration engine – Set the Xmx value in the file $CORE_
LOCAL/config/java/jvm.cfg

Example on a UNIX system  : UNIX:Replace '-Xmx128M') 


You can set the integration engine memory limit in any configuration file that is referenced in 
the environment variable CORE_JVM_COMMON_CREATE_FILES.

 o Trading engine – Open the file <trading_engine_install_
directory>/conf/jvmArguments.xml in a text editor, and modify the Xmx value for the 
related node. For additional information see Tune the trading engine on page 280.

B2Bi  2.1 Operations Guide  279


Tune the trading engine
This chapter describes parameters and settings that you can use to manage trading engine behavior.

Manage the Java heap size


Two parameters control the allowed range of the JVM heap size in for the B2Bi trading engine: Xms 
and Xmx (initial low and initial high, respectively). Both default to 256m in the 
Interchange/bin/startServer file. These parameters also govern the Java heap used by the 
Executive Node JVM.

The place to change the actual Xms and Xmx values used for the Control Node (CN) and Trading 
Engine (TE) JVM nodes is in the Interchange/conf/jvmArguments.xml file. The best practice is 
to keep both parameters equivalent to each other's value for a given JVM. For example, the CN can 
have Xms512m and Xmx512m while the TE has Xms1024m and Xmx1024m, because within a JVM 
the values are equivalent.

Setting the optimal value for the JVM is often a trial and error process, based on transaction size, 
transaction volumes, OS, hardware, etc. On most low-volume systems, no tuning is required. High-
volume systems can typically benefit from tuning.

The effective maximum value you can use for this setting is 2048 MB. Note that for values above 
1024 MB, there is a risk that JAVA consumes more resources for memory management than it 
benefits from additional memory allotment. 

In any case, the values of the Executive, CN and TE Java heaps combined must not exceed the 
physical memory of the machine. Additionally, be sure to reserve some free RAM for the OS to use 
(minimum recommended is one half Gigabyte).

To change the default heap size settings:

 1.  Go to <Interchange_install_directory>/conf/ and open the jvmarguments.xml file 
in an editor.
 2.  Locate the following lines in the file (TE example):

<NodeType type="TE"
class="com.axway.clusterold.startup.Boot">
<Option>${axway.haboob.heap.initial}</Option>
<Option>${axway.haboob.heap.maximum}</Option>

 3.  Replace the initial and maximum heap variables with values as shown in the following 

280  Operations Guide B2Bi  2.1


B2Bi system tuning and troubleshooting

examples:

<NodeType type="TE"
class="com.axway.clusterold.startup.Boot">
<Option>Xms1024m</Option>
<Option>Xmx1024m</Option>

 4.  Save the file.

Manage operating properties


There are two ways to adjust the operating properties of the B2Bi trading engine. You can edit the 
tuning.properties file, or you can change values in the UI on the "System properties" page.

tuning.properties file
You can manage a specific set of trading engine properties from the tuning.properties file, 
located in [Interchange_install_directory]/conf. Trading engine properties not supported 
in this file can be set in the System properties page, see System properties page on page 284.

The properties in this file are applied only to the node where the tuning.properties file is 
located. You must set the property for each node of a cluster by modifying the file for each node.

By default, tuning.properties is empty, which indicates that all of its entries are operating at 
their default values.

You can set the following tuning parameters by adding them to tuning.properties. As with 
setting the JVM value, it is impossible to suggest optimum values for these settings. Any changes in 
this file only take effect after stopping and restarting B2Bi.

The following is an example of a line that has been added to this file:

systemThrottle.pausePickups=true  

The following table lists parameters that you can add to the tuning properties file.

tuning.properties parameter Default Notes


Setting

connectionPool.testOnBorrow true default = true

connectionPool.testOnReturn true    default = true

httpExchange.replytimeout 1800000    default = 30 * 60 * 1000 (30 minutes)

maxUIViewablePayloadSize  12000000 The max number of bytes a payload can 


be and still be viewed in a browser.

B2Bi  2.1 Operations Guide  281


tuning.properties parameter Default Notes
Setting

messagePurge.Interval 15 The number of  minutes  b etween one  


round  o f  message purges and the next.

messagePurge.maxMessageToPurge 5000 In interval-based purging, the total 


number of messages to delete in one 
interval period.

messagePurge.onceADayHour 0 If messagePurge.onceADay is set to true, 
this field controls the hour of the day to 
run the purge. Values are from 0 to 23 
only.

messagePurge.onceADay False Instead of running a continuous purge, 


run purge once a day. Valid values are 
true/false.

messagePurge.Tasks 5 The number of tasks that will be 
scheduled to perform message purge.

producerScheduler.useCoordinator  true    Default = true   

retryIntervalMinutes 5, 10, 15,  The last interval will be repeated as 


30, 60  necessary.

startupSynchronizer.disable false    Disables the cluster startup 


synchronization.

startupSynchronizer.multicastAddre The  multicast  address  uses  to synchronize  
ss  232.92.56. the startup of Control nodes.
63

startupSynchronizer.multicastPort    47556 The port used to synchronize the startup 


of Control nodes.

statsServer.appletHeight 620    The height of the stats monitor applet in 


pixels.

statsServer.port  3579 The  p ort  o ver  which the  stats  monitor  


applet connects to the Control node.

282  Operations Guide B2Bi  2.1


B2Bi system tuning and troubleshooting

tuning.properties parameter Default Notes


Setting

systemThrottle.checkInterval 1000 The system throttle runs as a background 


thread, periodically checking system 
resources. This parameter specifies in 
milliseconds the frequency of the check.

systemThrottle.disable false default = false

systemThrottle.gcEnabled true Indicates whether a garbage collection 


should be invoked if the system is found 
to be low on memory. This will only have 
an effect if 
systemThrottle.minimumBytesFree 
is greater than zero.

systemThrottle.maximumTaskQueu 150 The system throttle engages if the 


eSize number of active tasks plus the number 
of queued tasks is greater than this 
number.

systemThrottle.minimumBytesFree 0 The system throttle engages if available 
heap falls below this number. Default 
value is zero, which indicates that the 
memory should not be checked.

systemThrottle.pausePickups true  

taskScheduler.maxThreads 50 This value should always be 1/3 of the 
systemThrottle.maximumTaskQueue
Size value (as illustrated by the default 
values displayed in this table). 

ui.maxTrackerPurgeCount 1000 Limits the number of messages that can 


be purged via the UI.

virtualData.bufferSizeIncrement 52429 Default = virtualData.maxBufferSize * 


0.10

virtualData.maxBufferSize 524288 Default = 512 * 1024

virtualData.startBufferSize 131072 Default = virtualData.maxBufferSize * 


0.25

B2Bi  2.1 Operations Guide  283


System properties page
The "System properties" page enables system administrators to configure a wide range of trading 
engine parameters. The individual properties you can configure are described on the UI page.

Caution: Incorrectly modifying values on this page can severely degrade product behavior. Do not 
modify values on this page without explicit guidance from Axway support.

To access the "hidden" default System Properties configuration page, point your browser to 
http://<hostname>:6080/ui/core/SystemProperties. Trading engine properties not 
displayed on this page can be set in the tuning.properties file; see tuning.properties file on 
page 281.

In some cases, changes in this page  take effect immediately, while in other cases a product stop and 
restart are required. If you fail to see an immediate change in B2Bi behavior, try a stop/restart.

284  Operations Guide B2Bi  2.1


B2Bi system tuning and troubleshooting

Network tuning

Testing your network connections


Use the ping command to test the response time to:

 l Shared disk
 l B2Bi database
 l Integration engine database

An acceptable maximum response time is to the shared disk is 15 seconds.

You must obtain a response time to the remote database of less than 5 seconds.

If  the database response is over five seconds, the failover functionality shuts down the node. The 
following error is generated:

B2Bi Supervisor:282:Database is not available, request timed out.


Request issued 6 seconds ago.

B2Bi Supervisor:587:Set Forced Stop

Resolving slow database response time


Attention: Execute the following actions only with the assistance of an Axway expert or support.

A good first step is to confirm that the database failover is due to slow response time and network 
issues. For normal operations (no forced stop) the B2BI_ISALIVE_TIMER setting of the integration 
engine environment.dat file defines the maximum time the kernel server waits before shutting 
down the node. 

Go to [integration engine install directory]\config and open environment.dat in 


a text editor. Increase the environment variable B2BI_ISALIVE_TIMER. Restart the integration 
engine and observe the B2Bi database connection response. If the connection is stabilized, it is 
likely that there is a network issue.

To resolve network issues:

 l Make sure that the network interface is at least 1 Gbps.
 l Make sure no external applications are heavily loading the machine where the database resides, 
even during a short period of time.

B2Bi  2.1 Operations Guide  285


Manage sockets and Oracle processes

Number of sockets available


In some cases, particularly on Windows platforms, you may receive error messages indicating that 
no more sockets are available. Socket-related errors generally occur when too many files are open.

To resolve this type of error:

Windows
On Windows, you can monitor the number of open files, using a tool such as Process Explorer in 
"handle mode". 

To modify socket availability you can:

 l Modify Windows registry keys – 
 o Decrease TCPTimeWait (for example: from 240 to 60)
 o Increase MaxUserPort to 20000 
 l Open the file $CORE_LOCAL/config/environment.dat in a text editor, and increase 
BSOCKET_SOCKET_COUNT. The default value is 64. You may wish to increased the value to, for 
example, 1024.

UNIX/Linux
On UNIX, to check the number of files open, use the command lsof | wc -l. 

Modify the ulimit as required: > ulimit –n <new value>

On Linux, the file /proc/sys/fs/file-nr provides the number of files allocated / available / 
maximum.

For example, the file might indicate: 20055 (allocated) 0 (available) 6553600 (maximum).

To extend the maximum number of allowed open files, modify the value in proc/sys/fs/file-
max

Oracle processes
When you reach the maximum number of process connected to Oracle you receive an error of the 
type “tns no appropriate service handle found”

To resolve this error, monitor the number of processes connected, and change number of process in 
Oracle accordingly. A typical value is 1500 processes.

286  Operations Guide B2Bi  2.1


B2Bi system tuning and troubleshooting

Increase message splitting efficiency


In B2Bi, the use of a Map or a Message Builder Component  to split consumed messages into a large 
number (>1000) of messages may lead slowed processing or the generation of memory-related 
errors, such as the following:

FATAL :20150813:05.47.17.72:procengine(procengine(hierchmsgenv)):memory
allocation error WARNING:20130813:05.47.17.74:procengine:A fatal error
has ocurred in the interpreter, a dump of active coroutines has been
written to the file procengine_fatal.dmp.
WARNING:20130813:05.47.18.63:procengine:A dump of interpreter variables
has been written to the file procengine_fatal_vars.dmp.

FATAL :20151028:16.48.37.55:procengine(procengine(hierchmsgenv)):memory
allocation error file "l:\\/src/4edi/interpreter/interp.c", line 30148
WARNING:20141028:16.48.43.16:procengine:A fatal error has ocurred in the
interpreter, a dump of active coroutines has been written to the file
procengine_fatal.dmp. WARNING:20141028:16.49.33.53:procengine:A dump of
interpreter variables has been written to the file procengine_fatal_
vars.dmp

ERROR :20151210:04.09.30.24:procengine(procengine
(transgateway)):../../transferlogger.s4:448:failed to write entry to
logger server: the log entry is too big

These types of performance degradation and errors are often due to the high number of 
simultaneous log commits done by the Hierarchical Messaging Environment task of the integration 
engine. 

To lower the memory requirement of the Hierarchical Messaging Environment task, and allow a 
larger number of output messages to be created, execute the following tasks:

Task 1: Set the maximum integration engine log commits


variable
 1.  Go to <B2Bi_install_directory>/Integrator/local/config/. 
 2.  Open then file environment.dat in a text editor.
 3.  Set the environment variable CORE_MAX_LOG_COMMITS to 100.

B2Bi  2.1 Operations Guide  287


 Note: If the performance or errors continue to occur with this setting, you may need to 
increase the value, depending on the number and size of the output messages.
 4.  Restart the B2Bi integration engine.

Task 2: Rebuild of the integration engine runtime data


To force the rebuild of integration engine runtime data:

 1.  Start the B2Bi  integration engine tools client.
See B2Bi integration engine management tools on page 87.
 2.  From the Dataset menu of the main tool page, select Force a rebuild of run-time data.

Troubleshoot unexpected trading engine


restarts

Unexpected trading engine restarts


Unexpected trading engine restarts may be due to:

 l Operating system issues

 l Product issues
 l Configuration issues

Analyze restart problems

Collect logs
The first step in troubleshooting is to collect trading engine logs, B2Bi logs and integration engine 
traces,, and then analyze this data to identify the module that threw the first error.

Debug mode
If the logs and traces do not provide enough information, the next step is to run the servers in 
debug mode.

Activate integration engine debug


 1.  Go to <integration_engine_install_directory>\config.
 2.  Open environment.dat in a text editor.
 3.  Add this environment variable: B2BXGI_CONNECTOR_DEBUG=1

288  Operations Guide B2Bi  2.1


B2Bi system tuning and troubleshooting

 4.  Save the file.
 5.  Restart B2Bi.

Activate trading engine debug


 1.  Go to <trading engine install directory>\conf\.
 2.  Open log4j.properties in a text editor.
 3.  Add the following lines:
 l log4j.category. b2bx.pluggabletransport=debug
 l log4j.category.
b2bx.pluggabletransport.IntegratorPluggableServer=debug
 l log4j.category.
b2bx.pluggabletransport.PluggableIntegratorClient=debug

 4.  Save the file.
 5.  Restart B2Bi.

Activate B2Bi Server task debug


 1.  Start B2Bi and log on to the B2Bi user interface as an administrator.
 2.  Click System management from the menu bar to open the System management page.

 3.  Click on the name of an integration engine node to open the Integration engine page.


 4.  Add a custom setting with name b2bxserver.debug and value true.
 5.  Click Save changes.
 6.  From the System management page, restart all nodes.
 7.  To view trading engine debug logs, go to <trading_engine_install_directory>\logs 
and open the file [machine name]_cn_console.log.

Activate integration engine HME task data I/O debug


To turn on debugging of Hierarchical Messaging Environment (HME) task disk I/O events: 

 1.  Go to [integration engine install directory]\local\config\.


 2.  Open the file environment.dat in a text editor.
 3.  Add CORE_HMEDATAIO_DEBUG=yes.
 4.  Save the file.
 5.  Restart the integration engine.

Activate B2Bi filer task debug


To turn on debugging of the B2Bi filer task:

B2Bi  2.1 Operations Guide  289


 1.  Go to [integration engine install directory]\local\config\.
 2.  Open the file environment.dat in a text editor.
 3.  Add FILERD_OPTIONS=-d.
 4.  Save the file.
 5.  Restart the integration engine.

Set debug on a specific integration engine module

Step 1: Set the environment variables


Windows

 1.  Open a Windows command console.
 2.  Run [integration_engine_install_directory]\profile.bat.

UNIX

 1.  Go to [integration_engine_install_directory]/bin
 2.  Run CORE_SETUP.

Step 2: Run the set debug task


 1.  Go to [integration_engine_install-directory]/local/tool/pgm.

 2.  Launch the command:
r4edi task_setdebug.x4 -A password [-m host] [-c config server port] [-t
name] [-d level]

Where:
–d = 2 (debug)
–t = The name of the task. For a list of tasks, look in the B2Bi user interface,  System
Management page. Click Integrator tasks on an integration engine node. (Example task 
name: “B2Bi HME 4 Task”)

Set debug on the starter server (when B2Bi server cannot start)

Step 1: Set the environment variables


Windows:

 1.  Open a Windows command console.
 2.  Run [integration_engine_install_directory]\profile.bat.

UNIX:

290  Operations Guide B2Bi  2.1


B2Bi system tuning and troubleshooting

 1.  Go to [integration_engine_install_directory]/bin
 2.  Run CORE_SETUP.

Step 2: Run the set debug task


 1.  Start the trading engine.
 2.  Go to [integration_engine_install-directory]/local/tool/pgm.
 3.  Launch the command:
r4edi st_debug.x4 -a local/config/passwd -s $CORE_STARTER_PORT -d y

 4.  Check the integration engine trace: Look for debug entries coming from starter.x4.

Generate and analyze dump files


Memory dump files record useful information that may help identify why a server has stopped 
unexpectedly.

Windows
Use the Windows task manager to kill the cn (control node) and the (trading engine) processes.

View the output files:

 l <trading_engine_install_directory>/logs/[machine_name_cn_console.log]

 l <trading_engine_install_directory>/logs/[machine_name]_b2b_console.log

UNIX
Use the following commands to kill the control node:

 l ps -ef | grep cn

 l  kill -3 <pid>

View the output file: <trading_engine_install_directory>/logs/[machine_name_cn_
console.log]

Use the following commands to kill the trading engine node:

 l ps -ef | grep te
 l kill -3 <pid>

View the output file: <trading_engine_install_directory>/logs/[machine_name]_b2b_
console.log

B2Bi  2.1 Operations Guide  291


Slow and problematic cluster startups with NFS
If a B2Bi cluster takes more time than expected to start correctly or restarts several times before 
successfully starting, and uses an NFS shared file system, this can be due to various causes on the 
client and the server side.

Thread limitation on NFS server


Increase the number of kernel threads ("processes") that the nfsd daemon can use on the NFS share 
machine ("the server" in this context). The nfsd daemon runs on the server and handles client 
requests for file system operations. Each daemon handles one request at a time. Assign the 
maximum number of threads based on the load you expect the server to handle. 

Most startup scripts start 8 instances of nfsd (RPCNFSDCOUNT=8). You can increase this value to 30 
threads (RPCNFSDCOUNT=30). Alternatively, you can change values when starting nfsd, using the 
number of instances as a command line option.

Caching behavior of B2Bi nodes


Node startup problems may be due to caching behavior. It may be useful to disable the NFS cache.

Procedure:

 1.  On each node, go to the /etc directory.
 2.  In the stab file, set lookupcache=none.

For additional information about nfs stab file formats and options, see 
http://unixhelp.ed.ac.uk/CGI/man-cgi?nfs+5 .

To test for the existence of the nsf cache:

 1.  Go to the same folder on both nodes.
 2.  On node 1 execute: stat filename
If a filename does not exist, an error is returned.
 3.  On node 2 execute: touch filename
 4.  On node 1 execute again: stat filename
You may still obtain errors for a certain period of time.
 5.  Repeat the stat filename command until the file appears.

NFS read lease bug workaround for Linux distributions running kernel version 2.x
(2012/11/14)
NFS uses a read lease to guarantee that a client can perform local read opens without informing the 
server. Axway tests show that under some circumstances this read lease is not updated correctly and 
causes inconsistency on what the different nodes see on the shared file system. This can cause the 
nodes in a cluster to stop and restart unexpectedly and repeatedly.

292  Operations Guide B2Bi  2.1


B2Bi system tuning and troubleshooting

Because this issue is not currently resolved in the 2.x Linux kernel, Axway recommends that you turn 
off the read lease function on the NFS server. This is done by setting a flag in the /proc/sys file 
system to tell the kernel to not allow any use of this feature. 

The following procedure provides an example of how to set the flag on a Red Hat machine acting as 
NFS server. Similar procedures can be adapted for other distributions.

 1.  Important: Stop B2Bi before you perform this procedure.
 2.  As root, execute the command:
echo 0 > /proc/sys/fs/leases-enable

 3.  Restart the NFS daemon:
/etc/init.d/nfs restart

 4.  After you complete the previous steps, unmount and re-mount from the NFS clients.

Note The change implemented by this procedure disappears when you reboot the server.  To 
make this change persistent over machine restarts, add the following lines  to a start-up 
script that is executed before the NFS daemon is started. A good place for this is in 
/etc/init.d/nfs in the "start" section, after the check for root UID but before the nfsd 
is started (insertion in bold):

# Only root can start the service

[ $uid -ne 0 ] && exit 4

# Hotfix for the read-leases problem

echo 0 > /proc/sys/fs/leases-enable

B2Bi  2.1 Operations Guide  293


Troubleshoot startup failure with large
numbers of trading pickups
Problem: When starting B2Bi servers (trading engine and integration engine) when you have large 
number of trading pickups, the B2Bi system throttle is engaged and startup fails. 
"Too may open files" and null pointer exceptions are thrown. The following is an example of the 
type of errors related to this failure:

2014-06-09 10:32:18,889 - WARN [SystemThrottle] (SystemThrottle.run:224)


- Engaging the SystemThrottle, status is Error writing test file
/nfs3/user/b2b21_L3851_
Common/common/data/backup/fileSystemHealth/linux51_te.txt -
java.io.FileNotFoundException:
/nfs3/user/b2b21_L3851_
Common/common/data/backup/fileSystemHealth/linux51_te.txt (Too many open
files)

2014-06-03 17:02:57,135 - WARN [Cluster Thread 56]


(Jetty.getHandlersFromJettyConfig:307) - Jetty configuration file for
HTTP 0.0.0.0:10199 missing:
/home/user/B2B2.1/Interchange/bin/../webappsSpecial/jettyTe.xml
2014-06-03 17:02:57,136 - ERROR [Cluster Thread 56]
(ManagedHttpServer.start:76) - Error starting HTTP 0.0.0.0:10199
com.axway.transport.http.server.HttpServerException: Error starting HTTP
0.0.0.0:10199; java.lang.NullPointerException
at com.axway.transport.http.server.Jetty.doStart(Jetty.java:86)
at com.axway.transport.http.server.HttpServletEngine.start
(HttpServletEngine.java:77)
at
com.cyclonecommerce.tradingengine.transport.http.server.ManagedHtt
pServer.start(ManagedHttpServer.java:72)
at
com.cyclonecommerce.tradingengine.transport.server.ManagedServer.s
tartServer(ManagedServer.java:292)
at
com.cyclonecommerce.tradingengine.transport.server.ManagedServer.s
tart(ManagedServer.java:100)
at
com.cyclonecommerce.tradingengine.transport.server.ServerManager.s
tart(ServerManager.java:108)
at
com.cyclonecommerce.tradingengine.transport.system.distribution.St

294  Operations Guide B2Bi  2.1


B2Bi system tuning and troubleshooting

artStopMessage.execute(StartStopMessage.java:118)
at com.axway.cluster.messaging.MessageExecutionWrapper.execute
(MessageExecutionWrapper.java:29)
at com.axway.cluster.bus.connection.Connection.handleMessage
(Connection.java:249) at
com.axway.cluster.bus.comm.MessageExecutor.run
(MessageExecutor.java:48)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source) at java.lang.Thread.run(Unknown Source)
at com.axway.cluster.extensions.thread.EventedThread.primRun
(EventedThread.java:102)
at com.axway.cluster.extensions.thread.EventedThread.run
(EventedThread.java:80)
Caused by: java.lang.NullPointerException
at org.eclipse.jetty.server.handler.HandlerCollection.setHandlers
(HandlerCollection.java:86)
at org.eclipse.jetty.server.handler.HandlerCollection.addHandler
(HandlerCollection.java:155)
at com.axway.transport.http.server.Jetty.handlerAsCollection
(Jetty.java:333)
at com.axway.transport.http.server.Jetty.getHandlersFromJettyConfig
(Jetty.java:318)
at com.axway.transport.http.server.Jetty.createHandlersFromConfig
(Jetty.java:182)
at com.axway.transport.http.server.Jetty.doStart(Jetty.java:71) ...
14 more

Solution: Working with your system administrator, modify the B2Bi user account on the operating 
system where B2Bi is installed. Set the ‘open files’ property to a high number. The optimum setting 
depends on the way your system is to be used. The greater the number of pickups, the larger the 
setting should be.
For example, for a community configured with 2000 Trading pickups, begin with an 'open files' 
setting of 102400, check the results and adjust accordingly. 

Tips for estimating the optimum 'open files' setting on


Unix/Linux
A Unix/Linux root user can run the following command to get  a rough estimate of the open file 
count of a given user for any given moment:

[root@linux38 ~]# lsof | grep <user_name> | wc –l

B2Bi  2.1 Operations Guide  295


Run the command in a loop while the system starts to determine if the existing setting for the "open 
files" property is acceptable. If the errors listed above appear in the logs, the setting is not high 
enough. If the system starts cleanly the setting is correct. 

Example:

Use the lsof command to estimate an appropriate value for the  ‘open files’ property:

Run the following loop while the nodes are restarting - (run as your user, not root).

[root@linux38 ~]# while true; do lsof | grep <my_user> | wc -l; sleep 5;


done

This command reports the open file count for the specified user every 5 seconds. For example:

15387

15387

15387

15387

15387

15387

15387

15387

Working with the system administrator, use these results to set the 'open files' value. The values that 
are returned will vary depending on the number of community pickups that are defined. The setting 
you use for the 'open files' property should be higher than the maximum 'open file count' value that 
is returned, allowing a buffer for additional resources.

296  Operations Guide B2Bi  2.1


B2Bi Active / Active
clustered installations 16  
General concepts
A computer cluster is a group of linked computers, working together to provide a single set of 
services.

Within clustering, there are two main clustering concepts:

 l Active / Passive –  In an active / passive cluster, one node owns the services, while the other 
one remains inoperative. Should the primary node fail, the secondary or backup node takes the 
resources and reactivates the services, while the ex-primary remains in turn inoperative. This 
concept is also known as a failover cluster.
 l Active / Active – In an active / active setup, there is no concept of a primary or backup node: 
both nodes provide services. Should one of these nodes fail, the other must also assume both its 
own services and the failed node's services.

B2Bi provides full active / active clustering capabilities. active / passive is not supported .

The most common size for a high-availability (HA) cluster is a two-node cluster. This is the minimum 
node requirement to provide redundancy. Should one node fail (for a hardware or software 
problem), the other node acquires the resources that were previously managed by the failed node, 
in order to re-enable access to these resources.

B2Bi supports two-node clustering.

Clustering and scaling


Clustering is related to scaling, but it is not the exactly same thing. Scaling can be done in two ways:

 l Vertical scaling – Adding resources to a single node in a system, typically through the addition 
of CPUs or memory to a single node.
B2Bi supports vertical scaling. It can leverage more CPUs available on a single server to increase 
the throughput.
 o The trading engine is multi-threaded. It can be configured to scale automatically to specified 
limits determined by hardware and configuration settings.
 o The integration engine can be configured to be more scalable, by adapting it to the number 
of CPUs in the machine.

B2Bi  2.1 Operations Guide  297


16  B2Bi Active / Active clustered installations

 l Horizontal scaling – Clustering is a form of horizontal scaling: adding more nodes to a 
system. However, clustering in B2Bi involves more than adding additional machines and 
processing resources.
The effect of adding B2Bi nodes is not linear. That is, adding a second node does not double the 
throughput capacity. There are many factors that have an influence on performance  ( CPU / 
Memory / Disk / Network). Results of horizontal scaling will depend on the root causes of 
processing bottle-necks. 

For more information, see Tune and scale clusters on page 325.

Information summary

Concepts
B2Bi cluster features on page 298

Clustering for Axway products working with B2Bi on page 305

File systems for B2Bi clusters on page 308

B2Bi cluster behavior on page 309

Tasks
Install B2Bi cluster nodes on page 307

Deploy objects and configurations to clusters on page 319

Set and modify environment variables on page 321

View cluster node status on page 321

Add a cluster node on page 323

Delete a cluster node on page 323

Start a node on page 324

Stop a node on page 324

Tune and scale clusters on page 325

Best practices for cluster environment development on page 327

B2Bi cluster features


B2Bi clustering provides the following features:

298  Operations Guide B2Bi  2.1


B2Bi cluster features

 l Distributed processing across multiple physical servers
 l High-availability processing continuity on failure of one or more nodes
 l Capability of adding and removing non-primary nodes without B2Bi stopping message 
processing
 l Security from loss of currently processed messages in the event of a single server failure
 l Scaling per node and extended capacity by adding nodes
 l Multi-node synchronized configuration and object deployment

To set up clustering you install the B2Bi server on multiple hosts, where each host constitutes a 
single service node. Trading engines and integration engines are linked together in a 1:1 
relationship. You must install the trading engine and the integration engine of each node on the 
same host machine.

The clustered nodes share:

 l Database for the B2Bi Server. 
 l Access to a common file system
Binary resources used at runtime are shared through the shared file system (MBC and 
Datamapper maps).
DML resources are deployed and synchronized to all nodes from Mapping Services.

The following figure illustrates a B2Bi cluster architecture on two nodes.  Each cluster node consists 
of exactly one trading engine and one integration engine:

B2Bi  2.1 Operations Guide  299


16  B2Bi Active / Active clustered installations

About nodes
In the B2Bi active/active environment the term "node" is used in two ways:

 l In the generic usage, a node is a computer that supports a set of related applications and is 
member of a high-availability cluster.
 l In a B2Bi-specific usage, a node is a sub-server of the B2Bi implementation. Each node supports 
a specific subset of the B2Bi system tasks. A single hosted instance of B2Bi requires three nodes:
 o B2B – Provides contextual processing information to the integration engine
 o Trading engine - Provides transport protocol and security handling
 o Integration engine - Provides message-content handling

About cluster roles


In a B2Bi cluster, the integration engines instances are assigned operating roles:

 l System role – The integration engine operating in the System role runs the cluster singleton 
tasks. Cluster singleton tasks are always running. They can only run on one integration engine 

300  Operations Guide B2Bi  2.1


B2Bi cluster features

instance in the cluster. The integration engine with the System role is the first node that is 
started in supervised mode.
 l Primary node –The integration engine operating in the Primary role runs the integration 
engine user singleton tasks. Integration engine singleton tasks support polling pickups, 
dedicated processing environments (integration engine HMEs) for the multi-document 
envelopers and sequencing activities. The integration engine with the primary role is the first to 
start the user tasks.

These two B2Bi-specific roles can be attributed to the same cluster node or to different nodes, 
however it is best to configure them on different nodes.

Task distribution
Certain tasks, by their nature, can only be executed on a single B2Bi-specific node. This is the case, 
for example, for the B2Bi application pickups provided by the integration engine that execute 
polling (FTP, file system).  B2Bi  p rocesses use cluster singletons to ensure that these types of tasks 
run only on the node which was started first. An internal load balancer then distributes the messages 
within the cluster if they are picked up as a result of the polling task.

Similarly, certain internal integration engine tasks can only run once in the cluster. For these tasks, a 
new proxy reroutes the initial connection from a client task to the system singleton task on the 
system node. All data exchange after that goes directly between the client task and the system 
singleton task.

Singleton activities
For certain activities it is necessary to process messages in sequence and avoid any parallelism. This 
is the case for enveloping multiple documents and for sequencing activities. These activities all use 
dedicated processing environments (integration engine HMEs)  which only run on the primary node. 
HMEs are configured to process messages one by one. Enveloping of single documents takes place 
in  separate activities that do not have these restrictions.

B2Bi engine dependencies


Integration engine processing tasks are started and stopped by the single associated trading engine 
instance.

An instance of the integration engine can only run when its associated trading engine instance is 
running. If the trading engine on a specific cluster node fails, it attempts to stop the associated 
integration engine instance. Additionally, the integration engine listens for a "keep-alive" message 
from the trading engine. If the keep-alive is missing, the integration engine stops itself.

Similarly, if the integration engine associated with a trading engine fails, the trading engine on the 
same cluster node will stop itself.

A senior clustering control agent, located on the principal cluster, monitors and coordinates node 
activity.

B2Bi  2.1 Operations Guide  301


16  B2Bi Active / Active clustered installations

Message processing continuity and checkpoints


In a typical message processing scenario, messages that are handled in a trading engine are 
produced to the integration engine that shares the same node. The integration engine processes 
these messages on the node on which they started their processing. 

In the case of messages coming in through the integration engine, the messages are balanced over 
the various integration engines across the multiple nodes. The integration engine typically pushes 
the processed message to the local trading engine, which then produces it to the final destination. 

Load balancing
 l For processes driven on the trading engine:
 o Protocols where messages are “pulled” by B2Bi (FTP, file system, …) – B2Bi provides built-in 
load-balancing.
 o Protocols where messages are “pushed” to B2Bi (HTTP, …) – Load-balancing must be 
provided externally (typically through hardware load-balancing).
 l For processes driven on the integration engine:
 o There is no active load balancing inside the integration engine. The queues are shared and 
all cluster nodes have equal access to all messages once messages are in the queue. This 
means that the processing can switch between cluster nodes for every activity.

 o Protocols where messages are “pulled” by B2Bi (FTP, file system, …) – No load-balancing 
mechanism (only the primary node polls).
Note: Once the message has been read, the processing of the message can switch between 
cluster nodes.
 o Protocols where messages are “pushed” to B2Bi (HTTP, …) from partner or application side – 
Load-balancing must be provided externally (typically through hardware load-balancing).
 o After message consumption – An automatic dispatching step of a single node distributes the 
load between the nodes in the cluster.
 o Messages received through the trading engine are  p rocessed on the node on which they 
have been delivered.

B2Bi engines

Trading engine
In B2Bi, the trading engine "drives" the integration engine. The trading engine connects to a server 
inside the integration engine (the kernel server). Whenever changes appear in the cluster, the 
trading engine communicates these events to the integration engine.

302  Operations Guide B2Bi  2.1


B2Bi cluster features

Within the cluster there are control nodes and trading engine nodes. Control nodes host the B2Bi 
user interface. Trading engine nodes host trading activity. The oldest node in the cluster runs 
singletons that control the cluster.

Whenever you add a node, it is assigned processing work and becomes responsible for a set of 
exchange points.

Integration engine
Within the cluster there are primary and secondary nodes. There is only one primary, typically the 
oldest (first started) node in the cluster. The primary node runs certain singletons not running on 
the secondary nodes and manages the “pull” protocols on application side. It also handles 
sequencing activities through single-message dedicated processing environments (integration 
engine HMEs). When the primary node fails, another node runs these particular singletons. When a 
node is added to a running cluster, the new node is a secondary node that receives workload from 
the primary node.

Limitations

Architectural limitations
 l You can implement a maximum of one trading engine per physical server.

 l You can implement a maximum of one integration engine per physical server.
 l A single integration engine is associated with a single trading engine to form one cluster node 
unit.
 l Polling activities (example: FTP polling)  and message consumption activities occur only on the 
primary node. They are not load balanced over the multiple nodes. Once messages are 
consumed, their processing is balanced across the cluster nodes. 

Performance limitations
 l In the event of an uncontrolled stop of one of the nodes in the cluster, the whole cluster needs 
to “recycle”, causing a temporary outage due to a restart of both the trading engine and 
integration engine on the remaining nodes.
 l In the event of a controlled stop of the node running the integration engine in system mode, the 
whole  c luster needs to “recycle”, causing a temporary outage due to a restart of the remaining 
trading engine and integration engine.
 l In the event of a controlled stop of the non-system node (integration engine), there is no cluster 
recycling.
 l In the event of a stop of one of the nodes, there is risk of failure of messages in process at the 
moment of the stop of the node. These messages need to be reprocessed in the trading engine 
(from the Message Tracker).

B2Bi  2.1 Operations Guide  303


16  B2Bi Active / Active clustered installations

Management features
In the B2Bi user interface, users with B2Bi administrative rights can view and manage cluster nodes 
on the System Management page.

The following figure illustrates a System Management page view of the processing engines running 
on a host server:

In this figure you see three B2Bi processing nodes (engines) running on a single host to provide a 
cluster node:

 l B2Bi engine  ( linux28_b2b)
 l B2Bi trading engine (linux28_te)
 l B2Bi integration engine 

From this page you can add, delete, start, stop and restart engines, as well as view and manage 
integration engine tasks.

304  Operations Guide B2Bi  2.1


Clustering for Axway products working with B2Bi

Clustering for Axway products working with


B2Bi
The following additional Axway products operate in clustered configurations with B2Bi:

 l Secure Relay
 l PassPort
 l Transfer CFT

Secure Relay
Secure Relay DMZ nodes in the demilitarized zone (DMZ) or perimeter network securely relay 
messages from partners to the trading engine in the protected, internal network. For security 
reasons, DMZ nodes do not initiate connections to the protected network. DMZ nodes also do not 
connect to the database or write messages to the file system. As it is stateless, messages cannot be 
lost when Secure Relay fails. Secure Relay, which uses Axway technology, supports inbound and 
outbound proxying.

An external load balancer is required, situated before the Secure Relay in the DMZ (in the case of 
multiple Secure Relay instances).

High availability behavior


When a node fails, the load balancer re-directs inbound connections to the remaining Secure Relay 
(if any). Trading engines then select the remaining Secure Relay for outbound flows.

If the connection between one Secure Relay (in the DMZ node) and all trading engine is gone, 
Secure Relay stops listening for external, inbound connections coming from partners and waits for 
the “internal” communication with at least one trading engine to be re-established.

PassPort
Active / active is supported by PassPort. PassPort requires manual configuration and management. 

If you have multiple PassPort nodes, a load balancer is required between B2Bi and PassPort.

High availability behavior


If a PassPort node fails, the load balancer detects the failure and redirects B2Bi requests to another 
available node.

B2Bi  2.1 Operations Guide  305


16  B2Bi Active / Active clustered installations

Transfer CFT
A B2Bi cluster can interact with Transfer CFT (active/passive) using PeSIT on both the partner side 
and on the application side.

High availability behavior


If a B2Bi node fails:

 l For transfers initiated by B2Bi – another node takes over
 l For transfers initiated by Transfer CFT (sending, or polling) – Transfer CFT can define back-up 
addresses that enable Transfer CFT connection to a secondary node (back-up address ).

306  Operations Guide B2Bi  2.1


Install B2Bi cluster nodes

Install B2Bi cluster nodes


This topic provides procedures for installing B2Bi cluster nodes.

Prerequisites
 l Shared database is installed on your network.
 l Shared file system is available on your network.
 l A load balancer is available for the B2Bi user interface and for the integration engine client user 
interface.

Set up an Active / Active cluster


To set up a B2Bi cluster, you complete the following tasks:

 1.  Set up node 1
To set up a cluster, you begin by installing the primary cluster node using the B2Bi server 
installer. When the installer prompts you for the B2Bi database and the shared file system, you 
must specify connections to database and file system that are located on an external host.

The first node you install is automatically identified as the senior control node of the cluster. 
 2.  Set up node 2
Next install the secondary cluster. You use the same values for the external  B2Bi database 
connection properties and the shared file system. 
 3.  Start all servers.

Confirm the installation


 1.  Open an administration session in the B2Bi user interface.
 2.  In the UI, you can view the status of the nodes you installed.  You should see two complete sets 
of trading engine and integration processing nodes, all with the status "Running".
 3.  Open the integration engine Task Monitor.
 4.  You can view the status of B2Bi logger, time and table singleton tasks for each node. These 
tasks have the status Started on the integration engine active node, and Stopped on the 
integration engine failover node.
 5.  You can see the status of all integration engine user and system tasks on all nodes in the cluster.

B2Bi  2.1 Operations Guide  307


16  B2Bi Active / Active clustered installations

File systems for B2Bi clusters

File system organization


In B2Bi cluster architectures, the file system structure can be viewed in two parts:

 l Local file system (one for each node)
 l Shared file system (shared between cluster nodes)

Local file system


On each cluster node, the local file system hosts the product binaries for both the trading engine 
and the integration engine. 

The integration engine uses environment variables to reference specific directories:

Variable Example path Reference

$CORE_ /opt/axway/b2bi/integrator  Root directory of the integration engine.


ROOT  

308  Operations Guide B2Bi  2.1


B2Bi cluster behavior

Variable Example path Reference

$CORE_ /opt/axway/b2bi/integrator/local  Not used in B2Bi 1.5 and later.


LOCAL 

$CORE_ /opt/axway/b2bi/integrator/data  Directory where logging information is stored. 


DATA  This directory is partly replaced by $B2BI_
SHARED_DATA.

Shared file system


The shared file system is used for the storage of custom component resources and run-time data, to 
be used and shared by all nodes.

Important: The file system you use for B2Bi cluster file sharing must be a high-performance system 
that allows a large number of file to be opened simultaneously.

Variable Example path Reference

$B2BI_SHARED  /opt/axway/shared  Root directory of shared file system.

$B2BI_SHARED_ /opt/axway/shared/data  Directory where runtime information is 


DATA   stored.

$B2BI_SHARED_ /opt/axway/shared/local  Directory where custom components are 


LOCAL  stored.

The trading engine uses the /opt/axway/shared/common directory for the storage of runtime 
data.

Supported file systems for the B2Bi shared


file system
For a complete list of supported file systems, see the B2Bi Installation Guide, B2Bi Prerequisites 
chapter. 

B2Bi cluster behavior


Whenever a node is added or removed from the cluster, the cluster changes. In the event of a cluster 
change a “cluster membership change” event message is dispatched to the nodes. This is 
information that is generated and sent from the Axway Clustering Framework. 

B2Bi  2.1 Operations Guide  309


16  B2Bi Active / Active clustered installations

In B2Bi, the trading engine has a central role in the cluster because it receives the notifications of 
these events. When changes occur in the cluster, the trading engine communicates this information 
to the integration engine. The trading engine and the integration engine are closely linked in a 1:1 
relationship. Whenever you start or stop a trading engine, this results in the start / stop of the tasks 
within the integration engine.

This topic describes the behavior and recovery mechanisms of B2Bi in the event of a cluster 
membership change.

Definitions
Configuration Adapter Node

The Configuration Adapter Node provides services to the integration engines which enable 
them to search and query for Agreements and Metadata Profiles to assist in the runtime 
message processing. It also provides a number of other B2Bi-related search services for 
looking up and validating Messaging ID existence, Detector functionality and other 
information. This node  is also responsible for publishing the current Application state to 
the integration engines on startup.

Control Node

The Control Node manages the start and stop of the integration engine server, and runs the 
user interface. It logs these activities in <hostname>cn.log. Each host in a cluster has a 
single Control Node.

Trading Engine Node

Instance of the trading engine on a single cluster node. Each trading engine is paired with 
an instance of the integration engine on a host.

Integration Engine Node

Instance of the integration engine on a single cluster node. Each integration engine is 
paired with an instance of the trading engine on a host.

System Node

The System Node is the integration engine instance that runs the cluster singleton tasks. 
Singleton tasks are always running and can only run on one integration engine instance in 
the cluster.

Singleton

Code that supports a single instance of a service in the cluster. Singletons in B2Bi clusters 
are classified as:

 l Host singletons – There is a single instance of a host singleton for a specific host 
machine. If the trading engine is stopped on a host, then the host singleton service is 
stopped on that node, and an attempt is made to restart it on another trading engine in 
the cluster.

310  Operations Guide B2Bi  2.1


B2Bi cluster behavior

 l Cluster singletons – Unique instances of service controllers in the entire B2Bi cluster. A 
cluster singleton can only run on a specific node type. There are cluster singletons that 
can start on each type of node.  When the node that hosts a cluster singleton is stopped 
(due to a system failure), the oldest node (of the appropriate type) that can host the 
singleton takes over its work.

Adding nodes
When you add a node to the cluster, it immediately starts to receive and process workload. The way 
the B2Bi engines manage the change is different for the trading engine and the integration engine.

Trading engine
When a trading engine is stopped, a cluster membership change event message is received by each 
cluster node. 

Trading engine services are managed and distributed through cluster singletons. There can only 
be one instance of any singleton-controlled service in the entire B2Bi cluster. Each cluster singleton 
can only run on a specific node type. There are cluster singletons that can start on each type of 
node. Some start only on Control Nodes, and some only on Trading Engine Nodes.

In case of an abrupt trading engine stop, B2Bi does not wait for the in-process messages to finish. 
Processing work is immediately distributed to the remaining running trading engine nodes. If there 
was a cluster singleton running on the trading engine that stopped, it is restarted the oldest node 
that supports that specific type of singleton.

In addition to cluster singletons, B2Bi has host singletons. There is only one instance of a host 
singleton for a specific host machine (however, note that you  c an have multiple nodes on each 
host: Control Node, Profile Node, Trading Engine Node). If the trading engine is stopped on a host, 
then the host singleton service is stopped on that node. 

Integration engine
An integration engine node can run in system mode and/or in primary or secondary mode. A single 
integration engine can act in both system and in primary roles. When there is more than one active 
integration engine in the cluster, B2Bi distributes the roles as described in the following paragraphs:

System role

Only one integration engine node can have the system role assigned to it. The integration 
engine node that is assigned the system role runs the cluster singleton tasks. Singleton 
tasks always run, and can only run, on one integration engine node in the cluster. The 
system role is assigned to the first node that is started in supervised mode.

When the integration engine node that is assigned the system role fails, the remaining 
integration engine nodes try to take over the system role. Only one node will succeed, and 

B2Bi  2.1 Operations Guide  311


16  B2Bi Active / Active clustered installations

become the new node running in the system role. Once the new system role assignment 
has been established, all user tasks on the remaining nodes are restarted. Until user tasks 
are restarted, there may be a temporary interruption of service until tasks are restarted.

Primary/secondary role

There is only one primary node, which is typically the oldest (first started) node in the 
cluster. The primary node runs certain singletons that do not run on the secondary nodes, 
and also manages the “pull” protocols on the application side. When the node acting with 
the primary role fails, another node must run these particular singletons. When a node is 
added to a running cluster, the new node is initially assigned a secondary node. The new 
node receives workload assignments from the primary node.

Removing nodes
The removal of a node can occur in two general ways:

 l graceful / controlled
 l unexpected / uncontrolled

Controlled / graceful removal


In this case the engines on the cluster node are intentionally stopped through the B2Bi user 
interface (after which the services can be stopped, and then the machine can be powered down if 
necessary).

This type of stop is initiated when the user stops the trading engine.The integration engine owns a 
monitoring connection that detects the loss of service when the trading engine is stopped.

Trading engine:
Whenever a trading engine is stopped, a cluster membership change event message is received by 
each node. If the stopped trading engine is paired with an integration system node, and if there are 
remaining nodes in the cluster, another node becomes the system node.

Integration engine:
When you intentionally stop a trading engine, a cluster membership change event message is 
received by each node. Each node verifies if its host name is still among the valid cluster members. If 
not, the user tasks of that node are stopped. This stopping is in a graceful way, which means that all 
active sessions within the integration engine are completed. If it is the primary node, the singletons 
are stopped as well. If there are remaining nodes in the cluster, the next oldest member becomes the 
primary node.

In the case where you are intentionally stopping the supporting machine, you must stop the 
integration engines before powering down.

312  Operations Guide B2Bi  2.1


B2Bi cluster behavior

Unexpected / uncontrolled removal


Unexpected / uncontrolled node remove occurs when:

 l The node was stopped by the user (not following the procedure as described in the graceful 
method, but by killing the service or another vital main process).
 l The server on which the node is running is powered down.
 l Hardware failure occurs ( local drive / CPU / ...)
 l The node loses the connection to the network.
 l The node cannot connect to the database or to the shared file system.

Of this list, the first two can be avoided with correct procedures and access rights The  third 
(hardware failure) is less common.

The following paragraphs describe the remaining two items.

Network failure between B2Bi and applications/partners


B2Bi supports automatic retry mechanisms to deal with temporary unavailable partners or 
applications. When the maximum number of retries is reached, an error is displayed in the Message 
Tracker for partners, or in Message log for applications.

Network failure between B2Bi and its database or file system (or the
database / file system are not available)

Failure cause Recovery routine

Data base not available for trading   1.  Node shuts itself down.


engine (Interchange)  2.  Node becomes an unavailable node. 
 3.  Node tries to re-connect to data base, repeating 
attempts until successful.
 4.  If database becomes available again, the node 
rejoins the cluster.

File system not available for trading   1.  Node invokes the system throttle.


engine (Interchange)  2.  Node turns off all the transport exchanges (no 
more messages accepted).
 3.  Node tries to finish the processing of currently 
handled messages. Messages potentially 
rejected.

B2Bi  2.1 Operations Guide  313


16  B2Bi Active / Active clustered installations

Failure cause Recovery routine

File system or data base not available for   1.  Node shuts itself down.


the integration engine (Integrator)   2.  Node becomes an unavailable node.
 3.  Node attempts to restart, repeats attempts until 
successful.
 4.  If file system becomes available again, the node 
rejoins the cluster.  

Note: B2Bi also supports retry mechanisms between engines:

 l Trading engine retry send to the integration engine
 l Integration engine retry send to the trading engine

Cluster membership change on other B2Bi


nodes
In addition to the trading engine (Interchange) and the integration engine (Integrator), each B2Bi 
node has:

 l A control node that manages the B2Bi user interface. External load balancer provides scalability 
on the B2Bi user interface and on the integration engine client user interface.

If a node fails, the load balancer detects the failure, and redirects the user to a new available 
node. In this case, the user must reconnect to the user interface. The user may lose any 
configuration data entered in his browser that was not saved by the node that failed.
 l A single ISDN router node.
This node can only be active-passive.

Impact of cluster change on runtime data


Both controlled and uncontrolled node removals have a direct impact on the runtime environment. 
There are differences between a controlled and a uncontrolled removal.

New messages
For messages “pushed” to B2Bi (through protocols like HTTP and other listening protocols), the 
external load-balancer detects that the B2Bi node (trading engine or integration engine) is 
unavailable and redirects all new incoming messages to another available B2Bi node.

For messages “pulled” by B2Bi (through the FTP client), the B2Bi cluster detects that the B2Bi node 
(trading engine or integration engine) is unavailable and assigns the pulling tasks to another 
available node.

314  Operations Guide B2Bi  2.1


B2Bi cluster behavior

Messages being processed - behavior on cluster


membership change
For messages not completely received when node failed, that is, the last byte has not been received, 
or a expected synchronous acknowledgement has not been generated for a partner:

 l Messages pushed to B2Bi – The partner or application must resend the message.
 l Messages pulled by B2Bi: B2Bi (trading engine or integration engine) automatically restart the 
pulling tasks to try to get the message again from the partner or the application from a different 
node.

Trading engine behavior on cluster membership change


This behavior applies to messages fully received and in progress in the trading engine when the 
particular node fails. This includes synchronous acknowledgements if they are expected by a 
partner.

 l All messages are processed.
 l There is a limited risk of message duplicates, compensated by the trading engine, depending on 
the format being used.
 o For the protocols ebMS/EDIINT/RosettaNet, the trading engine checks received message IDs 
for duplicates. 

 o If duplicates represent a risk, the administrator must check the Message Tracker to see if 
messages where processed twice, or alternatively, a specific code must be implemented to 
check for duplicates.
 l Processing automatically continues (restart) on a different node:
 o inbound message: Start from beginning (unpackaging…)
 o outbound message:
 o If packaging completed: send to partner
 o If package not completed: create package

Integration engine behavior on cluster membership


change
In all almost all failover situations, there is a short interruption of services. This is necessary to 
establish a new system node. The only exception is when the non-system node is shut down in a 
controlled way. If the non system node is interrupted, the singleton tasks on the system node must 
be restarted to properly close all open socket connections.

The following behavior is applied to messages fully received and in progress in the integration 
engine when a particular node fails. This includes synchronous acknowledgements if they are 
expected by a partner.

B2Bi  2.1 Operations Guide  315


16  B2Bi Active / Active clustered installations

 l All messages are processed.
 l No risk of message duplication.
 l The integration flow automatically restarts from the last processing step that is part of the 
execution chain (registered in the service) when the node failed on an alternative node in the 
cluster.
Note: For each B2Bi processing step, the integration engine reads input queues, executes the 
activity, stores the output in internal queues, and then commits the message read. Each B2Bi 
step not fully completed is automatically restarted from scratch, polling the un-committed 
message again from this internal queue.

Trading engine throttling on integration


engine failure
On any given node in a cluster, when the integration engine stops, the trading engine directs traffic 
to another integration engine. 

If another integration engine is running on another cluster node and is already consuming messages 
from the trading engine on that node, that integration engine begins consuming messages from 
both trading engines, until the other integration engine returns to service.

If no other integration engine is ready to consume messages, the trading engine waits for one of 
these conditions:

 l 60 second timeout (default setting) for detection of an active integration engine
 l Queue limit of 2000 messages (default setting) to send to an integration engine

When either of these conditions are met, the trading engine  throttles message delivery, holding 
messages in the queue until an integration engine becomes active.

You can view the status of all trading engine and integration nodes on a cluster from the B2Bi user 
interface, on the System Management page. 

From the System Management menu, click System Management to view the page. The following 
image illustrates a cluster node in which the integration engine is stopped, and in which the trading 
engine found no other integration engines to direct messages to. As a result, the trading engine has 
gone into "throttled" status.

316  Operations Guide B2Bi  2.1


B2Bi cluster behavior

Related messages and actions

Acknowledgements (outbound)
Documents which did not successfully complete the step that detects, splits, maps the message and 
generates the acknowledgement, will re-execute completely on another node and generate the 
acknowledgment.

Enveloping
Messages waiting to be enveloped (by the integration engine) on a node that is failing before the 
enveloping is executed, are enveloped on another available node.

Acknowledgements (inbound)
When you have a pending acknowledgement to be received on a node which fails before the actual 
acknowledgement has been received, the incoming acknowledgement is handled and correlated to 
the original entry by one of the alternative nodes.

Message duplication
When nodes are removed from the cluster,  there is a risk in the integration engine that messages 
may be duplicated and processed twice.The system administrator should check the Message Log 
and Message Tracker in the B2Bi user interface to look for duplicates and take action.

Node rejoining clusters


Typically a node automatically rejoins the cluster as soon as it becomes available again.

B2Bi  2.1 Operations Guide  317


16  B2Bi Active / Active clustered installations

 l The B2Bi node that failed, automatically recovers under certain conditions: The trading engine 
and integration engine automatically restart and process new messages and documents.
 l For messages “pushed” to B2Bi (HTTP, …), the external load-balancer detects that the B2Bi node 
(trading engine or integration engine) is available and pushes new incoming messages to this 
node.
 l For messages “pulled” by B2Bi (FTP, …), the B2Bi cluster detects that an additional B2Bi node is 
available and load balances pulling tasks to this node again (this only applies to the trading 
engine protocols, the integration protocols will continue to run on the primary node).

Monitor erroneous messages


The following B2Bi monitoring tools display a consolidated view of all messages and documents 
processed by all the nodes of the cluster:

 l Message Tracker (trading engine)
 l Message log (integration engine)
 l EDI Tracker (integration engine)
 l Sentinel

Resubmit messages
You can resubmit messages from Message Tracker even if the message fails on a node that is no 
longer available.

You can resubmit documents from Message Log even if the documents have failed on a node that is 
no longer available.

318  Operations Guide B2Bi  2.1


B2Bi cluster management tasks
For information about managing cluster nodes in B2Bi, see the following sections:

 l Deploy objects and configurations to clusters on page 319
 l Set and modify environment variables on page 321
 l View cluster node status on page 321
 l Add a cluster node on page 323
 l Delete a cluster node on page 323
 l Start a node on page 324
 l Stop a node on page 324

Deploy objects and configurations to clusters


When operating in a cluster, all nodes must share the same information and configuration.

The B2Bi configuration can be described as comprising the following configuration layers:

 l System Layer
 l Partner Layer

 l Flow Layer (processing flow)
 l Resource Layer (modular resource code and binaries used in specific processing flows)

The information for the bottom three layers in the preceding figure is stored in the B2Bi shared 
database. This information is used by all nodes. 

The Resources Layer presents a special case.

B2Bi  2.1 Operations Guide  319


16  B2Bi Active / Active clustered installations

About resources
In order to control the way B2Bi handles the messages and files that transit in its servers, it uses 
resources. Resources are small installable programs that extend the standard set of message-
handling processes provided by B2Bi.

A resource might enable B2Bi to converse with a specific type of remote application, or it might 
modify the structure of a transiting file, or retrieve a specific data element from a database. The 
functional possibilities of components are virtually limitless.

In B2Bi there are two main categories of resources:

 l DML maps
DML (Data Manipulation Language) is an Axway proprietary programming language.
 l Other components
In the trading engine:
 o Inline processors (Custom Java code to influence the behavior of the trading engine)
In the integration engine:
 o Datamapper Maps
 o Message Builder Components (MBCs)

Resource deployment to clusters

DML map deployment


You manage and mapping flows in the Mapping Services environment. When you deploy these 
resources from Mapping Services to the B2Bi run-time system, the deployment to the nodes is 
handled automatically and transparently.

Other resource deployment


To deploy other resource types, you place them in a dedicated shared location.

The following table describes the correct placement:

B2Bi resource type Deployment location

Inline processors %B2BI_SHARED%\ (1)

Datamapper Maps %B2BI_SHARED%\local\4edi\component

MBC %B2BI_SHARED%\local\4edi\component

1  Requires additional changes to be used from the shared location (class path / file registry).

320  Operations Guide B2Bi  2.1


B2Bi cluster management tasks

Set and modify environment variables


You can set environment variables in the file:

<B2Bi_installation_directory>/Integrator/config/environment.dat  

You can set and modify the following environment variables to influence cluster-behavior:

B2BI_ISALIVE_TIMER

The maximum time to get a response from the database. If this time (in seconds) is 
exceeded, the node(s) experiencing the time-out are stopped.

B2BI_CLUSTER_NODE_TIMER

Each cluster node registers a process at the System Node. The cluster node process is 
started/stopped by the node when the trading engine for a node is started/stopped.

If a node can’t update/reset the timer or stop the process (Uncontrolled shut-down or 
network outage) the timer times-out.

View cluster node status


B2Bi users with the appropriate privileges can monitor cluster nodes from the B2Bi user interface.

To monitor nodes:

 1.  Open a session in the B2Bi user interface.
 2.  Click System management on the toolbar to open the System management page.
 3.  Make sure that the Processing nodes tab is selected.
The interface displays a view of all of the nodes that are currently running in your B2Bi 
environment.
For each cluster node you can view the engines that are running, as in the following example:

B2Bi  2.1 Operations Guide  321


16  B2Bi Active / Active clustered installations

 4.  On each cluster node you must have the following processing nodes running:
 l B2Bi
 l Trading engine
 l Integration engine
An entry for each individual engine on each node shows the current status (running / stopped / 
starting) of the engine.
 5.  For additional details about the integration engine sub-server task status, click Integrator
tasks on the Integration engine entry.
A page similar to the following figure is displayed:

322  Operations Guide B2Bi  2.1


B2Bi cluster management tasks

Add a cluster node


 1.  Open a session in the B2Bi user interface.
 2.  Click System management on the toolbar to open the System Management page.
 3.  Make sure that the Processing nodes tab is selected.
 4.  Select Add a Node.
The interface displays the Add a node page.
 5.  Select the node type: Trading Engine
 6.  Select the host name from the list of available hosts.
When you add a trading engine, B2Bi automatically adds an integration engine. 

Delete a cluster node


 1.  Open a session in the B2Bi user interface.
 2.  Click System management on the toolbar to open the System Management page.
 3.  Make sure that the Processing nodes tab is selected.
 4.  Click Stop all nodes.

B2Bi  2.1 Operations Guide  323


16  B2Bi Active / Active clustered installations

 5.  Select a trading engine and click Remove this node.


 6.  Confirm when prompted.

Start a node
 1.  Open a session in the B2Bi user interface on an active node.
 2.  Click System management on the toolbar to open the System Management page.
 3.  Make sure that the Processing nodes tab is selected.
 4.  Select a trading engine node and click Start all nodes to start both the trading engine and the 
integration engine.

The engines running on the nodes can be started and stopped using the Start / Stop / Restart 
buttons next to each engine entry, with the exception of the integration engine. The tasks inside the 
integration engine are started by the trading engine. This implies that when you start the trading 
engine, the integration engine is started. Stopping the trading engine results in stopped tasks in the 
integration engine.

Stop a node
 1.  Open a session in the B2Bi user interface on an active node.
 2.  Click System management on the toolbar to open the System Management page.

 3.  Make sure that the Processing nodes tab is selected.


 4.  Select a trading engine node and click Stop all nodes to stop both the trading engine and the 
integration engine.

The engines running on the nodes can be started and stopped using the Start / Stop / Restart 
buttons next to each engine entry, with the exception of the integration engine. The tasks inside the 
integration engine are started by the trading engine. This implies that when you start the trading 
engine, the integration engine is started. Stopping the trading engine results in stopped tasks in the 
integration engine.

324  Operations Guide B2Bi  2.1


Tune and scale clusters

Tune and scale clusters


The tasks for tuning a B2Bi cluster architecture can be grouped in the following categories:

 l Distribution – Adding nodes to the cluster
 l Scaling – Adding processing capacity to a node in the cluster.
 l Tuning – Task optimization and node configuration

Caution: Performance optimization must be done on a case-by-case basis. An implementation that 
processes a low volume of large file size messages requires a different configuration from an 
implementation that processes a high volume of small messages. Do not adjust parameters unless 
you are experienced with B2Bi.

Processing factors
Before adjusting parameters, keep in mind that processing is heavily influenced by the following:

 l Available (primary) memory
 o Avoid swapping
 l CPU/cores, speed and size
 o Allow parallel processing

 o Be aware that this is  typically a bottleneck when processing large volumes of large files with 
complex operations
 l Shared disk speed
 o B2Bi generates numerous synchronized disk writes to ensure data persistence; easily 50 disk 
write actions for 5 activities (simple flow)
 o Be aware that this is typically a bottleneck when processing large volumes of small messages
 l Network capacity

When the file requires integration (transformation, enrichment, validation, and so forth), the 
following elements can impact performance:

 l Complexity of the mapping (number of elements mapped)
 l Number of steps required in the service (each step requires multiple disk write operations, which 
consume time and resources)
 l Global design of the mapping (optimizations depending on the bottleneck)
 o Input file can be split in multiple sub-messages, resulting in better usage of the CPU but 
requiring more I/O

B2Bi  2.1 Operations Guide  325


16  B2Bi Active / Active clustered installations

B2Bi scaling
To improve throughput, you can install additional nodes on your network and then add them in the 
System Management section of the B2Bi user interface.

In B2Bi implementations, there is a 1:1 relationship between trading engines and integration 
engines: Adding a trading engine (running on a specific node) implies the addition of an additional 
integration engine as well.

The effect on performance of adding B2Bi nodes is not linear. That is, adding a second node does 
not double the throughput capacity. There are many factors that have an influence on performance  
(CPU / memory / disk / network). The results of adding nodes will depend on the root causes of 
your message-processing bottlenecks. 

Integration engine scaling / tuning

Initial configuration
During B2Bi Server installation the installer user is prompted to provide a value for the number of 
CPUs to use for B2Bi Server operations. The installer uses this value to calculate initial settings for:

 l Number of of Processing Engines for HME1, HME2, and HME3

 l Number of Logger Tasks

B2Bi balances the number of Integration Engine processes with the number of processors. 
Depending on the number of CPUs set during the installation, an implicit scaling is done, with the 
following results:

CPU #PE/ HME1 #PE/ HME2 #PE/ HME3 #PE/ HME4 Logger tasks
2 2 2 4 1 2
4 4 4 8 1 4
6 8 8 16 1 8

Modify number of processing engines and logger tasks


After installation, to modify the number of processing engines and HMEs assigned to tasks, and the 
number of logger tasks, you use the System Profile Manager application of the Integration Engine 
System Manager tool set. For information about how to use the System Profile Manager, see  the 
B2Bi Operations Guide / Integration Engine System Manager / System Profile Manager.

326  Operations Guide B2Bi  2.1


Best practices for cluster environment development

Fail safe operation


For the B2Bi integration engine, the default run mode is “fail safe”. This is the safest operating mode 
in terms of persistence to the disk, but it takes away a percentage of processing power because this 
persistence slows down the throughput. The percentage of processing required depends on the 
production context. As a general rule, turning off the “fail safe” mode benefits small size / high 
volume patterns significantly more than large file / low volume patterns.

Caution: Turning fail safe operation off is generally not supported for cluster installations. It can be 
turned off for single node clusters or certain Axway-verified and approved cluster installations with 
no node-specific caching toward the shared file system.

Log level
Logging can become a performance bottleneck, especially in situations in which the system needs 
to handle a high volume of small messages. To avoid this, you can change the log level to reduce 
the amount of log information per transaction. 

To do this, you set an environment variable in the file:

<B2Bi_installation_directory>/Integrator/config/environment.dat

Set this level through the following environmental variable:
B2BI_MESSAGE_LOG

The default level is 1. Valid values are 0, 1, or 2 (minimal, normal, full).

Trading engine tuning


For information on trading engine tuning tasks, see Tune the trading engine on page 280.

Best practices for cluster environment


development
The way a message is processed in B2Bi is determined by a sequence of processing steps that are 
defined in a "flow" for that message. In B2Bi, processing flows are specified for different message 
types in  Service objects. 

When a cluster changes (that is, when the node that is processing the message fails) the integration 
message processing flow automatically restarts on an alternative node in the cluster, from the last 
processing step that is part of the execution sequence. 

For each B2Bi processing step in a flow, the integration engine:

 l Reads input queues
 l Executes a processing activity

B2Bi  2.1 Operations Guide  327


16  B2Bi Active / Active clustered installations

 l Stores the output of the activity processing in internal queues
 l Commits the message read

Any processing step that is not fully completed is automatically restarted from the beginning, 
starting with polling the uncommitted message again from the internal queue.

Because these steps are started from the beginning, it is important to follow a basic programming 
principle: (using a DB insert as a sample)

It is important to perform the commit of all changes at the VERY END of the processing activity. If 
the node fails before the end of the activity, the process restarts the activity, and the uncommitted 
database mutation from the first try will automatically be rolled back. A more limited risk remains if 
the node fails between the database commit and the activity commit.

The following example illustrates a database write activity  structure, with the placement of the 
commit at the end of the activity.

customprogram.java
-----------------------------------------
Start Activity
...
Write to Database
Other things
...
Commit
End Activity
-------------------------------------------

328  Operations Guide B2Bi  2.1


WebSphere MQ multiple instances

WebSphere MQ multiple instances


WebSphere® MQ supports the creation of a multi-instance queue manager. A multi-instance queue 
manager restarts a WebSphere MQ (MQSeries) server instance automatically on a standby server 
when the active instance goes down.

For the use case described in this topic:

 l WebSphere MQ is installed on two servers. 
 l One queue manager, QM1, has been created.
 l One instance of QM1 is active, and is running on one server. 
 l The other instance of QM1 is running in standby mode on the other server. This server performs 
no active processing, but is ready to take over from the active instance of QM1, if the active 
instance fails.

It is important to take into account the time required for the standby instance of a multi-instance 
queue manager to become active after the active instance becomes unavailable. Preliminary tests 
indicate that the required time may vary between 30 seconds and two minutes, depending on 
configuration and reason for failure.

Set up WebSphere MQ
To use a WebSphere MQ queue manager as a multi-instance queue manager:

 1.  Use the crtmqm command to create a single queue manager on one of the servers. 
 2.  Place the queue manager data and logs in shared network storage directory. 
 3.  On the other server, rather than create the queue manager again, use the addmqinf command 
to create a reference to the queue manager data and logs on the network storage.
All the connection information for the standby server must be the same as for the main server, 
including the port.

Set up B2Bi
After you install the MQ multi-instance queue manager, you must configure B2Bi to use the multiple 
instances. To do this you can create a new pickup or modify an existing pickup.

New pickup or delivery


 1.  Log on to the B2Bi user interface.
 2.  Create an IBM MQ pickup or delivery (application or trading partner).

B2Bi  2.1 Operations Guide  329


16  B2Bi Active / Active clustered installations

During the MQ pickup or delivery creation, the creation wizard displays the Settings page. On 
this page:
 3.  Enter settings for the main MQSeries server.
 4.  Select the option Multi-instance queue manager. When you select this option, the 
following field is displayed: MQSeries standby server. Enter the standby server address. 
 5.  Click Save.

Existing pickup
Alternatively, you can add the multi-queue instance to an existing IBM MQ pickup. To do this:

 1.  Open the modification page for an existing MQSeries pickup or delivery.
 2.  Select the IBM MQSeries settings tab. 
 3.  Select the option Multi-instance queue manager. When you select this option, the 
following field is displayed: MQSeries standby server. 
 4.  Enter the standby server address.
 5.  Click Save changes.

How the multi-instance functions


B2Bi tries to send or receive every message to the last functional WebSphere MQ (MQSeries) server. 
WebSphere MQ has a cache where the status for each exchange point is registered. If the  p rimary 
instance crashes, B2Bi automatically tries to connect to the standby instance. If the standby is not 
running, the message is re-queued. The message is then held for a new retry. This provides time for 
the standby instance to become active. If the standby is still not available, the message goes 
through additional re-queue and retries. The time between the retries increases for each queue/retry 
cycle. When the maximum number of retries is reached (defined in the queue manager 
configuration), the message is rejected.

During the period when neither of the WebSphere MQ server instances is available, B2Bi tries to 
connect to the primary and to the secondary server on each retry. After a connection is successfully 
made to a server instance, the WebSphere MQ cache is updated. In the cache, the last functional 
host for the exchange point is specified, so that all future messages are exchanged directly with the 
active WebSphere MQ server.

330  Operations Guide B2Bi  2.1


Start and stop B2Bi
servers 17  
This chapter provides procedures for starting and stopping B2Bi and the component servers.

 l Start and stop B2Bi on page 331
 l Start B2Bi servers individually on page 333
 l Start the Axway Database on page 334
 l Start PassPort on page 336

 l Start Sentinel on page 335
 l Stop B2Bi servers individually on page 336
 l Stop Sentinel on page 337
 l Stop  P assPort on page 338
 l Stop the Axway Database on page 338

Start and stop B2Bi

Before you start B2Bi


Important: Check that the database has correctly started before you start B2Bi.

Did you install B2Bi as a Windows service?


During B2Bi installation, if you selected the option to install the B2Bi servers as Windows services, 
B2Bi servers start and stop automatically on machine startup and shutdown. If you need to start or 
stop B2Bi with the machine started, use the B2Bi script described in this chapter.

About the B2Bi start/stop script


From B2Bi 2.1.0 SP3, B2Bi has a new script for starting, stopping, and checking the status of the 
product.

The tool is located in the /B2Bi directory of the B2Bi installation. It is named:

B2Bi  2.1 Operations Guide  331


17  Start and stop B2Bi servers

 l UNIX/Linux – B2Bi
 l Windows – B2Bi.bat

Note In a cluster you must run the B2Bi stop script on all machines of the cluster to stop the 
product.

Use the script


From a command console, enter the command with the syntax described below.

To open a command console in Windows:

 1.  In Windows explorer, navigate to the root directory of our B2Bi installation.
 2.  Press Shift and right-click the root folder of your installation directory (for example 
C://Axway).
 3.  From the context menu, select Open command window here.

Syntax
B2Bi [command]

Possible commands:

 l start [-T] – Starts B2Bi.

 o Option [-T] starts only the B2Bi trading engine. The default setting (running the command 
without the option) is "False".
 l stop [-t] – stops B2Bi.
 o Option [-t] <timeout> enables you to set the maximum time to wait for integration 
engine user tasks to stop. The default timeout value is 120 seconds.
 l status – Displays whether B2Bi nodes are running or stopped.
 l help – Displays command usage information.

Examples

UNIX/Linux
Start B2Bi

./B2Bi start  

Start the B2Bi trading engine only

./B2Bi start T  

332  Operations Guide B2Bi  2.1


Start B2Bi servers individually

Stop B2Bi

./B2Bi stop  

Stop B2Bi and allow 240 seconds for integration engine tasks to stop

./B2Bi stop -t 240  

Get B2Bi node status

./B2Bi status  

Display command info in the console

./B2Bi help  

Windows
Start B2Bi

B2Bi start  

Start the B2Bi trading engine only

B2Bi start T  

Stop B2Bi

B2Bi stop  

Start B2Bi and allow 240 seconds for integration engine tasks to stop

B2Bi stop -t 240  

Get B2Bi node status

B2Bi status  

Display command info in the console

B2Bi help  

Start B2Bi servers individually


If you need to manually start servers, start them in the following order. 

 1.  Start the Axway Database on page 334- If you are using a third-party database, refer to the 
documentation provided with that product.
 2.  Start PassPort on page 336
 3.  Start Sentinel on page 335
 4.  Start B2Bi. See Start and stop B2Bi on page 331.

B2Bi  2.1 Operations Guide  333


17  Start and stop B2Bi servers

Start the Axway Database

Prerequisite
Install the Axway Database.

Procedures

Windows non-service mode


 1.  In Windows Explorer, navigate to <database install directory>.
 2.  Open a command window on the \bin folder.
 3.  Enter the command:
Axway_Database start

Windows service mode


During Axway Database installation, you can elect to run the database as a Windows service. This 
causes the database server to start and stop with the computer.

For details about how to install the Axway Database as a Windows service, refer to the Axway 
Database Administrator Guide.

To start the database with Windows already running:

 l From the desktop, open the Windows Services manager and select:
Axway_Database_start

 l From a DOS prompt, run:
net start AxwayDatabase

UNIX
From the directory  <db_installation_root_directory> run:

Axway_Database start.

334  Operations Guide B2Bi  2.1


Start Sentinel

Start Sentinel

Prerequisites
 1.  Install:
 l Axway Database (or alternatively, install a third-party database)
 l Sentinel
 2.  Start the database.

Procedures

Windows non-service mode


Navigate to the Sentinel installation directory and enter the command: startserver.bat

The Sentinel server console (or the sentinel.log file if the console is redirected to a file) displays 
the following message:   "[STARTED] FrontEnd server"

Windows service mode


You can configure Sentinel to run as a Windows service. This causes the server to start and stop with 
the computer. 

If you need to start the Sentinel server with Windows running:

 1.  From the desktop   S tart menu , select Settings > Control Panel > Administrative Tools


> Services.
Windows displays the Services window.
 2.  Scroll down the Services list and right-click the Sentinel service.
 3.  From the context menu, select Start.

UNIX
Navigate to the Sentinel installation directory and enter the command: / startserver

The Sentinel server console (or the sentinel.log file if the console is redirected to a file) displays the 
following message:   "[STARTED] FrontEnd server"

B2Bi  2.1 Operations Guide  335


17  Start and stop B2Bi servers

Start PassPort

Prerequisites
 1.  Install:
 l Axway Database (alternatively, you can install a third-party database)
 l PassPort
 2.  Start the database.

Procedures

Windows
Do one of the following:

 l Open a Windows command console from the Axway\PassPort\bin directory and enter  the 
server start command: startPassport.cmd

 l From the desktop   S tart menu, select All Programs > Axway Software >Axway >


PassPort > Start PassPort

UNIX
Navigate to the PassPort installation directory and enter the command: startPassport

Stop B2Bi servers individually


Stop B2Bi servers in the following order. 

 1.  Stop B2Bi. See Start and stop B2Bi on page 331.
 2.  Stop Sentinel on page 337
 3.  Stop  P assPort on page 338
 4.  Stop the Axway Database on page 338

336  Operations Guide B2Bi  2.1


Stop Sentinel

Stop Sentinel

Prerequisites
Log off from the Sentinel monitoring interface.

Procedures

Windows non-service mode


Open a command console screen.

Enter the command: Windows:stopserver.bat

Windows service mode


You can configure Sentinel to run as a Windows service. This causes the server to start and stop with 
the computer. 

For details of how to configure the Sentinel server to run as a Windows service, refer to the Axway 5 
Suite Installation and Prerequisites Guide.

If you need to start the Sentinel server with Windows running:

 1.  From the desktop Start menu, select Settings > Control Panel > Administrative Tools


> Services.
Windows displays the Services window.
 2.  Scroll down the Services list and right-click the Axway Sentinel service.
 3.  From the context menu, select Stop.

UNIX
Navigate to the Sentinel installation directory and enter the command: / stopserver

B2Bi  2.1 Operations Guide  337


17  Start and stop B2Bi servers

Stop PassPort

Windows
Do one of the following:

 l Open a Windows command console from the Axway\PassPort\bin directory and enter  the 
command: stopPassport.cmd
 l From the desktop   S tart menu, select All Programs > Axway Software >Axway >
PassPort > Stop PassPort

UNIX
Enter the command: stopPassport

Stop the Axway Database

Windows non-service mode


 1.  In Windows Explorer, navigate to <database install directory>.
 2.  Open a command window on the \bin folder.
 3.  Enter the command:
Axway_Database stop

Windows service mode


During Axway Database installation, you can elect to run the database as a Windows service. This 
causes the database server to start and stop with the computer.

For details about how to install the Axway Database as a Windows service, refer to the Axway 
Database Administrator Guide.

To start the database with Windows already running:

 l From the desktop, open the Windows Services manager and select:
Axway_Database_stop

338  Operations Guide B2Bi  2.1


Stop the Axway Database

 l From a DOS prompt, run:
net stop AxwayDatabase

UNIX
From the directory  <db_installation_root_directory> run:

Axway_Database stop

B2Bi  2.1 Operations Guide  339


Backup and restore:
Recommendations and 18  
example

Introduction
The following topics describe a backup and restore strategy for a clustered B2Bi configuration, 
running on a Windows environment.

These descriptions represent general good practices for conserving the capability of recovering in 
case of disaster.

For details of how to execute different types of B2Bi backups, see Backup and restore on page 344.

Example environment
In a comprehensive B2Bi backup and restore strategy, the following three elements must be 
conserved:

Nodes

A typical two-node B2Bi cluster installation on Windows has the following base directories 
(paths are examples and may be different in your installation):

Node 1

Installation directory: C:\Axway\B2Bi\..

Node 2

Installation directory: C:\Axway\B2Bi\..

Shared file system

Shared file system accessible from both nodes (%B2BI_SHARED%): 

E:\Axway\B2Bi\shared\..

Shared database

The two B2Bi nodes rely on a shared database. This database can be either the Axway 
Database or a third-party database. See the B2Bi Installation and Prerequisites Guide for a 
list of supported databases.

B2Bi  2.1 Operations Guide  340


18  Backup and restore: Recommendations and example

Back up a B2Bi configuration


Use this backup strategy to ensure that  in the event of a system disaster you can:

 l Restore the base shared file system in a stable state
 l Preserve the typical changes to the system with the incremental partial backups

In case of disaster recovery, however, there are limitations to message recovery capabilities in the 
integration engine, as the queues and files containing messages that are currently being processed 
are not saved. To handle integration engine message recovery, see Integration engine message 
recovery after node failure on page 447.

Back up the B2Bi nodes


We strongly recommend a full backup of the system running the B2Bi node on a regular basis. As a 
minimum, you should always back up the system:

 l After the initial installation 
 l Before a patch or service pack is applied to the operating system or to B2Bi

Backup the shared file system


B2Bi comprises two distinct engines: the trading engine and the integration engine. The shared file 
system is used by both of these engines.

For the integration engine, backups of the shared file system have limited value. When the system is 
running, the internal storage structures and the payload storage for the integration engine are likely 
to be modified during the backup process, so it is likely that the snapshot of the system that is 
provided by a backup would result in a corrupt system after restoration.

The trading engine uses the shared file system only to store the payloads while the rest of the 
configuration is stored in the database. Typically, a backup of the shared file system results in 
(slight) mismatches between the database and file system content. The magnitude of mismatches 
depends on the synchronization between the two backups.

To make sure that you can recover your system in a stable state, we recommend the following 
backup procedure:

 1.  Make an initial backup of the full shared file system when the system is not running. Repeat this 
step whenever you apply patches and service packs to B2Bi, and whenever you change from 
one version of B2Bi to the next.
 2.  Perform regular backups of the following directories on the shared file system. (You do not 
need to shut down the system for these backups.)

341  Operations Guide B2Bi  2.1


Back up a B2Bi configuration

Directory Content

\Axway\B2Bi\shared\common\conf Private keys are stored here (in the 
keys subdirectory). These keys are 
referenced from the database.

\Axway\B2Bi\shared\common\data\backup Directory where the trading engine 
stores the payloads.
This directory only needs to be 
backed up in case you want to 
preserve “in flight” data and / or 
have the ability to resubmit and 
reprocess messages from the 
trading engine after a restore.  I this 
directory is backed up for that 
purpose, you must align the 
database backup with a backup of 
this directory from a time 
perspective.

\Axway\B2Bi\shared\common\b2bi\containers\cache Deployed DML maps if you use DML 
maps. Instead of backing up this 
directory (and restoring it in case 
of disaster recovery), you can 
redeploy maps from Mapping 
Services interface.
If you use Java custom functions, 
you must also backup %B2BI_
SHARED_
LOCAL%\java\dmlfunctions.

\Axway\B2Bi\shared\b2bi\local Custom components, including 
Datamapper maps, and MBCs 
(%B2BI_SHARED_LOCAL%\4edi
and %B2BI_SHARED_
LOCAL%\java).
Custom configuration (attributes / 
property files) for the integration 
engine (%B2BI_SHARED_LOCAL%).
Custom document standards 
(%B2BI_SHARED_
LOCAL%\config\b2bx\repos).

\Axway\B2Bi\shared\b2bi\data\unique Unique counters used for 
enveloping and other purposes

B2Bi  2.1 Operations Guide  342


18  Backup and restore: Recommendations and example

Back up the external database on a regular


schedule
The external database is used by the trading engine.

To ensure that you can re-submit or reprocess messages from the trading engine after a restore, you 
must schedule the database backups to occur at the same time as file system backups. This is 
because the database contains references to files (payloads) on the shared file system. De-
synchronization  b etween the database and the shared file system backup can potentially result in 
failed messages (messages that were being processed at the moment of backup) or the inability to 
resubmit and reprocess a message after the backup has been restored and the system is restarted.

Additional recommendations
If you have not yet stored or otherwise persisted private keys outside of the application, it is a good 
practice to export the private keys that are used for encryption, signing and SSL certificates, for 
each community profile. Keep the key backups in a secure location.

Restore a backed-up B2Bi configuration


To restore a backed up configuration, you typically execute steps for backing up in the reverse 
order. The exact items to be executed and the order depends on the type of system disaster and the 
consequent configuration loss (one node outage, cluster outage, shared file system outage, ...).

The following are typical steps to follow:

 1.  Restore the B2Bi node(s) from the backup. Make sure the products are not started (stop them if 
needed). You may see numerous errors at this stage, if the product is not stopped (as the 
restore of the other pieces is not complete yet).
 2.  Restore the shared file system:
 a.  Restore the base shared file system (snapshot from a stopped B2Bi installation) – see 
backup procedures above.
 b.  Restore the latest partial backup of the shared file system.
 c.  Run a “configure” on the restored B2Bi node(s). This will regenerate all necessary runtime 
configuration files (logger, queuer, filer, table, ...).
 3.  Restore the backup of the database.
 4.  Restart the products.

343  Operations Guide B2Bi  2.1


Backup and restore
19  
Overview
B2Bi provides  tools for creating backup files of the following parts of your configuration:

 l System backup – Creates a comprehensive backup of your entire B2Bi configuration.
See Back up  a B2Bi system configuration on page 348.
 l Community backup – Creates a backup of a specific Community and its related Partners.

See Back up a community and its partners on page 358.
 l Partner backup – Creates a backup of a specific Partner and its associated configuration 
setting and keys.
See Back up a partner on page 361.
 l Selective object backup – Creates a backup of a single selected object or a group of objects 
of the same object type.
See Back up selected objects on page 366.

After you create backups, you can use them in several ways:

Restoration:

 l Restore all or part of the B2Bi system configuration to the B2Bi instance where you created the 
backup.
 l Restore a single community (and its partners) to the B2Bi instance where you created the 
community backup.

 l Restore a single partner to the B2Bi instance where you created the partner backup.

 l Restore a single object, or restore a selected group of objects of the same type.

Deployment and promotion:

 l Deploy or promote all or part of the B2Bi System configuration to another B2Bi environment.
 l Deploy or promote a single community (and its partners)  to another B2Bi environment.
 l Deploy or promote a single community as a partner to another B2Bi environment.
 l Deploy or promote a single partner to another B2Bi environment.
 l Share B2Bi partner configurations with your trading partners (if they use Axway applications).
 l Deploy or promote a single object, or selected group of objects of the same type.

B2Bi  2.1 Operations Guide  344


19  Backup and restore

Uniqueness of objects and exchange


contexts
When you manage backup and restore files in B2Bi, you should take into consideration uniqueness 
requirements. See Uniqueness in B2Bi on page 379.

Choosing a backup type


The following table lists backup and restore types, and provides links to procedures for performing 
the backup or restore.

For information comparing the Community backup and System backup, see Compare community 
backup and system backup  on page 346.

To do this From the command line From the user


interface

Back up all communities and  System configuration  Back up  a B2Bi system 


related objects to a compressed  backup/restore using the  configuration on page 
package of XML files command line on page 357 348

Restore or deploy all or part of the  System configuration  Import a backed-up B2Bi 


configuration backup/restore using the  system configuration on 
command line on page 357 page 354

Back up a specific community and  n/a Back up a community 


its partners to a compressed  and its partners on page 
package of XML files 358

Import a backed-up community  n/a Import a backed-up 


and its partners community and its 
partners on page 359

Back up (export) a community to  n/a Back up a community as 


a partner profile XML file. a partner on page 360

Import one or more partners n/a Import a partner on 


page 362

Back up (export) a partner to a  n/a Back up a partner on 


partner profile XML file. page 361

345  Operations Guide B2Bi  2.1


Compare community backup and system backup

To do this From the command line From the user


interface

Import one or more partners n/a Import a partner on 


page 362

Back up a single selected object or  n/a Back up selected objects 


multiple selected objects of the  on page 366
same type:
 l Components
 l Services
 l Inbound agreements
 l Document agreements
 l Outbound agreements

Restore a single selected object or  n/a Import / restore selected 


multiple selected objects of the  objects on page 368
same type:
 l Components
 l Services
 l Inbound agreements

 l Document agreements
 l Outbound agreements

Extended configuration Back up and restore a custom  n/a


Back up custom components configuration on page 377

Compare community backup and system


backup
A community backup saves the configuration for a specific community, whereas the system backup 
saves the configuration for all communities. The following table shows the elements of the B2Bi 
configuration that are included in the community backup and in the system backup. 

Note The contents of the system backup vary based on licensing and the features 
enabled/configured in your implementation.

B2Bi  2.1 Operations Guide  346


19  Backup and restore

Community backup System backup content (including community backup


content content)

Contacts Agreements
Attributes templates Metadata profiles
Routing IDs Services
Password policies Components and processing connections
Trading pickup exchanges Global system settings:
Collaboration settings  l Node configuration (trading engine,  DMZ nodes/zones)
Message validation settings
 l Sentinel settings
Partners
 l IP whitelists
 l Messaging IDs
 l Global server settings
 l Routing IDs
Peer Network settings
 l Contacts Embedded servers
 l Certificates  l Transport users and policies
 l Delivery exchanges User administration
 l Roles/users
 l Password policy
Message Handler configuration
Message Validation settings
Collaboration settings
Application/Integration exchanges
 l Global application pickups
 l Global application deliveries
 l DocTypes/Attributes
PassPort settings

347  Operations Guide B2Bi  2.1


Back up a B2Bi system configuration

Back up a B2Bi system configuration


Use this procedure to back up B2Bi configuration and all communities and partners engaged in B2Bi 
message exchanges. This backup creates a compressed ZIP file which comprises XML files. The 
default name for this file is ExportSystem.zip. 

For a description of the content of the generated system backup ZIP file, see System configuration 
backup file content on page 348.

For the procedure for restoring the system backup ZIP file, see Import a backed-up B2Bi system 
configuration on page 354.

Procedure

 1.  In the user interface, from the System Management menu, select System Management.


 2.  At the bottom of the page, click Export entire system profile.
 3.  Enter the private key password in both the Password and Confirm password text boxes.  
You need the password if you later import the backed-up file.
 4.  Click Export.
 5.  When the process is complete, follow the system prompts to indicate where on your system you 
want to save this export. Store the compressed files in a secure place.
 6.  Click Close.

Note You may notice  temporarily reduced performance or throughput of your system while the 
backup is running. 

System configuration backup file content


When you export the system configuration, B2Bi generates a ZIP file with the default name 
ExportSystem.zip. This ZIP file includes several sub-ZIP files and many XML files. Each XML file 
contains a part of the exported configuration.

You can restore the backup of one system into another environment, although certain limitations 
apply. (See Import a backed-up B2Bi system configuration on page 354.)

The following tables provide an overview of the various XML files you may need to customize prior 
to performing the import in the destination environment.

Note The  ZIP file content varies based on your product license and on the features that are 
enabled and configured in your implementation.

B2Bi  2.1 Operations Guide  348


19  Backup and restore

ExportSystem.zip contents – subdirectories

  OS Hostname Path
specific references references
references

Communities directory (one ZIP for each community) Yes; paths Potentially;  Potentially; 


For each community, the backup contains a zip file with an  protocol  protocol 
XML file containing the community definition and one or  related related
more XML files describing the partners participating in this 
community.
This directory contains both regular communities and peer 
communities, if peers exist.

Partners directory (one XML file per partner) Yes; paths Potentially;  Potentially; 


Contains the partner profiles defined in the system. criteria/  criteria/ 
This directory contains both regular partners and peer  attribute  attribute 
partners, if peers exist. related related

Webtraders directory(one XML file per WebTrader - - -
Contains WebTrader partner and user configuration.

ExportSystem.zip contents – root

  OS specific Hostname Path


references references references

AgreementAttributeTemplates.xml  - - -
Contains the attributes templates used by 
agreements.

ApplicationDeliveryExchanges.xml    Potentially;  Potentially;  Potentially; 


Contains the application deliveries defined   protocol related protocol related protocol related
in the system.

ApplicationPickupExchanges.xml  Potentially;  Potentially;   Potentially; 


Contains the application pickups defined  in  protocol related protocol related protocol related
the system.

Categories.xml  - - -
Contains the partner categories defined in 
the system.

349  Operations Guide B2Bi  2.1


System configuration backup file content

ExportSystem.zip contents – root

Certificates.xml - - -
Contains the various (public) certificates 
defined in the system.

CRLs.xml - CRL hosts URLs / LDAP 


Contains the various certificate revocation  paths
list locations defined in the system.

DefaultCollabSettings.xml   - - -
Contains the collaboration rules defined in 
the system.

DocumentAgreementAttributeTemplates.xml  Potentially  Potentially  Potentially 


Contains the attribute templates used for  (depending on  (depending on  (depending on 
document agreement definitions. defined  defined  defined 
attributes) attributes) attributes)

DocumentServiceAttributeTemplates.xml Potentially  Potentially  Potentially 


Contains the attribute templates used for  (depending on  (depending on  (depending on 
document agreement definitions. defined  defined  defined 
attributes) attributes) attributes)

EmbeddedServers.xml   - Yes -
Contains the servers defined in the system.

ErrorProcessor.xml - - -
Contains the error processing configuration 
defined in the system.

GlobalTransportSettings.xml   - - Yes; 
Contains the global transport settings (user  GlobalBackup
retry and lock, backup) defined in the  Config
system.

GlobalUiSettings.xml  - - -
Contains the global UI settings defined in 
the system. Session Management and global 
user security settings.

MessageHandler.xml - - -
Contains the Message Handler configuration 
defined in the system.

B2Bi  2.1 Operations Guide  350


19  Backup and restore

ExportSystem.zip contents – root

MetadataProfileAttributeTemplates.xml  - - -
Contains the attribute templates used for 
metadata profile definitions.

PartyAttributeTemplates.xml  - - -
Contains the attribute templates used for 
partner definitions.

PasswordPolicies.xml   - - -
Contains the stored password policies in the 
system.

PeerNetworking.xml  - - -
Contains the peer network settings.

ProcessingNodes.xml  - Yes -
Contains the defined nodes in the system.

PurgeConfig.xml  - - -
Contains the purge settings defined in the 
system.

ReportProfile.xml   - - -
Contains the Reports defined in the system.

SentinelConfig.xml  - Yes -
Contains the Sentinel configuration defined 
the system.

ServiceAttributeTemplates.xml Potentially  Potentially  Potentially 


Contains the attribute templates used for  (depending on  (depending on  (depending on 
service definitions. defined  defined  defined 
attributes) attributes) attributes)

TslRetrievalProxyMode.xml  - - -
Contains the configured Trust-service Status 
List proxy mode.

UiConnectionConfig.xml  - Yes -
Contains the configured UI connection 
modes (HTTP/HTTPS).

UsersAndGroups.xml  - - -
Contains the configured Users and Groups in 
the system.

351  Operations Guide B2Bi  2.1


System configuration backup file content

B2BiConfiguration.zip contents (included in ExportSystem.zip)

  OS specific Hostname Path


references references references

Agreements directory Potentially;  Potentially;  Potentially; 


/Inbound protocol related protocol  protocol related
/Outbound related
Contains a separate XML file for each agreement.

GlobalProcessingConfig.xml - Yes -
Contains the global processing configuration 
defined in the system.

MetadataProfiles.xml  Potentially;  Potentially;   Potentially; 


Contains the metadata profiles defined in the  criteria /  criteria /  criteria / 
system. attribute related attribute  attribute related
related

ProcessingConnections.xml absoluteFilepath No absoluteFilepath


Contains the configuration information from the 
Processing configuration > Manage connections 
page in the UI.

ProcessingSteps.xml  Potentially;   Potentially;   Potentially; 


Contains the various components (formerly  protocol related protocol  protocol related
known as processing steps) defined in the  related
system.

Services.xml Potentially;  Potentially;  Potentially; 


Contains the services defined in the system. protocol related protocol  protocol related
related

MapContainers.zip contents (included in ExportSystem.zip)

  OS specific Hostname Path


references references references

Each deployed container from Mapping  - - -
Services

B2Bi  2.1 Operations Guide  352


19  Backup and restore

XsrCerts.zip contents (included in ExportSystem.zip)

  OS specific Hostname Path


references references references

Each certificate used for the connection with  - Certificates are  -
Secure Relay instances host specific

353  Operations Guide B2Bi  2.1


Import a backed-up B2Bi system configuration

Import a backed-up B2Bi system


configuration
Use this procedure to import compressed files containing the backed-up configuration, 
communities, and partners for B2Bi. You can import the B2Bi configuration to the same instance of 
the trading engine where you created the backup, or to a new instance with a new database. If you 
import to the same instance, you need to select the import mode for existing objects.

Before you begin

To successfully import a system backup, the platform to which you are importing the backup must 
have a valid trading engine node and a valid integration engine node. 

 l If you are importing to the same instance, all nodes are reconstructed with the configuration 
contained in the zip file. 
 l If you are importing to a different instance (i.e. a different trading engine node name), none of 
the processing node configuration is imported.

In addition, consider the following before performing the import:

 l If the system configuration you are importing contains file path definitions defined in various 
objects, the import attempts to re-create them. If the user running the trading engine has the 
appropriate rights, it succeeds. If not, the import succeeds but the created objects refer to non-
existing paths that result in processing errors if used without modification (or manual creation of 
the referenced paths).
 l The system backup is a compressed file containing multiple XML files. Normally, you import the 
compressed file. It is possible to uncompress the backup file and import the XML files 
individually. However, such importing can be done only through the B2Bi profile management 
API (PMAPI). You may need the help of Axway Professional Services consultants to use the API. 

Peer Network limitation

Peer Network auto-cloning will not occur for the objects you import through the system import 
feature. 

Workaround : After you execute a system import and restart the trading engine, if you have Peer 
Network auto-cloning configured, you can force peer cloning by re-saving the objects that you want 
to clone.

Procedure

 1.  In the user interface, select System Management >  System Management.


 2.  Click the task Import entire system profile near the bottom of the page.
 3.  Browse to the location where you stored your backup and select that file, or type the full path 
including the backup file name.
 4.  Enter the password used by the export to protect private key certificates in both the Password
and Confirm password text boxes.

B2Bi  2.1 Operations Guide  354


19  Backup and restore

 5.  Select whether to update, ignore, or replace existing objects. See Select the system import 
mode on page 356 for more information.   
 6.  Click Next to import the file. The Import entire system results page displays details about the 
imported configuration.
 7.  Click Finish to exit.

355  Operations Guide B2Bi  2.1


Select the system import mode

Select the system import mode


When you import a system backup to an existing environment, you can specify one of the following 
options:

 l Replace existing objects if encountered (Default).
Imports all backed-up objects replacing (unmodified) previous content and imports objects that 
do not exist.
 l Ignore imported objects if existing objects are encountered.
If an identical existing object is encountered, it remains as is and is not imported, a message is 
logged, and the import process moves on to evaluate the next object. 
 l Update (add objects that don't already exist, replace objects that do exist).
Adds new objects that do not exist. Adds backed-up content to objects that do exist 
(incremental updates). 

The Update option enables you to incrementally update certain objects. It is only effective for multi-
layer objects with parent-child associations. For flat/single object definitions, the Update mode 
operates in the same way as the Replace mode. The following table lists the updates applicable to 
multi-layer objects.

Updated object Update action on associated child object


type

Community Deliveries
 l Add one or more additional deliveries to existing communities
 l Assign a new default
Messaging IDs
 l Add one or more additional messaging IDs
 l Assign a new default
Certificates 
 l Add one or more additional certificates (personal, PGP, trusts, etc.) to 
existing communities
 l Assign a new default
Contact information
 l Add additional (or updated primary or secondary) contact information 
to existing communities
 l Change the set of assigned attributes

B2Bi  2.1 Operations Guide  356


19  Backup and restore

Updated object Update action on associated child object


type

Partner Messaging IDs
 l Add one or more additional messaging IDs
 l Assign a new default
Deliveries
 l Add one or more additional deliveries to existing partners
 l Assign a new default
Certificates
 l Add one or more additional certificates to existing partners
 l Assign a new default
Contact information
 l Add additional (or updated primary or secondary) contact information 
to change existing partners
Attributes
 l Change the set of assigned attributes

Inbound • Add one or more additional document agreements to an existing 
agreement agreements
• Add one or more additional grouping agreements to existing inbound 
agreements
• Change the set of assigned attributes

Outbound • Add one or more additional grouping agreements to existing outbound 
agreement agreements
• Change the set of assigned attributes

System configuration backup/restore using


the command line
An alternative to using the UI for a B2Bi system backup and restore is to use the command line tool: 
systemBackupRestore

You can use this tool to create backup files and to import these files to B2Bi environments.

This tool is located in <trading engine install directory>\tools.

Note As part of the restore procedure, the trading engine restarts.

For a complete list of tool options, open a command console and enter the command:

systemBackupRestore ?

357  Operations Guide B2Bi  2.1


Back up a community and its partners

Command options are:

 l backup – Create an export/backup file.
 l restore – Import/restore a backup file.
 l user – The username to access the trading engine system.
 l pwd – The password to access the trading engine system.
 l certpwd – The export password, only used when importing private certificates.
 l importmode – (Optional) Options are REPLACE/IGNORE/UPDATE. Default = Replace) See 
Select the system import mode on page 356 for details. 
 l backupfile – The file name for the exported compressed file. Defaults to ExportSystem.zip 
if not specified.

Export example:

./systemBackupRestore -backup -user admin -pwd Secret1 -certpwd Secret1 [-


backupfile backupFileName]

Import example:

./systemBackupRestore -restore -user admin -pwd Secret1 [-certpwd Secret1]


[-importmode REPLACE] [-backupfile backupFileName]

Log files
The systemBackupRestore tool records information in two log files.

 l To view a summary of import details, open this file:
<trading engine install directory>\logs\ImportOutput.log

 l To view a complete log, open this file:
<trading engine install directory>\logs\systemBackupRestore.log

Back up a community and its partners


You can back up (or "export") a community and all of its partners to a single compressed file. The 
backed-up file includes all configuration settings specific to the community and all of the partners 
associated with the community. This includes public and private keys and configurations for 
inbound message validation and HTTP proxies.

Also included are configurations for all deliveries, except community application pickups, which are 
common to all communities and not to a single one. 

Message handler actions are not backed up, as these are set up in an area of the user interface 
shared by all communities. Moreover, community and partner collaboration settings are backed up, 
but not default collaboration settings.

B2Bi  2.1 Operations Guide  358


19  Backup and restore

You can back up a community and keep the file in reserve for disaster recovery or other reasons. The 
file can be imported to an installation of the trading engine with a fresh database, providing instant 
configuration of a community and its associated partners.

You cannot export a community from a trading engine running on one type of platform and import 
it to a trading engine on another platform. For instance, if you export a community from a trading 
engine instance on Windows, you must import it to the same or different instance also on Windows.

If you have configured any pluggable transports, these are saved to the backup file, except for 
application pickups. Pluggable transports are customized message consumption and production 
exchanges available to users of the Software Development Kit. Restoring pluggable transports upon 
importing the backup file requires having a pluggabletransports.xml file in <install
directory>\conf that describes the transports. For example, if the backup saves two application 
deliveries based on a custom transport configured in pluggabletransports.xml, the instance of 
the trading engine that imports the backup also must have identical configuration for the custom 
transport in its pluggabletransports.xml file.

Back up a community
Use this procedure to back up a community and all of its partners to a single compressed file. Also 
see: Import a backed-up community. 

 1.  In the B2Bi user interface, from the Trading configuration menu, select Manage trading


configuration to open the Communities page. 
 2.  Click on the name of the community you want to back up, to open the Summary page for that 
community.
 3.  At the bottom of the community summary page, click Export this community and its
partners.
 4.  Enter a password for the exported file. This protects the community's private keys. You must 
provide the password if you later import this file.
 5.  Click Export.
The trading engine generates a community profile XML file, using the community and all 
associated partners.
It is best to keep the backed-up file as-is; do not decompress it. Do not open the file or extract 
parts of it with the intent of importing individual pieces. If you import the file, the trading 
engine deploys the community and associated partners. For more information, see   Import a 
backed-up community and its partners on page 359.

Import a backed-up community and its


partners
Use this procedure to import a backed-up XML file containing a community and its associated 
partners. 

359  Operations Guide B2Bi  2.1


Back up a community as a partner

To create a community backup, see Back up a community and its partners on page 358.

You can import a backed-up community file to a new instance of the trading engine with a fresh 
database or to an existing instance.

You must work in the B2Bi user interface to import the community backup. You import the same 
compressed file that was exported. Do not copy the file to the profiles\autoImport directory. 
The file is not compatible with auto-importing.

 1.  Click Trading configuration > Manage trading configuration on the top toolbar to 


display the Communities page.
 2.  Click Add a community to open the Add a community wizard.
 3.  Select Import a backed-up B2Bicommunity profile and its partners from a
compressed file and click Next.
 4.  Browse to the directory where the backed-up file is located and type the password used when 
the community was backed up.
 5.  Enter the password used by the export to protect private key certificates in both the Password
and Confirm password text boxes.
 6.  Select a type of import:   
 l Replace if community exists
 l Rename the new community
 l Ignore if community exists
 l Update if community exists

 7.  If your license supports the peer network, the option Allow application delivery to be


auto-cloned to peers is selected by default. You can clear this option if you do not want 
auto-cloning or do not use the peer network.
 8.  Click Next to import the file. A results page displays details about the imported configuration.
 9.  Click Finish to import the backed up community and partners. If a duplicate community is 
detected, you can overwrite the existing community or rename the imported community.

Back up a community as a partner


Before you back up (or "export") a community configuration to a file as a partner profile, make sure 
the community has been completely configured. 

If you have associated a certificate with the community, the certificate and public key is exported 
with the profile.

If the community has more than one trading pickup for receiving messages from partners, the 
default pickup is the preferred transport. The default pickup is the one that displays at the top of the 
list on the community’s Trading pickups page. Before you export the community, you can change 
the default trading pickup or disable a transport to refine the options available to your partner.

B2Bi  2.1 Operations Guide  360


19  Backup and restore

Distribute the profile to our trading partners by a secure means. If you send the profile file to trading 
partners as an e-mail attachment, we recommend compressing it with WinZip or similar software to 
ensure file integrity.

You only can export a community in a form usable as a partner profile. You cannot export the 
community by itself as a usable community profile. You can, however, export an entire community 
(the community profile and all associated partner profiles). For more information see Back up a 
community and its partners on page 358.

If you give the profile file to a trading partner who uses Interchange or Activator 4.2.x or earlier, the 
partner’s system prompts for additional information in the imported partner profile. The partner’s 
system prompts for the community’s address, city and state or zip code. This information is not part 
of a community profile. You can either provide your trading partner with this information or the 
partner can determine what to enter upon importing the profile.

Community backup as partner procedure


 1.  In the B2Bi user interface, from the Trading configuration menu, select Manage trading
configuration to open the Communities page. 
 2.  Click on the name of the community you want to back up as a partner profile, to open the 
Summary page for that community.
 3.  At the bottom of the community summary page, click Export this community as a partner
profile.
 4.  Select Save File and click OK.

The trading engine generates a partner profile XML using the community characteristics.

After you back up a community as a partner


You can send the partner profile to your trading partners, or use the partner profile to add a partner 
on an implementation of B2Bi. See Import a partner on page 362.

Back up a partner
You can back up (or "export") a partner and public key certificate to an XML file. You can then use 
the backup file (known as a partner profile) deployment, promotion, local restoration, or give it to 
your trading partners who use B2Bi, Interchange or Activator. If your partners use other 
interoperable trading software, consult with them on the data they require of you to establish 
trading relationships.

Similarly, a trading partner who uses B2Bi, Interchange or Activator can export a partner 
configuration and public key certificate to a file and give it to you to import as a partner. For trading 
partners who use other interoperable software, collect the trading data you need and then manually 
create a partner object to represent the trading partner in the user interface. The 

361  Operations Guide B2Bi  2.1


Import a partner

A backed up partner profile contains information such as the partner name and routing ID, as well as 
the configured transports for sending messages to the partner. If there is more than one exchange, 
the order of the transports is preserved. The first listed exchange is the default.

Other preferences included in exported partner profile files include:

 l All advanced settings that display on transport maintenance pages in the user interface, such as 
maximum concurrent connections, retries, connection, response and read time-outs.
 l HTTP chunking and attempted restarts for HTTP.
 l Transport friendly names.
 l The transport’s setting for backing up files.
 l The paths and file names of post-processing scripts, but not the scripts themselves.
 l Information for inline processing Java classes is included in exported profiles, but not the Java 
classes themselves.
 l If the profile has an FTP transport with an alternate command set file, that preference is included 
in the exported file, but not the command set file itself.

Partner backup procedure


 1.  In the B2Bi user interface, from the Partners menu, select Manage partners to open the 
Partners page. 
 2.  Click on the name of the partner you want to back up, to open the Summary page for that 
partner.
 3.  At the bottom of the partner summary page, click Export this partner’s profile.
 4.  Select Save File and click OK.

Import a partner
You can restore (or "import") a partner configuration and public key certificate that have been 
backed up to a partner profile XML file. 

For partner configuration backup procedure, see Back up a partner on page 361.

A backed up partner profile contains information such as the partner name and routing ID, as well as 
the configured transports for sending messages to the partner. If there is more than one exchange, 
the order of the transports is preserved. The first listed exchange is the default.

Other preferences included in exported partner profile files include:

 l All advanced settings that display on transport maintenance pages in the user interface, such as 
maximum concurrent connections, retries, connection, response and read time-outs.
 l HTTP chunking and attempted restarts for HTTP.
 l Transport friendly names.

B2Bi  2.1 Operations Guide  362


19  Backup and restore

 l The transport’s setting for backing up files.
 l The paths and file names of post-processing scripts, but not the scripts themselves.
 l Information for inline processing Java classes is included in exported profiles, but not the Java 
classes themselves.
 l If the profile has an FTP transport with an alternate command set file, that preference is included 
in the exported file, but not the command set file itself.

Import a single partner profile


 1.  Make sure the profile XML file is accessible on your file system. 
 2.  From the Partners menu, select Add a partner to open the Partner Wizard.
 3.  Select Import a partner profile from a file and click Next.
 4.  Complete the fields:
 l File name – Use the navigation tool to locate and select the partner profile XML file you 
want to import.
 l Choose import mode: 
Replace if partner exists – Select this option if you want to overwrite any existing 
partner with that has the same name.
Rename the new partner – Select this option if you want to create a new name for 
the partner you are importing. Then enter the name to use in the Partner name field.

Ignore if partner exists – if an existing partner is encountered, it remains as is and 


the new partner is not imported.
Update if partner exists –  If an existing partner is detected, the trading engine adds 
backed-up content to the existing partner definition (incremental update).
 l Choose peer network cloning:
Allow the partner to be auto-cloned to peers – If your license supports the peer 
network, this option is selected by default. Clear this option if you do not want auto-
cloning or do not use the peer network.
 l Choose communities for this partner – From the displayed list of available 
communities, select the communities that you want this partner to be a member of. 
Partners do not have to be members of any community, but partners must be a 
community member for trading to occur.
 5.  Click Finish.
The partner is imported. The new partner is added to the list of available partners on the 
Partners page.

363  Operations Guide B2Bi  2.1


Import a partner

Import all partner profiles found in a


directory on the server
 1.  Make sure one or more partner profile XML files are accessible in a single directory on your file 
system. 
 2.  From the Partners menu, select Add a partner to open the Partner Wizard.
 3.  Select Import all partner profiles found in a directory on the server and click Next.
 4.  Complete the fields:
 l Directory name – Use the navigation tool to locate and select the directory where you 
have stored one or more partner profile XML files.
 l Choose import mode: 
Replace existing objects if encountered – Select this option if you want to 
overwrite any existing partners with that has the same names as imported partner 
profiles.
Ignore imported objects if existing objects are encountered. – if an existing 
partner is encountered, it remains as is and the new partner profile is not imported.
Update (add objects that don't already exist, replace objects that do exist) –  
If an existing partner is detected, the trading engine adds backed-up content to the 
existing partner definition (incremental update).

 l Choose peer network cloning:


Allow the partner to be auto-cloned to peers – If your license supports the peer 
network, this option is selected by default. Clear this option if you do not want auto-
cloning or do not use the peer network.
 l Choose communities for this partner – From the displayed list of available 
communities, select the communities that you want this partner to be a member of. 
Partners do not have to be members of any community, but partners must be a 
community member for trading to occur.
 5.  Click Finish.
The partners are imported. The new partners are added to the list of available partners on the 
Partners page.

After you import a partner profile


If you are expecting an imported profile to include the partner’s certificate and public key, check 
whether a partner’s certificate is trusted:

 1.  Go to the partner summary page and click Certificates in the navigation graphic at the top of 
the page. 
 2.  Click the certificate name and then click the Trusts tab. 

B2Bi  2.1 Operations Guide  364


19  Backup and restore

 3.  Check the details of third-party certificates imported with profiles to make sure trusted roots are 
present.

After importing a partner profile, go to the partner summary page for the imported partner and 
check whether any tasks are required to complete the profile configuration.

365  Operations Guide B2Bi  2.1


Back up selected objects

Back up selected objects


B2Bi users with appropriate rights can export and import selected objects from the UI. This is useful 
if you want to create backups of individual objects or backups of collections of the same type of 
object. It is also a useful tool for moving selected objects between B2Bi environments of the same 
version.

The following objects can be exported and imported either individually or a as a collection of similar 
objects:

 l Components
 l Services
 l Inbound agreements
 l Document agreements
 l Outbound agreements

Required permissions
The user must have a role that includes the permission to manage the object type that he or she 
wants to back up.

General procedure
To export an object or a collection of objects of the same type to a backup file:

 1.  Go to the management page for the object type.
 2.  From the list of objects, select one or more objects to export.
 3.  From the action selection box located below the list of objects, select Export.
 4.  Click Selected.
 5.  B2Bi creates a compressed file of the object or objects in the default download location that is 
defined for your browser.
The export package name has the format <object_type>-export.zip.

Example procedure: Export selected services


The following example illustrates how to export a collection of two service objects:

B2Bi  2.1 Operations Guide  366


19  Backup and restore

 1.  Go to Processing configuration > Manage Services to open the "Manage Services" page.


 2.  From the list of services, click the selection boxes next to the names of two of the services in the 
list to select them.
 3.  From the action selection box, located below the list of objects, select Export.
 4.  Click Selected and then click OK to confirm the creation of the export file.
B2Bi creates the compressed file service-export.zip at the location (Windows example) 
C:\Users\<current-user>\AppData\Local\Temp\.

After you create the export file


You can preserve the export file as a backup of the selected object or objects. 

You can use the export file to move the selected objects from one environment to another, provided 
that they are running the same version of B2Bi.

See Import / restore selected objects on page 368.

367  Operations Guide B2Bi  2.1


Import / restore selected objects

Import / restore selected objects


If you have created backup files of selected B2Bi objects, users with appropriate rights can import 
these objects into a B2Bi environment of the same version as the export environment. 

To view the backup (export) procedure, see Back up selected objects on page 366.

The following objects can be imported either individually or a as a collection of similar objects:

 l Components
 l Services
 l Inbound Agreements
 l Document Agreements
 l Outbound Agreements

Required permissions
The user must have a role that includes the permission to manage the object type that he or she 
wants to import.

General procedure
The behavior of B2Bi when importing selected objects varies depending on the object that is being 
handled. The following is a generic procedure that describes basic steps for importing all selected 
objects backups. For details of importing specific object types, see Special conditions and 
exceptions on page 369.

To import objects:

 1.  Go to the management page for the object type you want to import.
 2.  From the Related tasks list at the bottom of the page, select Add a <object_type> to open 
the add wizard.
 3.  In the "Choose the source" page of the wizard, select the option Import one or more [object
type], and click Next.

B2Bi  2.1 Operations Guide  368


19  Backup and restore

 4.  In the Enter import file path page:
 l Click Browse, and use the browse tool to locate and select the export file that contains 
the objects you want to import. Click Open to select the file for import.
 l Choose the import mode - Select the action for B2Bi if the import encounters any 
existing objects with the same names as objects in the import file:
 o Replace the objects.
 o Ignore conflicting objects and do not import them.
 5.  Click Next.
 6.  Review the import summary and click Close.

Example procedure: Import selected services


The following example illustrates how to import a previously-exported collection of two service 
objects:

 1.  Go to Processing configuration > Manage Services to open the "Mange Services" page.


 2.  From the "Related tasks" list at the bottom of the page, select Add a service to open the "Add 
a service" wizard.
 3.  In the "Choose the source" page of the wizard, select the option Import one or more
services, and click Next.
 4.  In the "Enter import file path" page:

 l Click Browse, and use the browse tool to locate and select the export file that contains 
the service-export.zip file you want to import. Click Open to select the file for 
import.
 l Choose the import mode – Select the action for B2Bi if the import encounters any 
existing services with the same names as services in the import file:
 o Replace the objects.
 o Ignore conflicting objects and do not import them.
 5.  Click Next.
 6.  Review the import summary and click Close.
B2Bi executes the import and updates the list of services with the newly imported services.
B2Bi writes the results to the log4j file, located in <trading_engine_install_
directory>\logs.

Special conditions and exceptions


Each B2Bi object has its own data structure and parent/child dependencies. This section provides 
special considerations for each object type.

369  Operations Guide B2Bi  2.1


Import / restore selected objects

Components

About Components
The role of a B2Bi Component object is to provide specific processing for a B2Bi Service. There are 
many types of Components in B2Bi.

A Component has two types of dependent child objects:

 l Connection
 l Resource

Special considerations
Child dependencies:

When you execute a selective import of a Component, the child dependency of the Connection and 
of the Resource must be re-established in the new environment, otherwise the import will result in 
an “incomplete” component definition. This means if the Connection and the Resource do not 
already exist in the target import system, the Component will be displayed in the UI as incomplete, 
and will not be valid for use in a Service.

You must check that all child connections and resources that existed in the originating 
configuration (from which you exported) also exist in the target system (to which you import).

Impact of Component import on Services:

Components are used in Services and Services can be used in multiple Agreements.  When you 
replace or update an existing Component by importing and overwriting an existing Component 
definition, there can be an impact on the flow logic.  For example, if the original component 
produced 1 output and the new component produces 2 outputs, the Service is modified, resulting 
in a non-reversible impact on the definition of the Service that uses the component, and on any 
objects that use the Service.

During the import process, you select a import mode that controls the impact of these potential 
object changes:

 l Replace – (Default) Replace every current object definition with the imported definition.
 l Ignore – Ignore any existing objects (of the same type) with the same name during the import.

Attempts to import Components with errors:

If any Component in the export/import file is modified so that it contains invalid data, the import 
fails and the failure is displayed in the import result summary page of the import wizard.

B2Bi  2.1 Operations Guide  370


19  Backup and restore

Services

About Services
The role of a B2Bi Service object is to specify the processing sequence for a message exchanged 
between two or more exchange participants. 

A Service has the following dependent child objects and parameters:

 l Service Attributes
 l Application Delivery
 l Component

Special considerations
Service dependencies:

When you execute a selective import of a Service, the Service Attributes and Component parameters 
(defined in the Service object) are maintained. However the child dependency of the Application 
Delivery and the Component (with Resource and Connection) must be re-established in the new 
environment, otherwise the import will result in an “incomplete” Service definition. This means if the 
Application Delivery and Component (with Connection and the Resource) do not already exist in the 
target import system, the Service will be displayed in the UI as incomplete, and will not be valid for 
use in message handling.

You must check that all child Application Deliveries and Components that existed in the originating 
configuration (from which you exported) also exist in the target system (to which you import).

Impact of importing modified Services:

Services can be used in multiple Agreements and in Metadata Profiles.  When you replace or update 
an existing Service by importing, there can be an impact on the flow logic.  

Example 1:

The Service output in the target environment (before import) has a different delivery option 
than the updated Service (e.g. deliver to partner vs. deliver to application). This 
modification will have a non-reversible impact on the objects using this Service (Agreement / 
Metadata Profile).

Example 2: 

The Service output in the target environment (before import) uses a Component that 
produces 1 output and the updated Service uses a Component with the same name 
producing 2 outputs. This will have a non-reversible impact on flow logic.

Example 3: 

371  Operations Guide B2Bi  2.1


Import / restore selected objects

The Service in the imported file introduces a required attribute value to an existing Attributes 
Template. This generates an updated Attributes Template in the target environment. Any 
existing Services that use that Template will be incomplete because they lack the required 
value.

During the import process, you select a import mode that controls the impact of these potential 
object changes:

 l Replace – (Default) Replace every current object definition with the imported definition.
 l Ignore – Ignore any existing objects (of the same type) with the same name during the import.

Attempts to import Services with errors:

The following are conditions in which Service import may fail:

 l Wrong import file type.
 l Invalid object version.
 l Wrong object data in import file.
 l A referenced Service is not available in the target system of the import.
 l A referenced Application Delivery is not available in the target system of the import.

Warnings on Service import:

If any Service in the export/import file contains an attribute that does not exist on the target system, 
the attribute is created and a warning is displayed on the summary page of the import wizard.

Inbound Agreements

About Inbound Agreements


The role of a B2Bi inbound Agreement object is to specify how B2Bi processes the information that it 
consumes from a remote trading partner.

An inbound Agreement has the following dependent objects and parameters:

 l Functional Group Agreements
 l Document Agreements
 l Outbound Agreements
 l Document Services
 l Object references:
 o Agreement Attributes
 o Messaging IDs of participants (partners or communities)
 o Community 
 o Routing ID 

B2Bi  2.1 Operations Guide  372


19  Backup and restore

Special considerations
Agreement import order:

Inbound Agreements, outbound Agreements and Document Agreements work together in B2Bi 
message flows to provide such services as acknowledgements and receipts. To correctly maintain 
relationships, export/import these objects in the following order:

 1.  Outbound Agreements
 2.  Inbound Agreements
 3.  Document Agreements

Inbound Agreement dependencies:

When you execute a selective import of an inbound Agreement, the Agreement Attribute and 
Functional Group Agreement relationships are maintained. However the links to Outbound 
Agreements (for acknowledgements), Services (for acknowledgements) and Document Agreements 
must be re-established in the new environment, otherwise the import will result in an “incomplete” 
Agreement definition. This means that if the linked outbound Agreement, Service or Document 
Agreement do not already exist in the target import system, the Agreement will be displayed in the 
UI as incomplete, and will not be valid for use in message processing.

You must check that all linked outbound Agreements, Services and Document Agreements that 
existed in the originating configuration (from which you exported) also exist in the target system (to 
which you import).

Impact of ignore/replace selection:

During the import process, you select a import mode that controls the impact of these potential 
object changes:

 l Replace – (Default) Replace each agreement with the same name with the imported definition. If 
an agreement on the target import system contains child Functional Group Agreements (FGAs), 
delete all existing FGAs and add the FGAs contained in the file.
 l Ignore – Ignore any existing objects (of the same type) with the same name during the import.

Attempts to import inbound Agreements with errors:

The following are conditions in which inbound Agreement import may fail:

 l Wrong import file type.
 l Invalid object version.
 l Wrong object data in import file.
 l Referenced Partner or Community Messaging ID not found. If an inbound Agreement references 
a Messaging ID that does not exist on the target import system, the import of the agreement will 
fail.
 l Referenced Community not found: If the dependency on the referenced  Community is not 
fulfilled, the import will fail.

373  Operations Guide B2Bi  2.1


Import / restore selected objects

 l Referenced Routing ID not found: If the dependency on the referenced Routing ID is not 
fulfilled, the import will fail.
 l Reference outbound Agreement not found: If the dependency on the referenced Outbound 
Agreement is not fulfilled, the import will result in an incomplete inbound Agreement.
 l Referenced Document Agreement not found: If the dependency on the referenced Document 
Service (acknowledgment-related) is not fulfilled, the import will result in an incomplete 
inbound Agreement. 

Warnings on Agreement import:

If any Agreement in the export/import file contains an attribute that does not exist on the target 
system, the attribute is created and a warning is displayed on the summary page of the import 
wizard.

Document Agreements

About Document Agreements


The role of a B2Bi Document Agreement object is to specify how a document type (within a 
messaging standard and standard version) is to be handled in an inbound agreement between 
exchange partners. 

A Document Agreement has the following dependent objects and parameters:

 l Document Agreement Attributes
 l Inbound Agreement
 l Outbound Agreement
 l Service

Special considerations
Agreement import order:

Document Agreements work together with inbound Agreements and outbound Agreements to 
provide such services as acknowledgements and receipts. To correctly maintain relationships, 
export/import these objects in the following order:

 1.  Outbound Agreements
 2.  Inbound Agreements
 3.  Document Agreements

Document Agreement dependencies:

When you execute a selective import of a Document Agreement, the Document Agreement Attribute 
relationships are maintained. However the links to inbound Agreements, outbound Agreements (for 
acknowledgements), and Services must be re-established in the new environment. If the linked 

B2Bi  2.1 Operations Guide  374


19  Backup and restore

inbound Agreement, outbound Agreement or Service does not already exist in the target import 
system, the Document Agreement is displayed in the UI as "incomplete", and will not be valid for use 
in message processing.

You must check that all linked inbound Agreements, outbound Agreements and Services that 
existed in the originating configuration (from which you exported) also exist in the target system (to 
which you import).

Impact of ignore/replace selection:

During the import process, you select a import mode that controls the impact of these potential 
object changes:

 l Replace – (Default) Replace every current Document Agreement definition with its new 
definition.
 l Ignore – Ignore any existing objects (of the same type) with the same name during the import.

Attempts to import Document Agreements with errors:

The following are conditions in which inbound Agreement import may fail:

 l Wrong import file type.
 l Invalid object version.
 l Wrong object data in import file.
 l Referenced outbound Agreement not found: If the dependency on the referenced Outbound 
Agreement is not fulfilled, the import will result in an incomplete Document Agreement.

 l Referenced Service not found: If the dependency on the referenced Service is not fulfilled, the 
import will result in an incomplete Document Agreement.

Warnings on Document Agreement import:

If any Document Agreement in the export/import file contains an attribute that does not exist on the 
target system, the attribute is created and a warning is displayed on the summary page of the import 
wizard.

Outbound Agreements

About outbound Agreements


The role of a B2Bi outbound Agreement object is to specify how B2Bi processes the information in 
order to send it to a remote trading partner. 

An outbound Agreement has the following dependent objects and parameters:

 l Agreement Attributes
 l Functional Group Agreements

375  Operations Guide B2Bi  2.1


Import / restore selected objects

Special considerations
Agreement import order:

Outbound Agreements, inbound Agreements and Document Agreements may work together in B2Bi 
message flows to provide such services as acknowledgements and receipts. To correctly maintain 
relationships, export/import these objects in the following order:

 1.  Outbound Agreements
 2.  Inbound Agreements
 3.  Document Agreements

Outbound Agreement dependencies:

When you execute a selective import of an outbound Agreement, the Agreement Attribute and 
Functional Group Agreement relationships are maintained and included in the import.

Impact of ignore/replace selection:

During the import process, you select a import mode that controls the impact of these potential 
object changes:

 l Replace – (Default) Replace each agreement with the same name with the imported definition. If 
an agreement on the target import system contains child Functional Group Agreements (FGAs), 
delete all existing FGAs and add the FGAs contained in the file.
 l Ignore – Ignore any existing objects (of the same type) with the same name during the import.

Attempts to import outbound Agreements with errors:

The following are conditions in which outbound Agreement import may fail:

 l Wrong import file type.
 l Invalid object version.
 l Wrong object data in import file.
 l Referenced Partner or Community Messaging ID not found. If an outbound Agreement 
references a Messaging ID that does not exist on the target import system, the import of the 
Agreement will fail.
 l Referenced Community not found: If the dependency on the referenced  Community is not 
fulfilled, the import will fail.

Warnings on Agreement import:

If any outbound Agreement in the export/import file contains an attribute that does not exist on the 
target system, the attribute is created and a warning is displayed on the summary page of the import 
wizard.

B2Bi  2.1 Operations Guide  376


19  Backup and restore

Back up and restore a custom configuration


If your implementation includes custom configuration, you can use the 
externalConfigBackupRestore.cmd tool to back up and restore these customizations. The tool 
and the customizable externalConfigBackupRestore.xml file are located in the following 
directory:

 <trading_engine_install_directory>\tools

The following table shows the types of customizations this tool can back up and restore, and where 
they are typically located.

Note This tool is not limited to these directories and customization types.

Custom component Location

Property files and XML files <B2Bi_Install_Dir>\Interchange\conf

Inline processor (from one of the nodes) <B2Bi_Install_Dir>\Interchange\site\jars

Message Builder component (MBC) %B2BI_SHARED%\local\4edi\component

JTF %B2BI_SHARED%\local\BOM

TF-XSLT %B2BI_SHARED%\local\BOM

Procedure:
 1.  Customize the externalConfigBackupRestore.xml file to include the appropriate paths to 
the custom components.
 2.  Run the externalConfigBackupRestore.cmd tool. 
The tool provides information on the available commands.

Automatic profile importing


The trading engine automatically imports community or partner profiles written to a certain system 
directory. These must be profiles that have been exported from B2Bi, or from Interchange or 
Activator.

Profiles written to <trading engine install directory>\profiles\autoImport are 


imported by the trading engine when the server is running. Once imported, the system moves the 
profiles files from  profiles\autoImport to the appropriate profiles\backup subdirectory, either 
community or partner. The system makes all imported partner profiles members of all communities. 
The system creates pickups and deliveries for an imported community.

377  Operations Guide B2Bi  2.1


Automatic profile importing

If the trading engine is unable to import a profile file in the autoImport directory, the system 
moves the file to \profiles\autoImport\rejected.

Note If you have exported a community and its partners to a backup file (see Back up a 
community and its partners on page 358 ), do not use the autoImport directory to import 
the file. The trading engine rejects the file. 

The system also has some profile staging directories, as shown in the following illustration. The 
system does not write to these directories, except during installation when a user is upgrading from 
a previous version. The directories are a place to hold profile files before a user moves them to the 
autoImport directory. The software installer, for instance, writes profile files to the staged 
directories if the user during installation chooses to have profiles exported from an earlier version of 
the trading engine.

\profiles \autoImport \rejected

  \backup \community\partner

  \staged \community\partner

The trading engine cannot import a password-protected profile through the autoImport directory. 
The password protects the certificate private key. Make sure to securely handle a company profile 
exported without a password.

Events for profile imports and rejects are written to control node events log(hostname_cn_
events.log)in the logs directory. The events are:

 l Administration.Configuration.Party.CommunityImported
 l Administration.Configuration.Party.PartnerImported
 l Administration.Configuration.Party.ImportFailedSecret1

B2Bi  2.1 Operations Guide  378


19  Backup and restore

Uniqueness in B2Bi
In order to process message flows in a coherent and predictable manner, B2Bi enforces the 
uniqueness of processing configurations at two levels:

 l Unique object names
 l Unique exchange context

Unique object names


In order to configure B2Bi, you create objects and assign values to attributes of these objects.

As a general rule, each object that you create in the B2Bi interface must have a unique name. 

Object creation: If you try to create an object with a name that already exists, B2Bi displays a 
message informing you of the naming conflict and instructing you to enter a unique name.

Object importing: If you import an object or set of objects with a name that is already used in a 
configuration, the importer executes one of the following actions to insure uniqueness:

 l ignore - ignores the imported object and conserves the existing object
 l replace - replaces the existing object with the imported version of the object

 l update - modifies the existing object by adding, deleting or revaluing attributes from the 
imported object

Upgrades: If you upgrade from a previous version, the upgrade logic never deletes previous data. 
When the upgrade logic detects or must generate a potentially duplicated object, it automatically 
renames the duplicates with unique names. In some cases it may also have to disable the renamed 
object to conserve the functional uniqueness of the configuration.

Unique exchange context (agreements)


In addition to unique object naming, the configuration of a message processing flow in B2Bi 
requires a unique context. That is, a flow must be defined as the exchange of a specific document 
format (standard/version/message type), between a specified set of endpoint participants, and in a 
specific direction (from one set of participants to another). The context of a message exchange is 
uniquely specified in an agreement object. 

There can be no ambiguity in the handling of a message flow. When B2Bi consumes a specific 
document format from a specific sender, it must execute a unique set of processing. When B2Bi 
envelops and addresses a message to send to a partner, it must correctly conform to the receiving 
partner's handling criteria.

379  Operations Guide B2Bi  2.1


Uniqueness in B2Bi

Inbound agreement uniqueness


Only one inbound agreement (or matching child document agreement) can be enabled at a time for 
the same context.

Inbound agreement uniqueness is determined by:

 l The message format (X12, EDIFACT, ...)
 l Sender messaging ID
 l Receiver messaging ID
 l For X12 and EDIFACT formats, grouping agreement selection
 l For VDA formats, the customer/supplier orientation is also applied to the agreement sender and 
receiver IDs
 l Unique document agreement (and embedded service) to apply for transformation and 
processing

When B2Bi consumes a message, it selects an agreement to use from a list of applicable and enabled 
agreements. B2Bi makes this selection by using the following priority:

 1.  Explicit – A specified messaging ID that matches that of the sending or receiving participant 
(partner or community)
 2.  Implicit – Matching any of the enabled messaging IDs of a sending or receiving partner or 
community

 3.  Semi-anonymous – Matching any defined messaging ID for any sending or any receiving 
partner or community
 4.  Full anonymous – Matching any defined messaging ID for any sending and  any receiving 
partner or community

Only one inbound agreement at each of these priority levels can be enabled at the same time, so 
there is only one enabled inbound document agreement context for B2Bi to be select and apply. 

In cases where there is more than one matching agreement at a level, during message processing 
B2Bi selects the most explicit matching agreement  and logs a warning indicating the names of other 
similar agreements that exist.

Outbound agreement uniqueness


Only one outbound agreement can be enabled at a time for the same context.

Outbound agreement uniqueness is determined by:

 l The message format (X12, EDIFACT, ...)
 l Sender messaging ID
 l Receiver messaging ID
 l For X12 and EDIFACT formats, grouping agreement selection

B2Bi  2.1 Operations Guide  380


19  Backup and restore

 l For VDA formats, the customer/supplier orientation is also applied to the agreement sender and 
receiver IDs
 l Enveloping context (which is specified on the outbound agreement/enveloping tab)

There must be only one unique pattern of values to select from for the sender/receiver/enveloping 
context.

Outbound agreement selection can be either manual (defined by the user to apply to one or more 
inbound processing contexts) or automatic (selected when the user chooses the "Use Best 
Outbound Agreement" mode). Note that in both cases the selected or resolved outbound agreement 
is in the output format of the processed message.

In cases where B2Bi automatically selects the best outbound agreement to be used for enveloping 
(similar to the inbound agreements selection), it makes the selection from a list of applicable and 
enabled outbound agreements, by level of priority:

 1.  Explicit – B2Bi matches the specified “default” (or other) messaging ID with that of a sending 
and receiving partner or community
 2.  Implicit – B2Bi matches the current “default” messaging ID of a sending or receiving partner or 
community
 3.  Semi-anonymous – B2Bi resolves to the current default messaging ID for any sending or any 
receiving partner or community
 4.  Full anonymous– B2Bi resolves to the current default messaging IDs for any sending and  any 
receiving partner or community

Only one unique outbound agreement at each of these priority levels can be enabled at the same 
time, so there is only one enabled outbound  c ontext to be selected. 

In cases where there is more than one matching agreement at a level, B2Bi displays a warning and 
indicates the names of other similar agreements that exist. 

When an exchange is configure in "Use Best Outbound Agreement" mode, B2Bi logs a warning 
indicating the other similar agreements that could have been selected.

Agreement handling for imports and system upgrades


The B2Bi import or upgrade logic disables all but one agreement if more than one agreement 
specifies the same exchange context.

On upgrades, B2Bi analyzes duplicate inbound  c ontexts and keeps one context active while 
duplicating others. Any document agreements (generated from B2Bi 1.5 document profiles) that are 
found on the duplicate and disabled inbound agreement contexts are moved to the enabled 
inbound agreement, so that processing is preserved in the active agreement.

381  Operations Guide B2Bi  2.1


Message Feed Protocol
20  
Message Feed Protocol (MFP) is an Axway proprietary protocol that you can use to submit files 
directly into the B2Bi integration engine. The protocol also enables you to view a status report after 
files are submitted.

Most B2Bi exchanges with the integration engine are communications-based and depend on transfer 
adapters. MFP provides an application-based interaction with the integration engine, enabling direct 
access to the inbuilt integrations inside B2Bi. This means that you do not have to define a pickup in 
order to have your messages processed by B2Bi.

A native MFP server is built into B2Bi. The default B2Bi MFP server listening port is 8877. This port is 
registered in the integration engine /etc/services file as:

Integratorb2bimfpserver 8877/tcp # B2Bi MFP Server Port

Communication methods
There are two principal methods for using Message Feed:

 l Command line – See MFP command line tool on page 386.
 l API – Use the APIs provided and access the Message Feed Server from utility programs. The API 
is provided for C, Java and the Axway-proprietary Message Builder Language. See:
 o Message Feeder C-language access on page 389
 o Message Feed Message Builder access on page 404
 o Message Feed Java access on page 417

B2Bi  2.1 Operations Guide  382


20  Message Feed Protocol

Message Feed server architecture


The following figure illustrates the Message Feed server architecture.

The general order of processing events is the following:

 1.  A Message Feed client, located on an application, sends a message to the Message Feed server 
in the B2Bi integration engine using the Message Feed API. The message is addressed with a 
qualified name of the integration and activity that should process the message.
 2.  The Message Feed server translates the qualified activity name to an internal activity ID, and 
sends the message to the activity using an integration engine queue. If the qualified activity is 
not located, a negative result status is sent back to the application Message Feed client through 
the Message Feed API.
 3.  The Message Feed server waits for the message to be processed in the integration engine 
activity.
 4.  When message processing is complete a result status is sent back to the Message Feed client. 
The result status can be one of the following:
 l OK – The message was processed without being stopped, 
 l Partial error – Some of the messages created in the activity are stopped.
 l Error – All of the messages being created in the activity are stopped.
 5.  The Message Feed server logs the submitted message and the reply status in the message log.

Both the Message Feed server and the Message Feed client can handle multiple concurrent  requests. 

383  Operations Guide B2Bi  2.1


Install Message Feed Server

Install Message Feed Server


To use Message Feed, you must select the Message Feed Connector option during B2Bi integration 
engine installation.

Alternatively, any time after the original installation, you can add the Message Feed connector by 
running the B2Bi installation program in configure mode and selecting the Message Feed Connector 
option for the integration engine.

For details about B2Bi installation procedures, refer to the B2Bi Installation Guide.

About the Message Feed API


When the Message Feed client is running on a different machine than the Message Feed server, it 
uses the Message Feed API to transfer message data over a socket  c onnection. The Message Feed API 
is socket based and connection oriented. If the Message Feed client disconnects, replies are lost. It is 
not possible to get replies in a new connection.

MFP activities and scaling


On the integration engine, "integrations" are specific sequences of processing steps for handling 
messages. 

An integration comprises one or more "activities". Each activity in an iteration defines some step in 
how the message is transmitted and processed.

When an activity is started using Message Feed, the number of instances of the activity being started 
is determined by the configuration of the integration engine that HME is running in multiple 
processing engines. For this reason only static scaling of activities is possible. The default number of 
processing engines for the HME used by the default inbound MFP activity (A02 MFP Inbound) is 2. 
The maximum number of concurrent client sessions to the MFP server is set by default to 10.

B2Bi  2.1 Operations Guide  384


20  Message Feed Protocol

Track Message Feed in Message Log


In the B2Bi Message Log tool you can create dedicated searches for retrieving lists of log entries that 
record the messages submitted via the MFP.

 1.  Open Message Log: Go to Start > All programs > Axway Software > Axway B2Bi >
B2Bi Tools > B2Bi Tools Client, log on to the tool box and click the Message Log icon.
 2.  Right-click anywhere in the Message Log Favorite Searches pane, and from the context 
menu, select New.
 3.  In the New Search window, click Message Feed.
 4.  Click Select.
 5.  In the General tab, choose filtering criteria for the message selection:
 l User
 l Message ID
 6.  Click Save As....
 7.  Click Close.

You can now select this search in the Message Log main window to display MFP-related messages.

Message Feed Client


A Message Feed Client is a tool for submitting a message to an integration flow that resides on a B2Bi 
integration. B2Bi offers four basic varieties of Message Feed Clients:

 l Command line – See MFP command line tool on page 386.
 l Utility programs using Axway Message Feed APIs:
 o C language – See Message Feeder C-language access on page 389.
 o Message Builder – Message Feed Message Builder access on page 404
 o Java – Message Feed Java access on page 417

385  Operations Guide B2Bi  2.1


MFP command line tool

MFP command line tool


This chapter describes how to access the Message Feed server from the command line. 

To submit messages, use the Message Feed client program, mfp, located in the $CORE_ROOT/bin 
directory. You can run this program either directly from the command line or from a shell script or 
batch file.

Start syntax for the Message Feed Client


program

UNIX
For UNIX / Linux systems, the formal syntax for the Message Feed client program is:

mfp [-?V] [-h host] -s service -u user [-p password-file | -P password] -i


integration -a activity [-m message-id] [-A attributes-file] -M message-
file [-t timeout]

Windows
For Windows systems, the formal syntax for the Message Feed client program is:

mfp [/?] [/V] [/h host] /s service /u user [/p password-file | /P password]
/i integration /a activity [/m message-id] [/A attributes-file] /M message-
file [/t timeout]

Note: Tthe UNIX  syntax is also accepted in Windows

Command arguments
Argument Description

? Show command syntax and exit.

V Show program revision and exit.

h TCP/IP host on which the Message Feed server is running. This is an optional 
argument, the default value is localhost.

B2Bi  2.1 Operations Guide  386


20  Message Feed Protocol

Argument Description

s TCP/IP service used to connect to Message Feed server. This must be the same 
TCP/IP service as that defined for the Message Feed Server task.

u User identification. The user must have defined in the Message Feed Manager.

p File containing the password for the user. This option could be used instead of the 
P option.

P Password for the user. This option could be used instead of the p option.

i The integration in which the activity is defined. This is a qualified name containing 
any folders and integration name separated by the slash (/) character. The 
sequence \\ is used to specify a single \ character in a folder or integration name. 
The sequence \/ is used to specify a single / character in the folder or integration 
name. 

In B2Bi 1.x: Use “B2Bi Express 1”
In B2Bi 2.x: Use “B2Bi 1”

a The activity to in which the submitted message will be processed.
 
In B2Bi: Use “A02 MFP Inbound”

m User defined message identifier which will be logged for the submitted message in 
the Message Log. This is an optional argument.

A Path to a file that contains the attributes to set for the message being submitted. 
The file should contain one attribute on each line. Each attribute line has an 
attribute name followed by a = character, followed by the attribute value. The file 
can contain remark lines beginning with a # character. This is an optional 
argument.

M Path to the file that contains the data contents of the message being submitted.

t Timeout (in seconds) for the submitted message to be processed. This is an 
optional argument and the default timeout is 60 seconds.

Output from Message Feed client


After you submit the message, the Message Feed client program writes two lines of output to the 
standard output. The first line contains the word LoggerId followed by a tab and the logger
identity assigned by the integration engine.

The second line contains the word Status followed by a tab and one of the following


status codes:

387  Operations Guide B2Bi  2.1


MFP command line tool

Code Description

OK The submitted message was processed OK.
 

Partial The submitted message was processed with some errors – One or several of the 
error messages created from the submitted message was stopped.

Error The submitted message was processed with error – All messages created from the 
submitted message were stopped.

Timeout The submitted message was not processed within the timeout specified by the t 
argument.

Example of Message Feed from the


command line
The following example submits the file message.dat to the B2Bi integration A02 MFP Inbound. 
The Message Feed server is located on remote host, host1, listening on port 8877. The Message 
Feed clients authenticate themselves to the Message Feed server using the username "admin" and 
password "secret".

mfp –h host1 –s 8877 –u admin –p secret –i “B2Bi 1” –a “A02 MFP Inbound” –M


/usr/business_system/message.dat

B2Bi  2.1 Operations Guide  388


20  Message Feed Protocol

Message Feeder C-language access


This chapter describes how to access the Message Feed server using the C language. The access to 
the Message Feed server is socket based. 

The API is designed for use in both synchronous and asynchronous modes. 

The include file mfp.h is located in the directory $CORE_ROOT/c/include. The library file mfp.o 
or mfp.obj is located in the directory $CORE_ROOT/c/lib.

The following topics describe the C-language MFP functions:

mfp_Authenticate on page 390

mfp_Connect on page 392

mfp_Disconnect on page 393

mfp_FreeReply on page 393

mfp_GetLastError on page 394

mfp_GetReply on page 395

mfp_GetSocket on page 399

mfp_Revision on page 399

mfp_StatusToString  on page 400

mfp_SubmitMessage on page 401

389  Operations Guide B2Bi  2.1


Message Feeder C-language access

mfp_Authenticate

Description
Authenticates to the Message Feed server. Each client submitting messages to the Message Feed 
server must authenticate itself with a name and a password.

Syntax
int mfp_Authenticate(h_mfp hMFP, int RequestId, char const* pUser, char
const* pPassword);

Parameters
 l hMFP – The handle to the Message Feed connection.
 l RequestId – Identifies this request. It is returned in the reply received by the mfp_GetReply 
function in order to correlate a reply with its request.
 l pUser – User name for the Message Feed client.
 l pPassword – Password for the specified user. The function returns 0 if the request was 
successfully sent to the Message Feed server, or -1 in case of error. Use the mfp_GetLastError 
function to get a textual description of the error.

Example
...
if(mfp_Authenticate(hMFP, 0, "user", "passwd") < 0)
{

printf("failed to authenticate to Message Feed server: %s\n",


mfp_GetLastError());
exit(1);
}
pReply = mfp_GetReply(hMFP, 60);
if(pReply == NULL) {
printf("failed to get authentication reply:
%s\n",
mfp_GetLastError());
exit(1);

B2Bi  2.1 Operations Guide  390


20  Message Feed Protocol

}
if(pReply->Status != MFP_REPLYSTATUS_OK) {
printf("failed to authenticate: %s\n", mfp_StatusToString(pReply-
>Status));
exit(1);
}
mfp_FreeReply(pReply);
...

Related commands
mfp_GetReply on page 395

 mfp_GetLastError on page 394

391  Operations Guide B2Bi  2.1


Message Feeder C-language access

mfp_Connect

Description
The mfp_Connect function establishes a connection to the Message Feed server.

The function returns an opaque handle for the connection. This handle must be freed using the 
mfp_Disconnect function. If an error occurs, the function returns a NULL value.

Syntax
h_mfp mfp_Connect(char const* pHost, char const* pService, int Timeout);

Parameters
 l pHost – Name of the TCP/IP host where the Message Feed server is located.
 l pService – Name of the TCP/IP service which the Message Feed server listens to. 
 l Timeout – Timeout, in seconds, being used for socket access to the Message Feed server. 
 l Use the mfp_GetLastError function to get a textual description of the error.

Example
#include "mfp.h";
...
h_mfp hMFP;
hMFP = mfp_Connect("localhost", "12345", 60);
if(hMFP == NULL) {
printf("failed to connect to Message Feed server: %s\n",
mfp_GetLastError());
exit(1);

}
...
if(mfp_Disconnect(hMFP) != 0) {
printf("failed to disconnect from Message Feed server: %s\n",
mfp_GetLastError());
exit(1);
}
...

B2Bi  2.1 Operations Guide  392


20  Message Feed Protocol

Related commands
mfp_Disconnect on page 393

mfp_GetLastError on page 394

mfp_Disconnect

Description
The mfp_Disconnect function disconnects from the Message Feed server.

The function returns 0 if the disconnect was successful, or –1 in case of an error.

Use the mfp_GetLastError function to get a textual description of the error.

Syntax
int mfp_Disconnect(h_mfp hMFP);

Parameters
hMFP – The handle to the Message Feed connection to disconnect. 

Example
See mfp_Connect on page 392.

Related commands
mfp_Connect on page 392

mfp_GetLastError on page 394

mfp_FreeReply

Description
Frees a reply received by the mfp_GetReply function. 

393  Operations Guide B2Bi  2.1


Message Feeder C-language access

Syntax
void mfp_FreeReply(t_mfpreply* pReply);

Parameters
pReply – The reply to free.

Example
See mfp_GetReply on page 395.

mfp_GetLastError

Description
Gets a textual description of the last error occurring in the MFP library. 

The function returns a string describing the last error.

Syntax
char const* mfp_GetLastError();

Example
See mfp_Connect on page 392.

B2Bi  2.1 Operations Guide  394


20  Message Feed Protocol

mfp_GetReply

Description
Gets the reply to a request to the Message Feed server.

The mfp_GetReply function is blocking. To avoid blocking the program while waiting for the 
reply, use the mfp_GetSocket function to obtain a socket that can be used in the C select function 
to wait for the socket to be ready for read or write access.  To avoid memory leaks, use the  mfp_
FreeReply function to free the reply structure.

Syntax
t_mfpreply* mfp_GetReply(h_mfp hMFP, int Timeout);

Parameters
 l hMFP – Handle to the Message Feed connection.
 l Timeout – Timeout, in seconds, to wait for the reply. This timeout is not the same timeout as 
the socket access timeout which is defined in the mfp_Connect function.

 l The function returns a pointer to a structure of type t_mfpreply as defined below. This 
structure must be freed using the mfp_FreeReply function. A NULL value is returned in case of 
an error.
 l Use the mfp_GetLastError function to get a textual description of the error:

typedef struct {
int RequestType;
int RequestId;
int Status;
t_mfpreply_submitmsg SubmitMessage;
} t_mfpreply;

The RequestType field in the t_mfpreply structure is one of the following:
 o  o MFP_REQUESTTYPE_AUTHENTICATE – if it is a reply to a mfp_Authenticate 
request
 o MFP_REQUESTTYPE_SUBMITMESSAGE – if it is a reply to a mfp_
SubmitMessage request.
 l The RequestId field in the t_mfpreply structure is the same request id as supplied in the 
mfp_Authenticate or mfp_SubmitMessage function.

395  Operations Guide B2Bi  2.1


Message Feeder C-language access

The Status field in the t_mfpreply structure is the status of the request. You can use the mfp_
StatusToString function to get a textual description of the status. The status can be any of 
the following:
 o  o MFP_REPLYSTATUS_OK – The request was processed successfully.
 o MFP_REPLYSTATUS_AUTHENTICATE_INVALIDDATA – A mfp_Authenticate 
request contained invalid data.
 o MFP_REPLYSTATUS_AUTHENTICATE_AUTHENTICATIONFAIL – The user or 
password in an mfp_Authenticate function was invalid.
 o MFP_REPLYSTATUS_SUBMITMESSAGE_INVALIDDATA – A mfp_
SubmitMessage request contained invalid data.
 o MFP_REPLYSTATUS_SUBMITMESSAGE_NOTAUTHENTICATED – Trying to 
submit a message without having authenticated to the Message Feed server.
 o MFP_REPLYSTATUS_SUBMITMESSAGE_UNKNOWNACTIVITY – The Integration 
or Activity parameters in the mfp_SubmitMessage function refers an activity 
that is not known by the Message Feed server.
 o MFP_REPLYSTATUS_SUBMITMESSAGE_INVALIDFILE – The FilePath parameter 
in the mfp_SubmitMessage function does not refer a valid file.
 o MFP_REPLYSTATUS_SUBMITMESSAGE_UNKNOWNQUEUE – The Integration 
and Activity parameters in the mfp_SubmitMessage function refers an activity 
for which a queue does not exist. This error indicates an inconsistent run-time 
configuration in the system where the Message Feed server runs.

 o MFP_REPLYSTATUS_SUBMITMESSAGE_SERVERERROR – An internal error 
occurred in the Message Feed server.
 o MFP_REPLYSTATUS_SUBMITMESSAGE_TIMEOUT – No reply was received 
from the Message Feed server within the specified timeout.
The SubmitMessage field in the t_mfpreply structure is valid in case the reply is related to a 
mfp_SubmitMessage request. This field is a structure of type t_mfpreply_submitmsg as 
defined below.

typedef struct {
char* pFilePath;
char* pMessageId;
char* pLoggerId;
int Status;
} t_mfpreply_submitmsg;

 l The pFilePath parameter in the t_mfpreply_submitmsg structure is only set in case a reply 
message was requested in the mfp_SubmitMessage function. In this case, this field specifies 
the file path to the reply message.
 l The pMessageId parameter in the t_mfpreply_submitmsg structure specifies the user 
defined message ID of the message being submitted. This is the same as the MessageId 
parameter in the mfp_SubmitMsg function.

B2Bi  2.1 Operations Guide  396


20  Message Feed Protocol

 l The pLoggerId parameter in the t_mfpreply_submitmsg structure specifies the logger ID 
assigned for the submitted message by the Message Feed server. The logger ID uniquely 
identifies a message in the integration engine.
 l The Status parameter in the t_mfpreply_submitmsg structure specifies the processing status 
of the submitted message. The status can be any of the following:
 o MFP_SUBMITMESSAGE_STATUS_OK - The submitted message was processed OK.
 o MFP_SUBMITMESSAGE_STATUS_PARTIALERROR - The submitted message was processed 
with some errors, i.e. one or several of the messages created from the submitted message 
was stopped.
 o MFP_SUBMITMESSAGE_STATUS_ERROR - The submitted message was processed with error, 
i.e. all messages created from the submitted message was stopped.
 o MFP_SUBMITMESSAGE_STATUS_TIMEOUT – The submitted message was not processed 
within the timeout specified in the mfp_SubmitMessage function.

Example
#include "mfp.h"
...
h_mfp hMFP;
t_mfpreply* pReply;
hMFP = mfp_Connect("localhost", "12345", 60);
if(hMFP == NULL) {
printf("failed to connect to Message Feed server: %s\n",
mfp_GetLastError());
exit(1);
}
if(mfp_Authenticate(hMFP, 0, "user", "passwd") < 0) {
printf("failed to authenticate to Message Feed server: %s\n",
mfp_GetLastError());
exit(1);
}
pReply = mfp_GetReply(hMFP, 60);
if(pReply == NULL) {
printf("failed to get authentication reply:
%s\n",
mfp_GetLastError());
exit(1);
}
if(pReply->Status != MFP_REPLYSTATUS_OK) {
printf("failed to authenticate: %s\n", mfp_StatusToString(pReply-
>Status));

397  Operations Guide B2Bi  2.1


Message Feeder C-language access

exit(1);
}
mfp_FreeReply(pReply);
mfp_Disconnect(hMFP);
...

Related commands
mfp_FreeReply on page 393

mfp_Connect on page 392

mfp_GetSocket on page 399

mfp_Authenticate on page 390

mfp_SubmitMessage on page 401

mfp_StatusToString  on page 400

mfp_GetLastError on page 394

B2Bi  2.1 Operations Guide  398


20  Message Feed Protocol

mfp_GetSocket

Description
Gets the socket descriptor for a connection handle. The socket descriptor can be used in the 
standard C-function select to wait for a socket to be ready for read or write access. 

This function is only needed if the program using the Message Feed connection must not block 
while waiting for a reply from the Message Feed server.

Note: Use the socket descriptor only for select function calls.

Syntax
int mfp_GetSocket(h_mfp hMFP);

Parameters
hMFP – The handle to the Message Feed connection. The function returns a socket descriptor, or –1 
in case of an error.

Use the mfp_GetLastError function to get a textual description of the error.

Related commands
mfp_Connect on page 392

mfp_GetLastError on page 394

mfp_Revision

Description
Returns the revision of the MFP library. The revision is returned as a string with a functional version 
number, a major version number and a minor version number, separated by a dot (.) character.

Syntax
char const* mfp_Revision();

399  Operations Guide B2Bi  2.1


Message Feeder C-language access

Example
#include "mfp.h";
...
printf("MFP revision is %s\n", mfp_Revision());
...

Returns the result:

MFP revision is 1.0.0

mfp_StatusToString

Description
Gets a textual description of a status code returned by the mfp_GetReply function.

The function returns a description of the status code defined by the Status parameter.

Syntax
char const* mfp_StatusToString(int Status);

Example
See mfp_GetReply on page 395.

B2Bi  2.1 Operations Guide  400


20  Message Feed Protocol

mfp_SubmitMessage

Description
Submits a message to the Message Feed server. Before submitting a message, the mfp_
Authenticate function must be called to authenticate to the server. A message is submitted to a 
specified activity. The message consists of data and attributes and is optionally identified by a 
message ID.

Syntax
int mfp_SubmitMessage (h_mfp hMFP, int RequestId, char const* pIntegration,
char const* pActivity, char const* pFilePath, t_mfpattribute**
ppAttributes, char const* pMessageId, int Acknowledge, int Timeout);

Parameters
 l hMFP – The handle to the Message Feed connection.
 l RequestId – Identifies this request. It is returned in the reply received by the mfp_GetReply 
function in order to correlate a reply with its request.

 l pIntegration – Specifies in which integration the activity exists. This is a qualified name 
containing any folders and integration name separated by the slash (/) character. The sequence 
\\ is used to specify a single \ character in a folder or integration name. The sequence \/ is used 
to specify a single / character in the folder or integration name.
 l pActivity – Specifies the name of the activity in which the submitted message should be 
processed.
 l pFilePath – The file path to the data part of the message being submitted. The file being 
referred is automatically deleted after it has been submitted.
 l ppAttributes – An array of pointers to attribute structures of type t_mfpattribute as 
defined below. The array must be ended with a NULL pointer. This parameter can be NULL in 
case no attributes are provided.

typedef struct {
char* pName;
char* pValue;
} t_mfpattribute;

 l pMessageId – Identifies the message with a user-defined message identifier. This parameter can 
be NULL in case no message identifier is provided.

401  Operations Guide B2Bi  2.1


Message Feeder C-language access

 l Acknowledge – Specifies the type of acknowledgement being expected for the submitted 
message. It can be any of:
 o MFP_SUBMITMESSAGE_ACKNOWLEDGE_COMMIT – Expect that the submitted message is 
successfully queued and secured in the Message Feed server.
 o MFP_SUBMITMESSAGE_ACKNOWLEDGE_STATUS – Expect a reply status for the submitted 
message. 
 o MFP_SUBMITMESSAGE_ACKNOWLEDGE_STATUSMESSAGE – Expect a reply message for the 
submitted message. This functionality is not available in version 1.0 of Message Feed.
 l Timeout – Specifies the timeout, in seconds, for processing the submitted message in the 
specified activity.

Example
...
t_mfpattribute Attribute;
t_mfpattributes* ppAttributes[2];
char const* pStatusDescription;
Attribute.pName = "MyAttribute";
Attribute.pValue = "somedata";
ppAttributes[0] = &Attribute;
ppAttributes[1] = NULL;
if(mfp_SubmitMessage(hMFP, 0, "MyFolder/MyIntegration", "MyActivity",
"Id123", "msg.dat", ppAttributes, MFP_SUBMITMESSAGE_ACKNOWLEDGE_STATUS,
600) != 0) {
printf("failed to submit message: %s\n", mfp_GetLastError());
exit(1);

}
pReply = mfp_GetReply(hMFP, 60);
if(pReply == NULL) {
printf("failed to get submit message reply:
%s\n",
mfp_GetLastError());
exit(1);
}
if(pReply->Status != MFP_REPLYSTATUS_OK) {
printf("failed to submit message: %s\n", mfp_StatusToString(pReply-
>Status));
exit(1);
}
switch(pReply->SubmitMessage.Status) {

B2Bi  2.1 Operations Guide  402


20  Message Feed Protocol

case MFP_SUBMITMESSAGE_STATUS_OK:
pStatusDescription = "Ok";
break;
case MFP_SUBMITMESSAGE_STATUS_PARTIALERROR:
pStatusDescription = "Partial error";
break;
case MFP_SUBMITMESSAGE_STATUS_ERROR:
pStatusDescription = "Error";
break;

case MFP_SUBMITMESSAGE_STATUS_TIMEOUT:
pStatusDescription = "Timeout";
break;
default:
pStatusDescription = "Unknown";
break;
}
printf("LoggerId\t%s\n", pReply->SubmitMessage.pLoggerId);
printf("Status\t%s\n", pStatusDescription);
mfp_FreeReply(pReply);
...

Related commands
mfp_GetReply on page 395

mfp_GetLastError on page 394

403  Operations Guide B2Bi  2.1


Message Feed Message Builder access

Message Feed Message Builder access


Message Builder is an Axway-proprietary general-purpose programming language.

This chapter describes how to access the Message Feed server using the Message Builder language. 
The access to the Message Feed server is socket based. Tnd the API is designed to be used in both 
synchronous and asynchronous modes. The API is implemented using a MB extension module to 
access the Message Feed server. 

 l The include file mfp.s4h is located in the directory $CORE_ROOT/4edi/include. 
 l The library file mfp.s4m is located in the directory $CORE_ROOT/4edi/lib. 
 l The extender shared library, mfp.so on UNIX / Linux systems or mfp.dll on Windows systems is 
located in the directory $CORE_ROOT/4edi/load.

The following topics describe the Message Builder MFP functions:

MFP.Authenticate on page 405

MFP.Connect on page 407

MFP.Disconnect on page 408

MFP.GetReply on page 409

MFP.GetSocket on page 412

MFP. Revision on page 413

MFP.StatusToString  on page 413

MFP.SubmitMessage on page 414

B2Bi  2.1 Operations Guide  404


20  Message Feed Protocol

MFP.Authenticate

Description
Authenticates to the Message Feed server. Each client submitting messages to the Message Feed 
server must authenticate itself with a name and a password.

Syntax
MFP.Authenticate hMFP [RequestId request-id] User user Password password;

Parameters
 l hMFP – The handle to the Message Feed connection. This is a record of type MFP.Handle.
 l request-id  –  Identifies this request. It is returned in the reply received by the MFP.GetReply 
statement in order to correlate a reply with its request. This is an optional expression of type 
integer.
 l user  –  The user name for the Message Feed client. This is an expression of type string.
 l password – The password for the specified user. This is an expression of type string.

Error handling
When an error occurs, the function throws an exception of type MFP.$Exception and sets the 
$Error reserved variable to one of the following below values: 

 l MFP.$Error_ErrorAuthenticateInvalidid – The hMFP parameter refers an unknown 
connection handle.
 l MFP.$Error_ErrorAuthenticateFailed – Failed to send the authenticate request to the 
Message Feed server.

Example
...
MFP.Authenticate $hMFP User "user" Password
"passwd";
MFP.GetReply $hMFP Reply $Reply;
IF $Reply.$Status <> MFP.$ReplyStatus_Ok {
LOG FORMAT("failed to authenticate: %s",

405  Operations Guide B2Bi  2.1


Message Feed Message Builder access

MFP.StatusToString($Reply.$Status));
EXIT 1;
}
...

Related commands
MFP.GetReply on page 409

B2Bi  2.1 Operations Guide  406


20  Message Feed Protocol

MFP.Connect

Description
Establishes a connection to the Message Feed server.

The function returns a handle of type record MFP.Handle for the connection. This handle must be 
freed using the MFP.Disconnect statement.

Syntax
MFP.Connect(host, service, timeout)

Parameters
 l host – The name of the TCP/IP host on which the Message Feed server is located.
 l service  –  The name of the TCP/IP service to which the Message Feed server listens.
 l timeout  –  The timeout, in seconds, being used for socket access to the Message Feed server.

Error handling
When an error occurs, the function throws an exception of type MFP.$Exception and sets the 
$Error reserved variable to the following value:

MFP.$Error_ErrorConnectConnectfail – The connection to the Message Feed server failed.

Example
INCLUDE "mfp.s4h";
...
DELCARE $hMFP RECORD MFP.Handle;
$hMFP = MFP.Connect("localhost", "12345", 60);
...
MFP.Disconnect$hMFP;
...

Related commands
MFP.Disconnect on page 408

407  Operations Guide B2Bi  2.1


Message Feed Message Builder access

MFP.Disconnect

Description
The MFP.Disconnect statement disconnects from the Message Feed Server.

Syntax
MFP.Disconnect hMFP;

Parameter
hMFP parameter is the handle to the Message Feed connection to disconnect. This is a record of type 
MFP.Handle previously returned by the MFP.Connect function.

Error handling
When an error occurs, the function throws an exception of type MFP.$Exception and sets the 
$Error reserved variable to the following value:

MFP.$Error_ErrorDisconnectInvalidid – The hMFP parameter refers an unknown 
connection handle.

Example
See MFP.Connect

Related commands
MFP.Connect on page 407

B2Bi  2.1 Operations Guide  408


20  Message Feed Protocol

MFP.GetReply

Descripiton
Gets the reply to a request to the Message Feed server.

Note: The MFP.GetReply statement is blocking. To avoid blocking the program while waiting for 
the reply, use the  MFP.GetSocket function to obtain a socket that can be used with the Message 
Builder REGISTER module to wait for the socket to be ready for read or write access.

Syntax
MFP.GetReply hMFP [Timeout timeout] Reply reply;

Parameters
 l hMFP – The handle to the Message Feed connection.
 l Timeout – The timeout, in seconds, to wait for the reply. This timeout is not the same timeout 
as the socket access timeout defined in the MFP.Connect function. This is an optional 
expression of type integer. The default value is 60 seconds.

 l reply – An output parameter of type record MFP.Reply:

DECLARE PUBLIC RECORD Reply {


DECLARE PUBLIC $RequestType STRING;
DECLARE PUBLIC $RequestId STRING;
DECLARE PUBLIC $Status INTEGER;
DECLARE PUBLIC $SubmitMessage RECORD ReplySubmitMessage;
}

Where:
$RequestType is:
 o MFP.$RequestType_Authenticate – if it is a reply to an MFP.Authenticate request
 o MFP.$RequestType_Submitmessage – if it is a reply to an MFP.SubmitMessage request.
$RequestId is the same request ID as supplied in the MFP.Authenticate or 
MFP.SubmitMessage statements.
$Status is the status of the request. Use the MFP.StatusToString function to get a textual 
description of the status. The status can be one of the following:
 o MFP.$ReplyStatus_Ok – The request was processed successfully.
 o MFP.$ReplyStatus_AuthenticateInvaliddata – A MFP.Authenticate request 
contained invalid data.

409  Operations Guide B2Bi  2.1


Message Feed Message Builder access

 o MFP.$ReplyStatus_AuthenticateAuthenticationfail – The user or password in an 
MFP.Authenticate statement was invalid.
 o MFP.$ReplyStatus_SubmitmessageInvaliddata – A MFP.SubmitMessage request 
contained invalid data.
 o MFP.$ReplyStatus_SubmitmessageNotauthenticated – Trying to submit a message 
without having authenticated to the Message Feed server.
 o MFP.$ReplyStatus_SubmitmessageUnknownactivity – The integration or activity 
parameters in the MFP.SubmitMessage statement refers an activity that is not known by the 
Message Feed server.
 o MFP.$ReplyStatus_SubmitmessageInvalidfile – The file-path parameter in the 
MFP.SubmitMessage statement does not refer a valid file.
 o MFP.$ReplyStatus_SubmitmessageUnknownqueue – The integration and activity 
parameters in the MFP.SubmitMessage statement refers an activity for which a queue does 
not exist. This error indicates an inconsistent run- time configuration in the system where the 
Message Feed server runs.
 o MFP.$ReplyStatus_SubmitmessageServererror – An internal error occurred in the 
Message Feed server.
 o MFP.$ReplyStatus_SubmitmessageTimeout – No reply was received from the Message 
Feed server within the specified timeout.
$SubmitMessage is valid when the reply is related to an MFP.SubmitMessage request. This 
field has a structure of type MFP.ReplySubmitMessage as defined here:

DECLARE PUBLIC RECORD ReplySubmitMessage {


DECLARE PUBLIC $FilePath STRING;
DECLARE PUBLIC $MessageId STRING;
DECLARE PUBLIC $LoggerId STRING;
DECLARE PUBLIC $Status INTEGER;
}

Where:
$FilePath is only set when a reply message was requested in the MFP.SubmitMessage 
statement. In this case, this field specifies the file path to the reply message.
$MessageId specifies the user-defined message ID of the message being submitted. This is the 
same as the message-id parameter in the MFP.SubmitMessage statement.
$LoggerId specifies the logger ID assigned for the submitted message by the Message Feed 
server. The logger ID uniquely identifies a message in the integration engine.
$Status specifies the processing status of the submitted message.  The status can be:
 o MFP.$SubmitMessage_Status_Ok – The submitted message was processed OK.
 o MFP.$SubmitMessage_Status_Partialerror – The submitted message was processed 
with some errors, i.e. one or several of the messages created from the submitted message 
was stopped.

B2Bi  2.1 Operations Guide  410


20  Message Feed Protocol

 o MFP.$SubmitMessage_Status_Error – The submitted message was processed with 
error: All messages created from the submitted message were stopped.
 o MFP.$SubmitMessage_Status_Timeout – The submitted message was not processed 
within the timeout specified in the MFP.SubmitMessage statement.

Error handling
When an error occurs, the function throws an exception of type MFP.$Exception and sets the 
$Error reserved variable to one of the values:

 l MFP.$Error_ErrorGetreplyInvalidid – The hMFP parameter refers an unknown 
connection handle.
 l MFP.$Error_ErrorGetreplyFailed – Failed to get the reply from the Message Feed server.

Example
INCLUDE "mfp.s4h";
...
DECLARE $hMFP RECORD MFP.Handle; DECLARE $Reply RECORD MFP.Reply;
$hMFP = MFP.Connect("localhost", "12345", 60); MFP.Authenticate $hMFP
User "user" Password
"passwd";
MFP.GetReply $hMFP Reply $Reply;
IF $Reply.$Status <> MFP.$ReplyStatus_Ok {
LOG FORMAT("failed to authenticate: %s",
MFP.StatusToString($Reply.$Status));
EXIT 1;
}
MFP.Disconnect $hMFP;
...

Related commands
MFP.Connect on page 407

MFP.GetSocket on page 412

MFP.Authenticate on page 405

MFP.SubmitMessage on page 414

MFP.StatusToString  on page 413

411  Operations Guide B2Bi  2.1


Message Feed Message Builder access

MFP.GetSocket

Description
Gets the socket descriptor for a connection handle. The socket descriptor can be used with the 
Message Builder REGISTER module to wait for a socket to be ready for read or write access. This 
function is only needed if the program using the Message Feed connection must not block while 
waiting for a reply from the Message Feed server.

The function returns a socket descriptor.

Note: Do not attempt to use the socket descriptor for any other purpose than waiting for read or 
write access using the REGISTER or equivalent module.

Syntax
MFP.GetSocket(hMFP);

Parameter
hMFPis the handle to the Message Feed connection. It is a record of type MFP.Handle.

Error handling
When an error occurs, the function throws an exception of type MFP.$Exception and sets the 
$Error reserved variable to one of the values:

 l MFP.$Error_ErrorGetSocketInvalidid – The hMFP parameter refers an unknown 
connection handle.
 l MFP.$Error_ErrorGetSocketFailed – Failed to get a valid socket descriptor for the 
specified handle.

Related commands
MFP.Connect on page 407

B2Bi  2.1 Operations Guide  412


20  Message Feed Protocol

MFP. Revision

Description
Returns the revision of the MFP library. The revision is returned as a string with a functional version 
number, a major version number and a minor version number, separated by a dot (.) character.

Syntax
MFP.Revision()

Example
INCLUDE "mfp.s4h";
...
PRINT FORMAT("MFP revision is %s\n", MFP.Revision());
...

Returns the result:

MFP revision is 1.0.0

MFP.StatusToString

Description
Gets a textual description of a status code returned by the MFP.GetReply function. 

The function returns a description of the status code defined by the status parameter.

Syntax
MFP.StatusToString(status);

Example
See MFP.GetReply on page 409.

413  Operations Guide B2Bi  2.1


Message Feed Message Builder access

MFP.SubmitMessage

Description
Submits a message to the Message Feed server. Before submitting a message, the 
MFP.Authenticate statement must be called to authenticate to the server.

A message is being submitted to a specified activity. The message consists of data and attributes and 
is optionally identified by a message ID.

Syntax
MFP.SubmitMessage hMFP [RequestId request-id] Integration
integration Activity activity FilePath file-path [Attributes
attributes] [MessageId message-id] [Acknowledge acknowledge]
[Timeout timeout];

Parameters
 l hMFP – The handle to the Message Feed connection. It is a record of type MFP.Handle.

 l request-id– Identifies this request. It is returned in the reply received by the MFP.GetReply 
statement in order to correlate a reply with its request. It is an optional expression of type 
integer.
 l integration – Specifies in which integration the activity exists. This is a qualified name 
containing any folders and integration name separated by the slash (/) character. The sequence 
\\ is used to specify a single \ character in a folder or integration name. The sequence \/ is used 
to specify a single / character in the folder or integration name. This parameter is an expression 
of type string.
 l activity – Specifies the name of the activity in which the submitted message should be 
processed. This parameter is an expression of type string.
 l file-path – The file path to the data part of the message being submitted. The file being 
referred is automatically deleted after it has been submitted. This parameter is an expression of 
type string.
 l attributes – An optional array of attribute records of type MFP.Attribute, defined as:

DECLARE PUBLIC RECORD Attribute {


DECLARE PUBLIC $Name STRING;
DECLARE PUBLIC $Value STRING;
}

B2Bi  2.1 Operations Guide  414


20  Message Feed Protocol

 l message-id – Identifies the message with a user-defined message identifier. This is an optional 
expression of type string.
 l acknowledge – Specifies the type of acknowledgement expected for the submitted message. It 
can be:
 o MFP.$SubmitMessage_Acknowledge_Commit – Expect that the submitted message is 
successfully queued and secured in the Message Feed Server.
 o MFP.$SubmitMessage_Acknowledge_Status – Expect a reply status for the submitted 
message. This is the default value.
 o MFP.$SubmitMessage_Acknowledge_Statusmessage – Expect a reply message for 
thesubmitted message.
 l timeout – Specifies the timeout, in seconds, for processing the submitted message in the 
specified activity. This is an optional expression of type integer. The default value is 60 
seconds.

Error handling
When an error occurs, the function throws an exception of type MFP.$Exception and sets the 
$Error reserved variable to one of the values:

 l MFP.$Error_ErrorSubmitMessageInvalidid – The hMFP parameter refers an unknown 
connection handle.
 l MFP.$Error_ErrorSubmitMessageFailed – Failed to send the submit message request to 
the Message Feed server.

Example
...
DECLARE $Attributes[] RECORD MFP.Attribute;
DECLARE $StatusDescription STRING;
Attributes[1].$Name = "MyAttribute"; Attributes[2].$Value = "somedata";
MFP.SubmitMessage $hMFP
Integration "MyFolder/MyIntegration" Activity "MyActivity"
FilePath "msg.dat" Attributes $Attributes
MessageId "Id123";
MFP.GetReply $hMFP Reply $Reply;
IF $Reply.$Status <> MFP.$ReplyStatus_Ok {
LOG FORMAT("failed to submit message: %s",
MFP.StatusToString($Reply.$Status));
EXIT 1;
}
CASE $Reply.$SubmitMessage.$Status

415  Operations Guide B2Bi  2.1


Message Feed Message Builder access

WHEN MFP.$SubmitMessage_Status_Ok {
$StatusDescription = "Ok";
}
WHEN MFP.$SubmitMessage_Status_Partialerror {
$StatusDescription = "Partial error";
}
WHEN MFP.$SubmitMessage_Status_Error {
$StatusDescription = "Error";
}
WHEN MFP.$SubmitMessage_Status_Timeout {
$StatusDescription = "Timeout";
}
WHEN OTHERS {
$StatusDescription = "Unknown";
}
PRINT FORMAT("LoggerId\t%s\n",$Reply$SubmitMessage.$LoggerId);
PRINT FORMAT("Status\t%s\n", $StatusDescription);
...

Related commands
MFP.GetReply on page 409

B2Bi  2.1 Operations Guide  416


20  Message Feed Protocol

Message Feed Java access


This chapter describes how to access the Message Feed server using the Java language. The access 
to the Message Feed server is socket based. The API relies on Java threading when non-blocking 
operation is required. A native class is used to implement the access to the Message Feed server.  The 
java package core.mfp.jar is located in the directory

$CORE_ROOT/java/lib/core/mfp. 

The native class shared object, libmfp_jni.so or libmfp_jni.sl on UNIX / Linux systems, or 
mfp_jni.dll on Windows systems is located in the directory $CORE_ROOT/java/load.

The following topics describe the Message Feed Java methods and classes:

Mfp. revision on page 418

Mfp.constructor on page 419

Mfp.authenticate on page 421

Mfp.submitMessage on page 423

Mfp.close on page 425

MfpAttribute.constructor on page 426

MfpAttribute.setName on page 427

MfpAttribute.setValue on page 428

MfpAttribute.getName on page 429

MfpAttribute.getValue on page 429

MfpAttribute.toString  on page 431

MfpSubmitMessageReply.getStatus on page 432

MfpSubmitMessageReply.getLoggerId  on page 433

MfpException.toString  on page 433

417  Operations Guide B2Bi  2.1


Message Feed Java access

Mfp. revision

Description
Returns the revision of the MFP package. The revision is returned as a string with a functional 
version number, a major version number and a minor version number, separated by a dot (.) 
character.

Class
core.mfp.Mfp 

Method
revision

Syntax
public static String revision()

Example
import java.io.*;
import core.mfp.*;
...
System.out.println("MFP revision is " + Mfp.revision());
...

Returns the result:

MFP revision is 1.0.0

B2Bi  2.1 Operations Guide  418


20  Message Feed Protocol

Mfp.constructor

Description
The constructor establishes a connection to the Message Feed server.

To avoid memory leaks, the Mfp object must be disconnected from the Message Feed server, using 
the method close, before being finalized. 

Class
core.mfp.Mfp

Method
constructor

Syntax
public Mfp(String host, String service, int timeout) throws Exception,
MfpException

Parameters
 l host – Name of the TCP/IP host on which the Message Feed server is located.
 l service – Name of the TCP/IP service to which the Message Feed server listens to.
 l timeout – Timeout, in seconds, for socket access to the Message Feed server.

Error handling
Mfp.constructor throws an Exception when system resources are exhausted, or an MfpException 
in when the connection to the Message Feed server fails.

Use the MfpException.toString method to get a textual description of the exception.

Example
import core.mfp.*;
...

419  Operations Guide B2Bi  2.1


Message Feed Java access

Mfp mfp = new Mfp("localhost", "12345", 60);


... mfp.close();
...

Related topics
Mfp.close on page 425

MfpException.toString  on page 433

B2Bi  2.1 Operations Guide  420


20  Message Feed Protocol

Mfp.authenticate

Description
Authenticates the client to Message Feed server. Each client submitting messages to the Message 
Feed server must authenticate with a name and a password.

Class
core.mfp.Mfp

Method
authenticate

Syntax
public void authenticate(String user, String password) throws MfpException

Parameters
 l user – The user name of the Message Feed client.
 l password – Password for the specified user.

Error handling
The authenticate method throws an MfpException when authentication fails. 

Use the MfpException.toString method to get a textual description of the exception.

Example
import core.mfp.*;
...
Mfp mfp = new Mfp("localhost", "12345", 60);
mfp.authenticate("user", "passwd");
...
mfp.close();

421  Operations Guide B2Bi  2.1


Message Feed Java access

Related topics
MfpException.toString  on page 433

B2Bi  2.1 Operations Guide  422


20  Message Feed Protocol

Mfp.submitMessage

Description
Submits a message to the Message Feed server. Before submitting a message, the authenticate 
method must be called to authenticate to the server.

A message can be submitted either using a file path or an input stream, hence the two alternative 
method syntaxes.

A message is submitted to a specified integration engine activity. The message consists of data and 
attributes and is optionally identified by a message ID.

The method returns the reply as an object of class MfpSubmitMessageReply.

Class
core.mfp.Mfp

Method
submitMessage

Syntax
public MfpSubmitMessageReply

submitMessage (String integration, String activity, String filePath,


MfpAttribute attributes[ ], String messageId, int acknowledge, int timeout)
throws MfpException

public MfpSubmitMessageReply

submitMessage(String integration, String activity, InputStream dataStream,


MfpAttribute attributes[ ], String messageId, int acknowledge, int timeout)
throws MfpException

Parameters
 l integration – Specifies in which integration the activity exists. This is a qualified name 
containing any folders and integration name separated by the slash (/) character. The sequence 
\\ is used to specify a single \ character in a folder or integration name. The sequence \/ is used 
to specify a single / character in the folder or integration name.

423  Operations Guide B2Bi  2.1


Message Feed Java access

 l activity name of the activity in which the submitted message should be processed.
 l filePath – The file path to the data part of the message being submitted. The file being 
referred is automatically deleted after it has been submitted.
 l dataStream – An input stream used to stream the data to the Message Feed server rather than 
using a regular file. The data from the input stream is read from the current position until the end 
of the input stream. The input stream must be opened and closed by the method invoking the 
submitMessage method.
 l attributes An array of class MfpAttribute objects containing the attributes for the 
submitted message.
 l messageId – Identifies the message with a user-defined message identifier.
 l acknowledge – Specifies the type of acknowledgement being expected for the submitted 
message. It can one of the folloiwing:
 o Mfp.ACKNOWLEDGE_COMMIT – Expect that the submitted message is successfully queued 
and secured in the Message Feed server.
 o Mfp.ACKNOWLEDGE_STATUS – Expect a reply status for the submitted message.
 o Mfp.ACKNOWLEDGE_STATUSMESSAGE – Expect a reply message for the submitted message. 
 l timeout – Specifies the timeout, in seconds, for processing the submitted message in the 
specified activity.

Error handling
The submitMessage method throws an MfpException when authentication fails. 

Use the MfpException.toString method to get a textual description of the exception.

B2Bi  2.1 Operations Guide  424


20  Message Feed Protocol

Mfp.close

Description
The close method disconnects from the Message Feed server. It must be called to avoid before the 
Mfp object is finalized to avoid resource leaks.

Class
core.mfp.Mfp

Method
close

Syntax
public void close() throws MfpException

Parameters
 l host – Name of the TCP/IP host on which the Message Feed server is located.
 l service – Name of the TCP/IP service to which the Message Feed server listens to.
 l timeout – Timeout, in seconds, for socket access to the Message Feed server.

Error handling
The close method throws an MfpException when authentication fails. 

Use the MfpException.toString method to get a textual description of the exception.

Example
See Mfp.constructor on page 419.

Related topics
Mfp.constructor on page 419

MfpException.toString  on page 433

425  Operations Guide B2Bi  2.1


Message Feed Java access

MfpAttribute.constructor

Description
The MfpAttribute constructor creates an attribute instance to be used when submitting a message.

Class
core.mfp.MfpAttribute

Method
constructor

Syntax
public void MfpAttribute()

public void MfpAttribute(String name, String value)

Parameters
 l name – Name of the attribute. The value parameter is the value of the attribute.

Example
See Mfp.submitMessage on page 423.

B2Bi  2.1 Operations Guide  426


20  Message Feed Protocol

MfpAttribute.setName

Description
Sets the name for an attribute. 

Class
core.mfp.MfpAttribute

Method
setName

Syntax
public void setName(String name)

Parameters
name – Name of the attribute.

Related topics
Mfp.constructor on page 419

Mfp.submitMessage on page 423

427  Operations Guide B2Bi  2.1


Message Feed Java access

MfpAttribute.setValue

Description
Sets the value of an attribute. 

Class
core.mfp.MfpAttribute

Method
setValue

Syntax
public void setValue(String value)

Parameters
value – Value of the attribute.

Related topics
Mfp.constructor on page 419

Mfp.submitMessage on page 423

B2Bi  2.1 Operations Guide  428


20  Message Feed Protocol

MfpAttribute.getName

Description
Gets the name of an attribute.

Class
core.mfp.MfpAttribute

Method
getName

Syntax
public String getName()

Related topics
Mfp.constructor on page 419

MfpAttribute.setName on page 427

MfpAttribute.getValue

Description
Gets the value of an attribute.

Class
core.mfp.MfpAttribute

Method
getValue

429  Operations Guide B2Bi  2.1


Message Feed Java access

Syntax
public String getValue()

Related topics
Mfp.constructor on page 419

MfpAttribute.setValue on page 428

B2Bi  2.1 Operations Guide  430


20  Message Feed Protocol

MfpAttribute.toString

Description
Returns a text representation of the attribute. The returned string contains the name and value of 
the attribute, separated by an equal (=) sign.

Class
core.mfp.MfpAttribute

Method
toString

Syntax
public String toString()

Related topics
Mfp.constructor on page 419

MfpAttribute.setName on page 427

MfpAttribute.setValue on page 428

431  Operations Guide B2Bi  2.1


Message Feed Java access

MfpSubmitMessageReply.getStatus

Description
Use the getStatus method  to get the status of a message submitted to the Message Feed server.

The method returns a value that specifies the processing status of the submitted message. The 
status can be:

 l MfpSubmitMessageReply.STATUS_OK – The submitted message was processed OK.
 l MfpSubmitMessageReply.STATUS_PARTIALERROR – The submitted message was processed 
with some errors. One or several of the messages created from the submitted message was 
stopped.
 l MfpSubmitMessageReply.STATUS_ERROR – The submitted message was processed with 
error. All messages created from the submitted message were stopped.
 l MfpSubmitMessageReply.STATUS_TIMEOUT – The submitted message was not processed 
within the timeout specified in the Mfp.submitMessage method.

Class
core.mfp.MfpSubmitMessageReply

Method
getStatus

Syntax
public int getStatus()

Example
See Mfp.submitMessage on page 423.

B2Bi  2.1 Operations Guide  432


20  Message Feed Protocol

MfpSubmitMessageReply.getLoggerId

Description
Use the getLoggerId method to get the logger ID of a message submitted to the Message Feed 
server. The logger ID uniquely identifies a message in the B2Bi integration engine.

Class
core.mfp.MfpSubmitMessageReply

Method
getLoggerId

Syntax
public String getLoggerId()

Example
See Mfp.submitMessage on page 423.

MfpException.toString

Description
Returns a text description of the exception.

Class
core.mfp.MfpException extends Exception

Method
toString

433  Operations Guide B2Bi  2.1


Message Feed Java access

Syntax
public String toString()

B2Bi  2.1 Operations Guide  434


Additional B2Bi
operations tasks 21  
This chapter provides information and procedures for managing your B2Bi implementation.

 l Check database connections on page 435
 l Deploy and promote B2Bi configurations on page 439
 l Create audit files of UI object changes on page 442
 l Enable non-standard version/release/ID codes for X12 message exchanges on page 446

 l  Integration engine message recovery after node failure on page 447
 l Naming conventions on page 454
 l Manage B2Bi purges on page 458
 l Manage licenses and keys on page 463
 l Manage the system throttle on page 466
 l Modify HTTP upload file size limit on page 469
 l Set the log file archiving schedule on page 470
 l Set up Message Tracker on page 472

Check database connections


After you install B2Bi it is a good practice to verify your database connectivity. To do this you can 
use the database configuration tool, dbConfig.

Use dbConfig to:

 l Test database connections (Windows only)
 l Change from one database to another
 l Change or correct a database connection parameter

Warning: The database must allow a minimum of 800 maximum connections.

B2Bi database
The B2Bi database is used by the trading engine to read and write data.   B2Bi can use any of the 
database types the trading engine supports.

If you deploy B2Bi in a cluster of multiple computers,   all instances of B2Bi use the same  d atabase.

B2Bi  2.1 Operations Guide  435


21  Additional B2Bi operations tasks

The B2Bi  d atabase driver and connection information  is stored   in a file named 
datastoreconfig.xml. By default, this file is located in the   d irectory <Interchange_install_
directory>\conf\db.

To view or change the information in this file, use the database configuration tool, located in   
<Interchange_install_directory>\bin. This tool is named dbConfig.cmd in Windows 
installations, and dbConfig in UNIX installations.

Note:  The B2Bi database password is encrypted in  datastoreconfig.xml, so you must use the 
tool to change the password. You cannot manually edit datastoreconfig.xml to change the 
password.

PassPort database
If you installed PassPort for access management,   you can use the dbConfig tool to check PassPort 
database driver and connection  information.

Database driver and connection information for PassPort is in a file named datastoreconfig.xml 
in <Passport_install_directory>\conf.

To view or change the information in this file, use the database configuration tool, located in 
<PassPort_install_directory>\bin. This tool is named dbConfig.cmd in Windows 
installations, and dbConfig in UNIX installations.

Note:  The PassPort database password is encrypted in datastoreconfig.xml, so you must use 
the tool to change the password. You cannot manually edit datastoreconfig.xml to change the 
password.

Run dbConfig

Windows
To run dbConfig on Windows machines.

From the Start menu


 1.  Stop the server.
 2.  Start the tool:
 l B2Bi database: Select Start > Programs > Axway Software > Axway B2Bi>
B2Bi Server> DB Configuration.
 l PassPort database: Select Start > Programs > Axway Software > Axway >
PassPort > DB Configuration
The software opens the Datastore Configurator page.

436  Operations Guide B2Bi  2.1


Check database connections

 3.  From the Datastore Configurator page, click Test Connection.


If the connection is correct, a confirmation field is displayed.

From the installation folder


 1.  Stop the server.
 2.  Locate the tool:
 l B2Bi database: Go to <Interchange_install_directory>\bin and click 
dbConfig.cmd.
 l PassPort server: Go to <PassPort_install_directory>\bin and click 
dbConfig.cmd.
The software opens the Datastore Configurator screen.
 3.  From the Datastore Configurator screen click Test Connection.
If the connection is correct, a confirmation field is displayed.

From the command line for the B2Bi database


 1.  Use the cd command to go to <Interchange_install_directory>\bin.
 2.  Execute the command dbConfig.cmd -b2bx true
 3.  Test the connection and if necessary change the details.

 4.  Save.

From the command line for the PassPort databases


 1.  Using the cd command, go to: <PassPort_install_directory>\bin
 2.  Execute the command dbConfig.cmd
 3.  Test the connection and if necessary change the details.
 4.  Save.

Unix / Linux

B2Bi database
 1.  Stop the B2Bi server.
 2.  Using the cd command, go to <Interchange_install_directory>\bin .
 3.  Execute the command:
 ./dbConfig [-? | -help] [-d (sqlsrvr|ora|db2|derby|mysql|synchrony)] [-
p port] [-h host] [-n dbname] [-u username] [-pd password] -b2bx true

B2Bi  2.1 Operations Guide  437


21  Additional B2Bi operations tasks

 4.  If necessary modify connection details.
 5.  Save.

PassPort databases
 1.  Stop the trading engine or PassPort server.
 2.  Using the cd command, go to: PassPort_install_directory>\bin
 3.  Execute the command ./dbConfig
 4.  If necessary modify connection details..
 5.  Save.

438  Operations Guide B2Bi  2.1


Deploy and promote B2Bi configurations
This chapter provides information about moving your configurations between various development, 
testing and production environments.

Use backup restore tools


B2Bi backup and restore tools are important tools for deployment and promotion. Using the various 
backup and restore tools you can handle the following groups of configured objects:

 l Partner – A partner backup (or "partner profile") contains the definition of a single partner.
 l Community (with associated partners) – A community backup (or "community profile") 
contains the backup a single community and all of its associated partners.
 l Selected objects – Back up and restore individual objects or selected groups of objects of the 
same object type:
 o Components
 o Services
 o Inbound agreements
 o Document agreements

 o Outbound agreements
 l System – The system backup is the most complete backup, containing (among other objects):
 o Communities
 o Partners
 o Agreements
 o Services
 o Components
 o Connections
 o Collaboration Settings
 o Embedded Servers
 o Global Transport Settings
 o Metadata Profiles
 o Password Policies
 o Processing Nodes
 o Deployed Maps
 o Application Pickups
 o Application Deliveries

B2Bi  2.1 Operations Guide  439


21  Additional B2Bi operations tasks

Additionally, the system backup enables you to selectively restore your files, by selecting a 
restoration mode:
 o Replace – Imports all backed-up objects replacing (unmodified) previous content and 
imports objects that do not exist
 o Ignore – If an existing object is encountered, it remains as is and is not imported, a message 
is logged, then it and moves on to evaluate the next import object
 o Update – Adds new objects that don't exist, adds backed-up content to objects that do exist 
(incremental updates)

For details about using the backup / restore tools, see Backup and restore on page 344.

Manage custom components and files


Most B2Bi environments include a certain number of customized components and files. These 
elements require special handling as you move them from one B2Bi environment to another. The 
procedures for promoting and deploying these elements vary depending on the element type.

Trading engine
Inline processors

To deploy and promote inline processors to each node in a cluster, put inline processors in the 
following directory on the nodes. 

<B2Bi_Install_Dir>\Interchange\site\jars

After you deploy the inline processor you must restart the trading engine.

Integration engine
 l MBCs – Message Builder Components
 l Datamapper maps – Maps created with Datamapper
 l DML maps – Maps created with DML

To deploy and promote MBCs and Datamapper maps to a B2Bi environment, place them in the 
appropriate folder on the shared file system, as indicated in the following table:

Item Location

MBC %B2BI_SHARED%\local\4edi\component

Datamapper map %B2BI_SHARED%\local\4edi\component

To deploy DML maps, use the  Mapping Services deployment tool.

440  Operations Guide B2Bi  2.1


Deploy and promote B2Bi configurations

Managing configuration files


Any configuration files that you have manually modified, must also be modified in the target system 
to implement the same changes.

B2Bi  2.1 Operations Guide  441


21  Additional B2Bi operations tasks

Create audit files of UI object changes

Introduction
B2Bi provides tools for generating audit logs of the changes that users perform on objects in the UI. 
This includes changes implemented when creating objects (using the add wizards) and when 
modifying objects (working in modification pages). The resulting logs show which user made 
changes, at what time and date the change was made, and provide details of the change.

Audit information is collected for changes to the following objects:

 l Parties (Partners and Communities)
 l Contacts
 l Routing IDs
 l Messaging IDs
 l Certificates
 l PGP Certificates
 l Delivery Exchanges
 l Attributes

Configuration file
The information that B2Bi audits is controlled by the audit_config.xml file located in <B2Bi_
install_directory>/Interchange/conf.

Log files
By default, auditing is disabled on system startup, however the CSV audit file, <machine_name>_
cn_audit.csv, file is created for each node in the directory <B2Bi_install_
directory>/Interchange/logs. When you activate object change auditing, B2Bi generates the 
audit information to this file.

Additionally, by activating an option in the audit_config.xml file, you can generate audit logs to 
<machine_name>_cn_audit.xml. This XML formatted file provides raw trace data that you can 
use for additional fine tuning of information, which you can then convert to the CSV format. When 
activated, the XML version of this log file is also located in the <B2Bi_install_
directory>/Interchange/logs directory. 

To activate logging to the XML file, see Activate logging to XML file on page 444.

442  Operations Guide B2Bi  2.1


Create audit files of UI object changes

When both output types are enabled, the logger formats and outputs information both CSV and 
XML files.  You must enable at least one of the output types to enable auditing.

Logged audit data


For each object type, audit log files collect the following information:

 l User – Account name of the user who implemented the change.
 l Timestamp – Time and date of the change.
 l Transaction ID – Unique ID used to group a set of auditing changes. When a user implements 
more than one change on a single object and then saves the changes (for example, modifies 
several fields in an object configuration page), the modifications are displayed in the audit log as 
several actions that share a single Transaction ID.
 l Object ID – Database ID of the object that has been changed.
 l Object Type – Type of object that was changed (Partner, Certificate, Attribute, ...).
 l Object Name – Display name of the object that was changed in the UI.
 l Action – Nature of the change (Added, Updated, Deleted, ...).
 l Related Object ID – Database ID of the object’s parent.
 l Related Object Type – Object type of changed object's parent.
 l Related Object Name – Display name of the changed object's parent.
 l Attribute Name – Database name (not UI display name) of object's changed attribute.

 l Old Value – Value of the attribute before the change.
 l New Value – Value of the object after the change. If the modified value is an element of a list, the 
entire list is recorded as the new value.

Activate object change auditing


To activate object-change auditing:

 1.  Go to <Interchange_install_directory>/conf.
 2.  Open  audit_config.xml in a text editor.
 3.  Set the following attribute to "true" as in the following line:
<NodeType type="CN" enabled="true">

 4.  Save the file.
 5.  Restart B2Bi. 

B2Bi  2.1 Operations Guide  443


21  Additional B2Bi operations tasks

Activate logging to XML file


By default, when object change auditing is activated, B2Bi logs user change events to <trading_
engine_install_directory>\logs\<machine_name>_cn_audit.csv. To additionally 
activate logging to <trading_engine_install_directory>\logs\<machine_name>_cn_
audit.xml:

 1.  Go to <Interchange_install_directory>/conf.
 2.  Open audit_config.xml in a text editor.
 3.  Remove the comment from the line:
<!--<AuditedTransactionHandler
class="com.cyclonecommerce.persistence.audit.LogXmlTransactionHandle
r"/>-->  
 4.  Save the file.
 5.  Restart B2Bi. 

Tune object change audit outputs


Axway recommends that the default settings only be modified by an administrator or with the aid of 
an Axway services resource.  Changes made to the audit configuration can have an impact on the 
type of objects being logged, and can possibly cause the auditing process to not work properly.

To control the information that is generated to the output files, you can modify the attributes of the 
audit_config.xml file.

By default, the configuration is set to audit specific partner-related configuration changes made in 
the UI.  

The audit_config.xml configuration file controls which objects are logged, based on the 
following class settings:

<!-- Included Classes -->  

<IncludedClasses regex=".*ExchangePoint"/>  

<IncludedClasses regex=".*PropertyFieldValue"/>  

<IncludedClasses regex="com.cyclonecommerce.collaboration.*Party"/>  

<IncludedClasses
regex="com.cyclonecommerce.collaboration.messagingids.*MessagingId"/>  

<!-- Excluded Classes -->  

<ExcludedClasses
regex="com.cyclonecommerce.cachet.administration.*"/>  

444  Operations Guide B2Bi  2.1


Create audit files of UI object changes

<ExcludedClasses
regex="com.cyclonecommerce.cachet.security.session.*"/>  

<ExcludedClasses regex="com.cyclonecommerce.alerts.*"/>  

<ExcludedClasses regex="com.cyclonecommerce.tradingengine.alerts.*"/>  

<ExcludedClasses regex="com.cyclonecommerce.collaboration.alerts.*"/>  

Removing any of the above settings affects the type of objects that are logged. 

To log all objects, remove the comment markers from the following line:

<!--<IncludedClasses regex=".*"/>-->  

Enabling the above setting, and commenting out the “Included/Excluded Classes” settings, 
results in the capture of all activity persisted in the database, and enables logging of activities in the 
default CSV log file.  

Note Only the partner-specific objects are formatted properly in the log file, based on 
configuration file settings.  All other objects are logged without formatting, and in most 
cases will derive names from database naming instead of UI display naming.

B2Bi  2.1 Operations Guide  445


21  Additional B2Bi operations tasks

Enable non-standard version/release/ID


codes for X12 message exchanges
If you or your trading partners use non-standard versions, releases or ID codes when exchanging 
X12 messages, you must customize your trading configuration to support them. The following 
procedures are an example of customizations to support X12 4010 in addition to the normal 
004010:

Procedure 1: Update repos files for X12 to


support 4010
 1.  Browse to the integration engine directory: 
%CORE_ROOT% \solutions\config\b2bx\repos.
 2.  Open the x12.ver file in a text editor and add the following string:
"4010","X12","ANSI X12 Draft version 4 release 1"

 3.  Make a copy of the 004010.txt file, and then rename it to 4010.txt.

Procedure 2: Append the elecod.dsc file


 1.  Go to the directory: 
<MD_Installation_Dir>\Map_
Designer\plugins\com.axway.md.importer.edi_
2.4.0.201209131415\lib\edi_repository.zip\database\004010\

 2.  Open the elecod.dsc file in a text editor.
 3.  Add the following text:
480   4 010Draft Standards Approved for Publication by ASC X12 Procedures 
Review Board through October 1997
 4.  Save the file.

446  Operations Guide B2Bi  2.1


Integration engine message recovery after node failure

Integration engine message recovery after


node failure
This chapter contains procedures to use in the event of a crash of the integration engine. Use these 
procedures to be sure that all the messages are processed, and none are duplicated.

Before you execute these procedures, restart the system and make sure that the integration engine is 
up and running again.

Identify the date and time of the crash


In order to effectively search for failed and duplicate messages, it is use full to know the date and 
time when the crash occurred. You can generally retrieve this information from the a diagnostic 
application on the cluster. You may require assistance from your system administrator.

 l Date and time of crash
 l Date and time of restart

View error logs in Message Log


In the event of a crash, a number of messages may be incompletely processed on the integration 
engine. Incompletely processed messages appear in the Message Log where you can view their 
processing status.

Open Message Log


To open Message Log, go to Start > All programs > Axway Software > Axway B2Bi >
B2Bi Tools > B2Bi Tools Client, log on to the tool box and click the Message Log icon.

Create Message Log searches


In Message Log you can create different types of searches for messages to view. After a crash, create 
the following searches:

 l Active log entries – An entry is generated in Message Log and stays active until the processing 


of the entry is complete (delivered to the final destination). After a crash, a search for active 
entries returns a list of any files that the integration engine did not completely process. In most 
cases the integration engine does not complete the processing of these messages after the node 
recovery. You must individually handle each of the active entries that you find.
See Create an active log entry search on page 448.

B2Bi  2.1 Operations Guide  447


21  Additional B2Bi operations tasks

 l Erroneous log entries – Erroneous entries are messages that ended with "error" as final state. 


You can usually reprocess or resend these messages after recovery.
See Create an erroneous log entry search on page 448.
 l Possible duplicates –  Message which are not guaranteed to be processed entirely, are stored 
(as Syncpoints) and marked by the system as “Possible duplicate”. Unlike active log entry 
searches, and erroneous log entry searches, the possible duplicate search does not exist by 
default. You must create it in Message Log. Duplicate entries have a the "undecided" state. When 
you locate a possible duplicate message you must verify with the other applications whether 
these entries have been processed correctly. The have not been completely processed you can 
preprocess or resend them from Message Log.
See Create a possible duplicates entry search on page 449. 

Create an active log entry search


 1.  Right-click anywhere in the Message Log Favorite Searches pane, and from the context 
menu, select New.
 2.  In the New Search window, click SyncPoints.
 3.  Click Select.
 4.  In the General tab:
 l Specify the time range you want to search. Use a time range that corresponds to the 
system crash.

 l Select all severity levels.
 l Select the option: Only active entries
 5.  Click Save.
 6.  Click Close.
 7.  Inspect the new search display results.

Create an erroneous log entry search


 1.  Right-click anywhere in the Message Log Favorite Searches pane, and from the context 
menu, select New.
 2.  In the New Search window, click Default.
 3.  Click Select.
 4.  In the General tab:
 l Specify the time range you want to search. Use a time range that corresponds to the 
system crash.
 l In the Severity section, select only Error and Fatal.
 5.  Click Save.

448  Operations Guide B2Bi  2.1


Integration engine message recovery after node failure

 6.  Click Close.
 7.  Inspect the new search display results.

Create a possible duplicates entry search


 1.  Right-click anywhere in the Message Log Favorite Searches pane, and from the context 
menu, select New.
 2.  In the New Search window, click Default.
 3.  Click Select.
 4.  In the General tab, specify the time range you want to search. Use a time range that 
corresponds to the system crash.
 5.  In the SyncPoints tab, select Possible Duplicates.
 6.  Click Save.
 7.  Click Close.
 8.  Inspect the new search display results.

Remove incorrect elements from integration


engine queues
In the event of an integration node failure, it is possible that message entries become "stuck" in one 
of the integration engine queues. After node recovery your first action should be to let the 
integration engine recover. The integration engine can automatically resolve a certain number of 
queue issues. You must then manually handle any entries that are not automatically resolved during 
recovery and are stuck in a queue. 

For message queue resolution we deal with two categories of queue elements:

 l Single queue elements
 l Queue elements with a log parent

Single queue elements


Single queue elements are only generated for messages that come to integration engine through the 
Axway proprietary Message Feed Protocol (MFP). The MFP protocol, pushes messages directly to an 
integration engine internal queue. 

Use the B2Bi Queue Monitor delete these elements. See Delete a queue element on page 450.

In all other cases the message elements have an entry in the B2Bi Message Log.

B2Bi  2.1 Operations Guide  449


21  Additional B2Bi operations tasks

Queue elements with a parent


When a queue element is a child of another element, you have two options for handling the 
elements in B2Bi Queue Monitor. Your choice depends on the current configuration of the system 
and when you choose to clean up the queue. 

• Syncpoint – (Recommended) When you select this option the element is moved from the queue 
to Message Log. This enables you to resend the data after correcting the message error. See Apply a 
synchpoint to a queue element on page 450.

• Delete – (Not recommended) When you select this option, the message is deleted. Even if the 
failure was due to a known and correctable error, it is not possible to resend the data. See Delete a 
queue element on page 450.

Use the syncpoint option when the flow contains only one entry into the queue. The syncpoint 
moves the entry into the Message Log and inactivates the active log entry that is the parent of this 
element. Use this option only you are sure that there is one entry in the queue.

Open Queue Manager


To open Message Log, go to Start > All programs > Axway Software > Axway B2Bi >
B2Bi Tools > B2Bi Tools Client, log on to the tool box. Then click the Queue Manager icon.

Delete a queue element


A queue entry can only be deleted if it is not in transaction (the queue is not processed by the 
Hierarchical Message Environment, Transfer Gateway or Transfer Adapter).

 1.  In Queue Monitor, select the Queue tab to view the list of current queues.
 2.  Select a queue that corresponds to transactions that may have failed messages. [examples?]
 3.  Right-click on an entry, and from the context menu select Delete.

Apply a synchpoint to a queue element


 1.  In Queue Monitor, select the Queue tab to view the list of current queues.
 2.  Select a queue that corresponds to transactions that may have failed messages. [examples?]
 3.  Double-click an entry in the queue to open the detail window, and then copy the logger ID for 
the entry.
 4.  Open Message Log. 
 5.  Select the log entries search that corresponds to the time period of the crash.
 6.  From the Search menu, select Lookup... to open the Lookup log entry window.
 7.  Enter the logger ID you copied in step 3 above, and click OK.

450  Operations Guide B2Bi  2.1


Integration engine message recovery after node failure

 8.  Message Log displays a list of any message entries that have the logger ID.
 9.  Right-click each entry, and from the context menu select Inactivate entire flow.
The integration engine:
 l Creates the hierarchical tree of the flow
 l Finds any queue entries that have a parent log ID from the flow, and places them in 
Message Log as a syncpoint.
 l Inactivates all active logs from the flow

Remove unused queues


The B2Bi Message Log and Queue Manager tools enable you to manage individual message entries. 
Additionally, the integration engine provides a command-line tool for cleaning the queue directories 
on the queue server. Use this tool to  c lean queues marked as "deleted" in Queue Monitor.  

Before you delete queues, run:

r4edi clean_queues.x4 /P

This command returns the list of queues that are not actively being used. These are queues that are 
left after you delete a Hierarchical Message Environment, Transfer Gateway or Transfer Adapter from 
the runtime dataset. 

Then run the command:

r4edi clean_queues.x4 /S (if the queue servers are stopped)

or,

r4edi clean_queues.x4 (if the queue servers are started)

The command removes the inactive queues.

Additional steps, when the system has


crashed completely

Crash due to “no disk space on device” (hard crash)


Because the integration engine cannot predict which files will be in a writing stage, hard crashes 
inevitably lead to a loss of messages that are / were in actively processed transactions. To detect if 
there has been message loss, verify the size of the files in the logger/queue/table/timer.

In logger, all files beginning with with axxxxxx (active log file) and ixxxxxxx (inactive) must have 
the same size (typically 10Mb). The size of these files must match the size of the preactv and 
preiactv files in that same directory.

B2Bi  2.1 Operations Guide  451


21  Additional B2Bi operations tasks

In the queue directory (if the system is running in the default "fail-safe" mode) all files except 
cleanflag and the uncleanflag should have the same size.

To obtain the correct file size, delete the incorrectly sized files (note: this results in potential data 
loss). The integration engine will regenerate these files. 

After fixing files that have an incorrect size, apply the soft crash procedures below.

Crash due network event (soft crash)


A soft crash is a B2Bi failure in which all tasks are stopped and the integration engine itself is 
stopped.

First empty the cache of the porter server. Delete the file $CORE_DATA/porter/porter.mem and 
then recreate the file with value 0, so that the file exists as an empty file.

Check if the integration engine services are still running. You must stop these services because, in 
some cases, integration engine tasks hang without properly stopping. Monitor both the open 
connection in listen and the established connection. At the same time, check the connections in 
"close wait" status and validate with the OS administrator what time the connection was closed. The 
"close wait" time is the minimum time that the system was down.

Exception: If the queue does not have the option –c activated, when the queue crashes all entries 
are logged as possible duplicates. If you notice errors when the queue is started of the type 
"uncommitted file … ", enable –c temporarily. To do this:

 1.  Go to the directory $CORE_ROOT/config.

 2.  Open the environment.dat file in an editor.
 3.  Set the value of the environmental variable QUEUE_OPTIONS to -c.
 4.  Save  the file.
 5.  Restart the integration engine.

Duplicate handling

Stop possible duplicates - disabled


If the system supports duplicates, it is best to disable the option Stop possible duplicates. To 
do this:

 1.  Go to the directory $CORE_ROOT/config.
 2.  Open the environment.dat file in an editor.
 3.  Set the value of the environmental variable  B2BI_STOP_POSSIBLE_DUPLICATES to 0.
 4.  Save  the file.
 5.  Restart the integration engine.

452  Operations Guide B2Bi  2.1


Integration engine message recovery after node failure

This enables all messages to be processed and lets the back-end system deal with duplicates. This 
also generates multiple Message Log entries. The integration engine behavior then depends on how 
the back-end system is set and where the fail-over occurred.

Stop possible duplicates - enabled


If the option Stop possible duplicates is enabled (B2BI_STOP_POSSIBLE_DUPLICATES=1) 
and a fail-over occurs with many entries in the queues, all entries are tagged as possible duplicates. 
If fail-over occurs when there is a peak of messages, then all will be duplicates which must be 
analyzed by the user. (to see if they are true possible duplicates or just false duplicates) The number 
of real duplicates is typically lower than the number of possible duplicates because real duplicates 
occur only for the messages that are in transactions in the HME and TG.

Duplicates and synchpoints


All of these duplicate-related considerations  are applicable to sequential activities that contain only 
one stage. If the sequential activity contains more than one stage, the input and the output point of 
the activity is the first and the last stage. When a fail-over or resend takes place, the message travels 
through all stages again. You cannot select the stage in which the message is to be started. The 
integration engine generates a synchpoint on the entire sequential activity, not on any of the 
intermediate stages.

B2Bi  2.1 Operations Guide  453


21  Additional B2Bi operations tasks

Naming conventions
To be reused easily, B2Bi objects should respect the following naming conventions:
 l To make object names easier to read, use "mixed case" notation and an underscore "_"
 l Start most object names with an upper case "object type" prefix followed by an underscore "_" 
and then use lower-case characters, separating words with an underscore "_"
 l All applications, communities, and partners can be any kind of business or IT entity
 l To make the entity type clearly visible, start these object names  with a one-character prefix (a, c, 
p)
 l Start all types of Pickups (<x>P) and Deliveries (<x>D)  with a two-character "object type" 
prefix and end them with a "P" or a "D"

System-level object- naming conventions


Review the following conventions and examples:

Object Naming conventions

Applications [application name]

Application Pickups AP_[protocol]_[application name](_xy)
 l Example: AP_fs_cLSON_M3
 o Type: File system

Application Deliveries AD_[protocol]_[application name](_xy)
 l Example: AD_FS_cLSON_M3
 o Type: File system
 l Example: AD_ftp_cLSON_M3
 o Type: FTP

Metadata Profile MDP_[C|A|P]_<type>_[criteria(s)=value(s)]
 l Example: MDP_A_mig_[DocumentType=MIG1]
 l Manage metadata profiles

Service – Metadata  SMP_[C|A|P]_[action]
Processing  l Example: SMP_A_t_CopyMessage_LSN
 o Type: Metadata

454  Operations Guide B2Bi  2.1


Naming conventions

Object Naming conventions

Service – Partner Processing SPP_[P|A]_[format]_[srcDocType]_[formatVersion]_to_
[dstDocType]_(xy)
 l Example: SPP_A_4010_862_to_CopyMessage_LSON

Component - Custom  CUD_[delivery type]
Delivery  l Example: CUD_DeliverToApplicationX
 o Type: Custom Delivery
 l Component: B2BX Application/B2Bi Application X Delivery

Component - Detector DET_[action]
 l DET_[format][_subFormat/type] _<sequence ID>_[_
partner/flow][_variant]
 l Example: DET_EMB_M2
 o Type: Detector
 l Component: 
MAPSERVICE.B2BiEMBDETECTOR.B2BiIDetector_M3

Component - Document DOC_
 l Example: DOC_AMTrixMigration_Override

 o Type: Document
 l B2BX Application/AMTrixMigration_OR

Component - Enveloper ENV_[format][_subFormat/type][_variant]
 l Example: ENV_EBM_XML
 o Type: Enveloper
 o Component: 
MAPSERVICE.B2BiEBMEnveloper.B2BiEnveloper_M3

Component - Map MAP_[srcFormat] _[srcDocType] --> [dstFormat][_
subFormat/type] [_variant]
 l Example: MAP_4010_862_to_EBMXML
 o Type: Map
 o Component: MAPSERVICE.DEMO.Edi2XML_004010_862

B2Bi  2.1 Operations Guide  455


21  Additional B2Bi operations tasks

Object Naming conventions

Component - Post  PEN_[action]
Enveloping  l Example: PEN_MPDP_Override
 o Type: Post enveloping
 o Component: B2BX Application/MPDP_ORDetection

Component - Post Transfer  PTF_[action]
Failed

Component - Post Transfer  PTS_[action]
Success

Connection CON_[type]_[name]

Community-level object naming conventions


Review the following:

Object Naming conventions

Community [community name]

Community Routing ID Routing IDs are generated automatically for Messaging IDs. If created 
manually, use the following pattern:
 l CRID_[community name]
 l + others automatically inherited from Messaging Profiles

Trading Pickup &  TP_[protocol]_[community name](_xy)
delivery exchange

Partner-level object conventions


Object Naming conventions

Partner [partner name]

Partner RoutingID PA_[partner name]
 l + others automatically inherited from Messaging  
Profiles

456  Operations Guide B2Bi  2.1


Naming conventions

Object Naming conventions

Partner Messaging ID Standard EDI identifiers + custom identifiers

Partner Delivery PD_[protocol]_[partner name](_xy)

Inbound Agreement and Outbound  IA_[name] / OA_[name]
agreement  l Example: IA_TESTAGREEMENT
 l Example: OA_TESTAGREEMENT2

Document Agreement (DA) DA_[docType]
 l Example: DA_ORDERS

Document Agreement Attributes Any pair of Tag | Value
 l for setting GI attributes use prefix “B2BXGISend_“
 l for accessing AMTrix “agreement parameters” use 
prefix “B2BIDOC_“

B2Bi  2.1 Operations Guide  457


21  Additional B2Bi operations tasks

Manage B2Bi purges


This chapter provides procedures for purging the B2Bi database.

Configure automated trading engine purge on page 458

Configure event purge on page 459

Purge trading engine manually on page 459

Purge integration engine manually on page 461

Configure automated trading engine purge


You can configure the trading engine to delete unwanted database records and files in the backup 
directory based on the age of the records and files.

To configure automatic purging:

 1.  In the B2Bi user interface, from the menu bar select Trading configuration > Manage


trading configuration to open the Communities page. 
 2.  From list of tasks, select Configure purge dates for trading engine messages.
 3.  Select an option:

 l Delete messages on their purge dates


By default, the trading engine is set to delete database records and backup files after 
they have been in the system for 45 days. Use the years / months / days fields to change 
the age settings. The system checks every 15 minutes to delete records and documents 
that have reached their purge dates.
If you change the purge interval, the new interval affects only messages processed after 
the change. The purge dates of messages processed before the change remain the 
same. But you can use another tool to change purge dates retroactively, to synchronize 
with a new purge interval. See Purge trading engine manually on page 459.
Only database records and messages in a final state are deleted. A final state is when no 
more processing action is pending. Final states are reported in Message Tracker  as: 
Delivered, Failed and Resubmitted.
 l Turn off purging, but continue setting purge dates
You can choose to turn off purging of database records and backup files. This is not 
recommended unless you have requirements for maintaining database records and 
backup files indefinitely.
 4.  Click Save changes.

Notes:

458  Operations Guide B2Bi  2.1


Manage B2Bi purges

If you use a database other than Oracle, an event such as the following is written to the event log file 
when a message is deleted:

2005/10/31 08:06:08.812 High


Administration.Persistence.MessagesPurgedMessage Deleted(CoreId
(1130771141162.903@HOSTNAME))

With Oracle, events are handled with a stored procedure, and events such as this are not written to 
the log.

We recommend setting the age for deleting messages identical to the age for deleting message-
related events. For more information, see Configure event purge on page 459.

Configure event purge


You can configure the trading engine to delete unwanted database records for message-related 
events based on the age of the records.

 1.  In the B2Bi user interface, from the menu bar select  Trading configuration > Manage


trading configuration  to open the Communities page.
 2.  In the list of tasks, click Configure purge dates for events. 
 3.  Select to either enable or disable event purges.
 4.  If you enable event purges, either accept the displayed interval or specify a new purge interval 
(frequency of purges).

The default configuration is to delete database records for message-related events after 45 
days. The system checks every 15 minutes to delete events that have reached the age threshold.
We recommend setting the age for deleting message-related events identical to the age for 
deleting trading engine messages. For more information, see Configure automated trading 
engine purge on page 458.
 5.  Click Save changes.

Purge trading engine manually


Use the messagePurgeTool to delete all database records and files in the backup directory at 
once. This command-line utility is located in <trading engine install directory>\tools, 
and must be run from that directory. 

This tool has special options for use in DB2 environments. See parameter descriptions below.

Caution Make sure the trading engine server is turned off before using messagePurgeTool. This 
includes servers on all machines if you have a cluster environment. 

B2Bi  2.1 Operations Guide  459


21  Additional B2Bi operations tasks

Parameters
Run messagePurgeTool with one of the following parameters. You can only use one parameter at 
a time.

deleteAll

Deletes all records in the database and related backup files regardless of age or state. 
Depending on the volume of records in the database and backup files, the utility may have 
to run a while to delete all.

Using with DB2 databases:

For DB2 database environments only, this parameter can be run with the -noLog option.   
Use the –noLog option to disable transaction logging in DB2. If you do not use the -noLog 
option, transaction logging remains enabled. 

In a single-host DB2 environment, the only impact of –noLog is to reduce the log space 
used on the DB2 system.

Warning: Do not use the -noLog option in clustered DB2 implementations. The 
transaction log is needed to maintain the synchronization of clustered databases.

deleteAllSkipFiles

Deletes all records in the database, but does not delete backup files. If you have a large 
number of records, this option works faster than the deleteAll option. However, if you use 
it, you must manually delete backup files. For example, by deleting the backup directory.

Using with DB2 databases:

For DB2 database environments only, this parameter can be run with the -noLog option.   
Use the –noLog option to disable transaction logging in DB2. If you do not use the -noLog 
option, transaction logging remains enabled. 

In a single-host DB2 environment, the only impact of –noLog is to reduce the log space 
used on the DB2 system.

Warning: Do not use the -noLog option in clustered DB2 implementations. The 
transaction log is needed to maintain the synchronization of clustered databases.

resetMessages

Changes the purge dates of records in the database and of documents in the back-up 
directory. When messages are processed, the trading engine assigns future purge dates, 
based on the age interval set on the purge configuration page in the user interface. If you 
change the age interval, you can use the resetMessages option to change purge dates of 
existing records and documents in line with the changed interval.

For example, if the interval is 45 days, the system sets the purge date for messages 
processed today as the date 45 days in the future. On day 44, you change the interval to 
90 days and then run the resetMessages option. The system re-calculates the purge dates 

460  Operations Guide B2Bi  2.1


Manage B2Bi purges

of existing messages as 90 days in the future of the messages’ origination dates. This 
means on day 44, the purge date is set ahead 46 additional days, for a total of 90 days 
before purging.

The utility may take a while to run with this option if there are a large number of records to 
reset. See Configure automated trading engine purge on page 458. 

Example
To delete all records in the database and all related backup files, run the following command:

messagePurgeTool -deleteAll

Event logging
Events related to running the messagePurgeTool are written to the messagePurgeTool.log file 
in the <trading engine install directory>/logs directory.

Purge integration engine manually


In exceptional cases, you may need to clean out the integration engine completely. 

The following procedure shows the UNIX commands. Equivalent commands are available for 
Windows.

 1.  Open a terminal session.
 2.  Navigate to <B2BI_install_directory>\Integrator.
 3.  Run the command:
profile

 4.  Navigate to <B2BI_install_directory>\Integrator\solutions\4edi\pgm.
 5.  Run the command:
r4edi b2bi_clean.x4

 6.  The program asks you to stop the integrator service.
 7.  Open a second terminal session.
 8.  Navigate to <B2Bi_Install_directory>\Administration\bin.
 9.  Run the command:
Admin_Integrator stop

 10.  Return to the first terminal session and confirm that the integration engine has been stopped by 
pressing Enter.
 11.  Close the first terminal session.
 12.  Return to the second terminal session and run the command:

B2Bi  2.1 Operations Guide  461


21  Additional B2Bi operations tasks

Admin_Integrator start

 13.  Close the second terminal session.

Caution: Do not  use the command xib_clean.x4 (located in <B2BI_install_
directory>\Integrator\4edi\pgm). This program wipes out all deployed maps and creates an 
empty non-B2Bi-compatible dataset!

462  Operations Guide B2Bi  2.1


Manage licenses and keys

Manage licenses and keys


Depending on your B2Bi Server installation, you require either two or three license keys:

 l Trading engine (Interchange)
 l Integration engine (Integrator)
 l Axway Database (optional)

The license key for the trading engine is an XML file. The license keys for the integration engine and 
the Axway Database are a more traditional keys with a number of license bits. 

Typically, a license is valid for one or more years. At the end of the validity period, you must update 
or replace expired keys. In some cases you may need to replace a key in order to change your license 
to enable more or less B2Bi functionality. 

Update the trading engine license file


You can replace the B2Bi trading engine license key directly on the file system by replacing the old 
license with the new one.

 1.  Stop the B2Bi trading engine. For the stop procedure, see Start and stop B2Bi on page 331. 
 2.  Go to the directory [B2Bi installation name]/Interchange/conf and locate the file 
license.xml.
 3.  Rename the old license file from license.xml to license.old
 4.  Copy the new license into the directory, and rename the new file license.xml.
 5.  Start the engine. For the start procedure, see Start and stop B2Bi on page 331. 

Update the integration engine license key


You can replace the B2Bi integration engine either directly on the file system, or through the 
installer. You can use the installer either in the graphical or console mode.

File system replacement procedure


 1.  Stop B2Bi. For the stop procedure, see Start and stop B2Bi on page 331. 
 2.  Go to the directory [B2Bi installation name]/Integrator/etc and locate the file 
license.dat.
 3.  Open the license.dat file in a text editor and replace the old license number and key details 
with the new information.
 4.  Start B2Bi. For the start procedure, see Start and stop B2Bi on page 331.

B2Bi  2.1 Operations Guide  463


21  Additional B2Bi operations tasks

Installer graphic mode replacement procedure


 1.  Stop B2Bi. For the stop procedure, see Start and stop B2Bi on page 331. (The installer stops the 
product if needed, but it is better to control this as user).
 2.  Go to the B2Bi installation root directory, [B2Bi installation name]\.
 3.  Run the command configure.sh (or run ./configure.sh –m gui if you started from a 
console window)
 4.  Click Next.
 5.  From the product list, pick Axway Integrator only.
 6.  A warning message reminds you to stop all products that you are configuring. To confirm, click 
OK.
 7.  In the next screen provide updated license number and key details. 
 8.  Click Next
 9.  Make no changes in the next pages. The last screen provides a summary of the changes. Click 
Configure.
 10.  Start B2Bi. For the start procedure, see Start and stop B2Bi on page 331.

Installer console mode replacement procedure


 1.  Stop B2Bi. For the stop procedure, see Start and stop B2Bi on page 331. (The installer stops the 
product if needed, but it is better to control this as user).
 2.  Go to the B2Bi installation root directory, [B2Bi installation name]\.
 3.  Run the command ./configure.sh – m console.
 4.  Press Enter (Next).
 5.  From the product list, select Axway Integrator only. Clear the selections for B2Bi and B2Bi 
Core Server.
 6.  Press Enter (Next).
 7.  A warning message reminds you to stop all products that you are configuring. To confirm, press 
Enter.
 8.  In the next screen, provide updated license number and key details. After providing the 
appropriate values, press Next.
 9.  Make no changes the following screens. The last screen provides a summary of your changes. It 
the summary is correct, press Enter (Next).
 10.  Start B2Bi. For the start procedure, see Start and stop B2Bi on page 331.

464  Operations Guide B2Bi  2.1


Manage licenses and keys

Update the Axway Database license key


You can replace the Axway Database license key directly on the file system by replacing the old 
license with the new one.

 1.  Stop all B2Bi servers. See Stop B2Bi servers individually on page 336.
 2.  Go to [B2Bi installation name]/Axway_Database/license.
 3.  Open the license.key file in a text editor, and replace the old license details with the new 
information.
 4.  Start B2Bi. See Start B2Bi servers individually on page 333.

B2Bi  2.1 Operations Guide  465


21  Additional B2Bi operations tasks

Manage the system throttle

About the system throttle


The B2Bi system throttle prevents JVM node hard-crashes due to overload. The system throttle does 
not prevent processing, but rather limits the consumption of new work. The system throttle operates 
automatically. Throttle behavior is normally applied separately for each node of the cluster.  You can 
also engage the throttle manually on all nodes of the cluster enable the system to finish processing 
all active messages. The occasional automatic engagement of a system throttle is good for the B2Bi 
trading engine, and is a normal operating experience. When the system throttle engages, it does not 
mean that the JVM is not working at all, rather, it means that the JVM is working on tasks already in 
queue, until sufficient headroom is regained to accept new tasks.

The system throttle can be engaged for different reasons:

 l Intentionally engaged at startup (via tuning.properties file setting).
 l Intentionally engaged during runtime (via a UI control button).
 l The trading engine Task Scheduler load exceeds the default limit of 150.
 l The JVM (trading engine or control node) experiences an OutOfMemory exception.
 l The file system takes too long to write a test file to the backup directory. In rare instances, Java 
Garbage Collection by the control node or trading engine node can require so much time to 
complete that the timer for the file system health check (when invoked just prior to the onset of 
a Garbage Collection event) exceeds the 15 second default limit, due to activity suspension until 
the Garbage Collection completes). 

When a system throttle is engaged, consumption of new inbound work is halted. The trading engine 
stops polling and returns a 503 error to your trading partners when they try to connect.

The trading engine then re-prioritizes all traffic based upon these rules:

 l New outbound files are consumed, packaged, and sent before any other work
 l Inbound connections are then opened and inbound messages are processed.
 l Failed outbound/inbound messages are then processed.

When the system throttle is invoked you may receive a log entry similar to the following 
(TaskScheduler load example):

WARN [SystemThrottle] (SystemThrottle.run:213) - Engaging the


SystemThrottle, TaskScheduler load is too large (limit = 150, current =
158)

466  Operations Guide B2Bi  2.1


Manage the system throttle

Message Tracker dependency


When system throttling is engaged, Message Tracker resend and reprocess attempts will fail. Resend 
and reprocess attempts will eventually generate "max attempt exceeded" errors.

More about node startup behavior


There is an additional trading engine setting  that controls the global behavior of B2Bi when no 
integration engine nodes are started. This setting is controlled through the 
b2bi.integrator.transferqueue.max.size setting on the System Properties page of the UI. 
It is configured globally here, and applied separately to each node based on the load of each node.

When a B2Bi trading engine node sees that all the connected integration engine nodes are not 
started, it queues messages, and places them in scheduled production until it reaches the  
b2bi.integrator.transferqueue.max.size property value (default = 2000). When that 
threshold is reached, B2Bi engages the system throttle on that specific trading engine node. As soon 
as at least one integration engine starts (if the system throttle was engaged only because the transfer 
queue threshold was reached) B2Bi disengages the system throttle and un-queues messages by 
sending them to the integration engine.  This default threshold  o f 2000 messages, is valid per 
trading engine node, so that each trading engine node can queue up to 2000 messages before it 
engages the system throttle.

System throttle management


Note System throttle settings should be changed only as part of a comprehensive tuning effort, 
best conducted with the help of Axway Professional Services.

You manage general system throttle settings from the tuning.properties file. These settings are 
described in the following paragraphs. Additionally, you can manually engage/disengage system 
throttling at runtime in the UI. For information on UI system throttle controls, see the "Manage B2Bi 
nodes" chapter of the B2Bi Administrator Guide.

The tuning.properties file


You manage the general system throttle behavior from the tuning.properties file, located in 
<Interchange_install_directory>/conf. 

The properties in this file are applied only to the node where the tuning.properties file is 
located. You must set the property for each node of a cluster by modifying the file for each node.

By default, tuning.properties is empty. This indicates that all of its possible entries are 
operating at their default values. 

This chapter describes how to use the two properties related to system throttling that you can set in 
this file:

B2Bi  2.1 Operations Guide  467


21  Additional B2Bi operations tasks

 l systemThrottle.pausePickups – Default=false
 l systemThrottle.maximumTaskQueueSize – Default=150

Force throttling on startup


In some cases, you may want to force system throttling on startup. This is useful, for example, if you 
want to empty the system of messages waiting to be processed.

To to force startup in throttled mode:

 1.  Go to <Interchange_install_directory>/conf and open the tuning.properties file 
in a text editor.
 2.  Add the property:
systemThrottle.pausePickups  
 3.  Set the value of the property to "true":
systemThrottle.pausePickups=true  
 4.  Save the file.
 5.  Restart B2Bi.

When the system restarts, it will operate in throttled mode. This status will be displayed for trading 
engine notes on the System Management page of the UI. You can temporarily override throttling by 
clicking Restart pickups for all trading engine nodes. When you restart B2Bi, it will restart in 
throttled mode until you modify this property.

Modify the Task Scheduler load limit


By default, when the trading engine Task Scheduler load exceeds 150, the system throttle is 
engaged. You can modify this value. While there is no real limit to this value, there are practical 
limits due to environmental factors (physical memory size, server hardware, network speed, etc.).

We recommend that you change this property value in increments of 25. 

To change the Task Scheduler load limit:

 1.  Go to <Interchange_install_directory>/conf and open the tuning.properties file 
in a text editor.
 2.  Add the property:
systemThrottle.maximumTaskQueueSize  
 3.  Set the value of the property to the desired value, for example:
systemThrottle.maximumTaskQueueSize=175  
 4.  Save the file.
 5.  Restart B2Bi.

When the system restarts, it will engage throttling at the new load limit threshold.

468  Operations Guide B2Bi  2.1


Modify HTTP upload file size limit

Modify HTTP upload file size limit


The default limit for HTTP file uploads is 50 MB. It is possible to modify this limit. To do this:

 1.  Go to <Interchange_install_directory>/webapps/ui/WEB-INF/.
 2.  Open the file web.xml in a text editor.
 3.  Modify the value of the following lines, resetting the value as required:

<!--
Specify
maximum
allowed
size of
the
upload.
Default
s to 50
Mb.
-->
<init-param>
<param-
name>up
load-
max-
size</p
aram-
name>
<param-
value>5
2428800
</para
m-
value>
</init-param>

 4.  Save the file.
 5.  Restart B2Bi for the change to take effect.

Note: This value is not conserved on upgrades. If you upgrade your B2Bi installation you will need 
to reset this value in the upgraded file.

B2Bi  2.1 Operations Guide  469


21  Additional B2Bi operations tasks

Set the log file archiving schedule


During B2Bi installation, you select a directory to use for storing common B2Bi data. B2Bi uses this 
directory to save message-processing log files and message payloads. These directories are:

 l For log files – [B2Bi_common_directory]/data/logger/
 l For message payloads – [B2Bi_common_directory]/data/filer/

When B2Bi first starts, it logs processing-event data to an active log file named a0000000. Active 
logs have a size limit of 10 Mb. If  a0000000 contains active file entries when it reaches its maximum 
size limit of 10 Mb, B2Bi creates another active log file named a0000001. 

When all entries in a0000000 reach the “inactive” state, which means that the processing is 
complete, B2Bi renames the file i0000000. 

In this manner, B2Bi logs continuously to active log file a000000x, and generates inactive logs in 
the pattern:

i0000000

i0000001

i0000002

i0000003

i000000n

...

As inactive log files are generated, the log directory becomes larger and larger in size as each new 
active or inactive file is added. If B2Bi logged indefinitely with no control on log file life, the log 
directory would become very large and eventually case data storage issues.

The rate at which your log directory grows depends on the amount of file exchange activity and on 
the amount of data you elect to log on our exchanges.

By default, the archiver deletes inactive files. It behaves as a purging tool. You can use the log file 
archiving schedule page to control the volume of inactive log files that are saved in the B2Bi 
directories by setting the purge schedule. You may want to set or modify the archiving schedule if 
you find that your inactive log files are occupying too much  d isk space.

The archiver behavior is controlled by a script. It is possible to modify this script to enable the saving 
of inactive log files for retrieval. 

Note on archive directory paths


Currently B2Bi does not support the use of double slashes (// for Linux or \\ for Windows) in 
environment variable paths for the support of log archiving. Log archiving depends on the $CORE_
DATA environment variable. If the value of this variable includes double slashes, an error message is 

470  Operations Guide B2Bi  2.1


Set the log file archiving schedule

generated to the trace log and log archives are not generated.

Set log file archiving


After you install B2Bi and the B2Bi client, you can use the System Profile Manager tool to set the 
logger archiving behavior and to test the logger script. 

For details of how to use the System Profile Manager to manage logger archiving, see Use System 
Profile Manager on page 214.

B2Bi  2.1 Operations Guide  471


21  Additional B2Bi operations tasks

Set up Message Tracker


When B2Bi handles and processes messages, it creates database records of message trading events 
and it stores a certain number of files in the backup directory. B2Bi users can use the Message 
Tracker tool in the B2Bi user interface to monitor database records of traded messages.

Enable document backups


To provide full use of Message Tracker, you must enable document backups.  By default, document 
backups are enabled. If you need to enable this setting:

 1.  In the B2Bi user interface,  select Trading Configuration > Manage Trading


Configuration to open the Communities page.
 2.  From the list of tasks at the bottom of the page, select Configure the global backup
settings to open the Global backup configuration page.
 3.  Select or clear the option Message handler backs up messages.
 4.  Click Save changes.

Configure Message Tracker


To configure the general behavior and appearance of Message Tracker to B2Bi users:

 1.  In the B2Bi user interface,  select Message Tracker > Configure global message tracker


settings to open the Global message tracker settings page.
 2.  Complete the fields as required. See field descriptions below.
 3.  Click Save changes.

Default menu items


The options in this section control whether system-defined default searches are available for B2Bi 
users to select under Message tracker > Message searches. If you select any of these options, 
the searches become available for all users. Although you can choose whether to make these 
available universally, you cannot change the search conditions of system-defined default searches.

 l All messages – Default search finds all messages. If the database has a large volume of 


records, you may want to turn off this search.
 l All messages-Last 1 Hour – Default search finds all messages traded in the last hour.
 l All messages-Last 2 Hours – Default search finds all messages traded in the last two hours.
 l All messages-Last 6 Hours – Default search finds all messages traded in the last six hours.
 l All messages-Last 24 Hours – Default search finds all messages traded in the last 24 hours.

472  Operations Guide B2Bi  2.1


Set up Message Tracker

 l Failed messages-last days – Default search finds all messages with a status of failed within a 


default number days. The default number of days is the value of the Number of days for default 
searches field on this page.
 l Negative response-last days – This default search finds all messages that received a negative 
response from a partner within a default number days. The default number of days is the value of 
the Number of days for default searches field on this page.

Query restrictions
 l Number of days for default searches – The value in this field is the number of days that 
appears in the search option Within the last [n] days under the date area on the custom 
search panel of the  Message Tracker page.
This also is the value for a search condition on the message attributes tab of the message details 
page. The value applies to the option Restrict search to messages that originated within
the last [n] days at the bottom of the tab. 
Additionally, if you click Find without specifying search conditions on the  Message Tracker 
search page, the search finds all messages traded within this number of days. 
This field’s value also sets the number of days for the default searches Failed messages and 
Negative responses on the Message tracker menu on the top toolbar.
 l Maximum search results allowed to delete – The maximum number of search results users 
can delete with a single delete action on the  Message Tracker page. For example, if more than 
the maximum number of search results are returned and you try to delete all results, the trading 
engine does not delete any of the messages. Instead you are prompted to define a search that 
returns fewer records than the maximum allowed to delete. Limiting the number of search results 
that can be deleted at once helps maintain database performance.
 l Default number of search results to return – The number in this field is the default value 
of the Maximum # of search results field on the custom search panel of the  Message Tracker 
page.
 l Maximum number of search results to return – The number in this field is the highest 
allowed value of the Maximum # of search results field on the custom search panel of the  
Message Tracker page. If you are performing a search and enter a number in the Maximum # of 
search results field that is larger than this value, an error message displays.
 l Default days for before or after date searches – The number in this field is the default 
value for the on a maximum [n] days period field for the After and Before option under date 
searches on the custom search panel of the  Message Tracker page.

Peer Network Tracker query restrictions


This section displays only if your user license supports the peer network, which enables Peer 
Network Message Tracker.

B2Bi  2.1 Operations Guide  473


21  Additional B2Bi operations tasks

 l Default number of search results to return – The number in this field is the default value 


for the Maximum # of peer search results field under Peer Network Tracker on the custom 
search panel of the Message Tracker page.
 l Maximum number of search results to return – The number in this field is the largest 
allowed value a user can enter in the Maximum # of peer search results field under Peer 
Network Tracker on the custom search panel of the Message Tracker page. Be careful when 
changing this value. Setting a large number may slow Peer Tracker performance. 

Collect message attributes


 l Collect attributes for use in message detail pop-up windows – Select to have the 
trading engine collect attributes from traded messages. These attributes are available to display 
in pop-up windows accessible on the Message Tracker search results page. Enabling attribute 
collecting is recommended. However, if you experience slower Message Tracker performance, 
you may want to disable attribute collecting to determine whether this has an effect.
 l Maximum number of attributes to collect – The maximum number of attributes the trading 
engine can collect for possible use in the pop-up windows. If the number of collected attributes 
is at or near the maximum, you can increase the number in this field or go to the attribute page 
and delete some attributes to make room for new ones. To open the page select Message
tracker > Select attributes for pop-up windows.

Using Message Tracker


Users who have configured message flows between exchange endpoints, and who need to monitor 
message exchanges, use Message Tracker to create and launch message searches in the B2Bi user 
interface. For details of how to generate searches and use search results, see the B2Bi Administrator 
Guide. 

474  Operations Guide B2Bi  2.1

You might also like