Running a custom startup script in CentOS / RHEL 7

Hi All,

During my work at Adroitlogic, in one of my tasks I had to start & configure a set of EC2 machines which included our B2B AS2 integration solution AS2Station. This was a recurring task and yes you guessed right it was boring. The configuration steps in summary were follows.

  • Extracting the private IP of eth0 interface
  • Adding few iptable rules with the extracted private IP
  • Mounting a ramdisk (which is used by the UltraESB filecache)
  • Starting Apache Zookeeper service (which is the leadership election and coordination service used by UltraESB)
  • Starting UltraESB service
  • Starting AppServer service (which is AS2Station front-end)

My good friend Janaka, suggested me that I should try to use an startup script to get this done. Turns out it was pretty easy. Let me share the steps with you all as it might be useful to some of you as well.

Continue reading “Running a custom startup script in CentOS / RHEL 7”

as2 protocol for b2b integration

AS2 Protocol for Business Data Interchange via HTTP – Part 1 – Overview

The Applicability Statement 2 or AS2 specification defines a mechanism for the secure and reliable transfer of structured business data over the Internet.

AS2 Message Payloads

The AS2 protocol itself does not dictate any limits on the payload of an AS2 message. However. typical AS2 payloads are structured business documents such as Invoices, Purchase Orders etc. and thus AS2 systems facilitate the Electronic Data Interchange or EDI. Some of the major sets of EDI standards are:

  • The UN-recommended UN/EDIFACT is the only international standard and is predominant outside of North America.
  • The US standard ANSI ASC X12 (X12) is predominant in North America.
  • The TRADACOMS standard developed by the ANA (Article Numbering Association now known as GS1) is predominant in the UK retail industry.
  • The ODETTE standard used within the European automotive industry

AS2 messages can carry non-EDI payloads such as XML, CSV, Fixed Width, Text, or payloads of other standards or proprietary formats, including any binary files.

Continue reading “AS2 Protocol for Business Data Interchange via HTTP – Part 1 – Overview”