In Sterling B2B Integrator
5,2.5 or higher, you can configure mailbox user exits.
Perform the following tasks to configure user exit points for a mailbox service. The interfaces
are provided through separate files present in the
install_dir/install/userexit/jars
(install_dir\install\userexit\jars for Windows) directory.
For more information on specific Mailbox services and their java method implementation details,
see the Javadocs provided in the install_dir/userexit/docs
directory.
-
Write the code to implement the interface for the specific point.
-
Add the custom code classes to a .jar file.
-
Add the path of the .jar file to the dynamicclasspath.cfg
file in the
install_dir/install/properties
(install_dir\install\properties for
Windows) directory.
-
Restart Sterling B2B Integrator.
-
Open the install_dir/properties/userexit
(install_dir\properties\userexit for Windows) directory and
locate MailboxUserExits.xml file.
-
Edit the MailboxUserExits.xml file and add an entry for each
implementation as shown. The user exits are run in the same order as they appear.
<bean id="com.sterlingcommerce.woodstock.userexit.services.mailbox.interfaces.IMailboxUserExit_OnMessageAdd" class="com.sterlingcommerce.woodstock.userexit.srvices.mailbox.MailboxUserExit">
<property name="implementations">
<list>
<value>com.sterlingcommerce.woodstock.userexit.services.mailbox.MailboxUserExit</value>
<value>implementation2</value>
</list>
</property>
</bean>
-
Remove all values to deactivate the user exit points.
CAUTION:
The implementation
"com.sterlingcommerce.woodstock.userexit.services.mailbox.MailboxUserExit" should not be removed
before first reviewing APAR IC91071.
-
Restart the mailbox service to apply the changes.