-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from OpenAS2/dev
Release 2.1.0
- Loading branch information
Showing
49 changed files
with
1,668 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
#!/bin/bash | ||
|
||
### BEGIN INIT INFO | ||
# Provides: openas2.d | ||
# Required-Start: | ||
# Required-Stop: | ||
# Default-Start: 2 3 4 5 | ||
# Default-Stop: 0 1 6 | ||
# Short-Description: Startup script to launch OpenAS2 appliction as a daemon | ||
# Description: This script can be used in any NIX based system that implements the init.d mechanism | ||
# The EXECUTABLE variable below must be set to point to the OpenAS2 startup script | ||
# See the OpenAS2HowTo.pdf for details on configuration checks for this mode of running OpenAS2 | ||
### END INIT INFO | ||
|
||
SERVICE_NAME=OpenAS2 | ||
EXECUTABLE=/opt/OpenAS2/bin/start-openas2.sh | ||
THIS_SCRIPT_NAME=`basename $0` | ||
THIS_SCRIPT_EXEC=$0 | ||
if [ "$THIS_SCRIPT_NAME" = "$0" ]; then | ||
THIS_SCRIPT_EXEC="/etc/init.d/$0" | ||
fi | ||
PID=$(ps -ef | grep java | grep org.openas2.app.OpenAS2Server | awk '{print $2}') | ||
|
||
case "$1" in | ||
start) | ||
echo "Starting $SERVICE_NAME ..." | ||
if [ -z $PID ]; then | ||
export OPENAS2_AS_DAEMON=true | ||
$EXECUTABLE | ||
RETVAL="$?" | ||
if [ "$RETVAL" = 0 ]; then | ||
echo "$SERVICE_NAME started ..." | ||
exit 0 | ||
else | ||
echo "ERROR $SERVICE_NAME could not be started. Review logs" | ||
exit 1 | ||
fi | ||
else | ||
echo "$SERVICE_NAME is already running ..." | ||
fi | ||
;; | ||
stop|kill) | ||
if [ ! -z $PID ]; then | ||
echo "Attempting to stop $SERVICE_NAME..." | ||
kill $PID | ||
if [ "$?" = 0 ]; then | ||
echo "$SERVICE_NAME terminated ..." | ||
exit 0 | ||
else | ||
echo "ERROR: $SERVICE_NAME failed to terminate. try force-stop" | ||
exit 1 | ||
fi | ||
else | ||
echo "$SERVICE_NAME is not running ..." | ||
exit 0 | ||
fi | ||
;; | ||
force-stop) | ||
if [ ! -z $PID ]; then | ||
echo "Attempting to force termination of $SERVICE_NAME..." | ||
kill -9 $PID | ||
if [ "$?" = 0 ]; then | ||
echo "$SERVICE_NAME terminated ..." | ||
exit 0 | ||
else | ||
echo "ERROR: $SERVICE_NAME failed to terminate. " | ||
exit 1 | ||
fi | ||
else | ||
echo "$SERVICE_NAME is not running ..." | ||
exit 0 | ||
fi | ||
;; | ||
status) | ||
if [ -z $PID ]; then | ||
echo "$SERVICE_NAME is not running" | ||
else | ||
echo "$SERVICE_NAME is running" | ||
fi | ||
;; | ||
force-reload|restart|reload) | ||
$THIS_SCRIPT_EXEC stop | ||
if [ ! -z $PID ]; then | ||
CNT=0 | ||
while ps -p $PID 2>/dev/null; do | ||
sleep 1;CNT=$CNT+1; | ||
CNT=$((CNT+1)); if [ $CNT -ge 5 ]; then break; fi | ||
done | ||
if ps -p $PID 2>/dev/null; then | ||
echo "ERROR: Failed to stop $SERVICE_NAME" | ||
exit 1 | ||
else | ||
PID="" | ||
fi | ||
fi | ||
$THIS_SCRIPT_EXEC start | ||
;; | ||
*) | ||
echo "Usage: $0 {start|stop|restart|reload|force-reload}" | ||
exit 1 | ||
;; | ||
|
||
esac | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
set IGNORECASE TRUE; | ||
DROP TABLE msg_metadata IF EXISTS; | ||
CREATE TABLE msg_metadata ( | ||
ID INTEGER default 0 NOT NULL AUTO_INCREMENT, | ||
MSG_ID LONGVARCHAR NOT NULL, | ||
MDN_ID LONGVARCHAR, | ||
DIRECTION VARCHAR(25) , | ||
IS_RESEND VARCHAR(1) DEFAULT 'N', | ||
RESEND_COUNT INTEGER DEFAULT 0, | ||
SENDER_ID VARCHAR(255) NOT NULL, | ||
RECEIVER_ID VARCHAR(255) NOT NULL, | ||
STATUS VARCHAR(255), | ||
STATE VARCHAR(255), | ||
SIGNATURE_ALGORITHM VARCHAR(255), | ||
ENCRYPTION_ALGORITHM VARCHAR(255), | ||
COMPRESSION VARCHAR(255), | ||
FILE_NAME VARCHAR(255), | ||
CONTENT_TYPE VARCHAR(255), | ||
CONTENT_TRANSFER_ENCODING VARCHAR(255), | ||
MDN_MODE VARCHAR(255), | ||
MDN_RESPONSE LONGVARCHAR, | ||
STATE_MSG LONGVARCHAR, | ||
CREATE_DT TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | ||
UPDATE_DT TIMESTAMP, | ||
|
||
PRIMARY KEY (ID) ); | ||
|
||
ALTER TABLE msg_metadata ADD CONSTRAINT MSG_ID_UNIQUE UNIQUE (MSG_ID); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
<attribute name="content_transfer_encoding" value="8bit"/> | ||
<attribute name="compression_type" value="ZLIB"/> | ||
<attribute name="subject" value="From OpenAS2A to OpenAS2B"/> | ||
<attribute name="mdnsubject" value="Your requested MDN response from $receiver.as2_id$"/> | ||
<attribute name="as2_url" value="http://localhost:10080"/> | ||
<attribute name="as2_mdn_to" value="[email protected]"/> | ||
<!-- <attribute name="as2_receipt_option" value="http://localhost:10080"/> ...for async MDN--> | ||
|
@@ -56,6 +57,10 @@ | |
Example for adding dynamic custom headers to Mime body part where filename is of form XXX-YYY.msg | ||
<attribute name="custom_mime_header_names_from_filename" value="X-CustomRouteId,X-CustomCenter"/> | ||
<attribute name="custom_mime_header_names_regex_on_filename" value="([^-]*)-([^.]*).msg"/> | ||
Example for parsing filename into parameters that can be referenced this is a file name of the form XXXNNNN.edi where X is alphabetic and N are numerics | ||
<attribute name="attribute_names_from_filename" value="P-DynamicParm1,P-DynamicParm2"/> | ||
<attribute name="attribute_values_regex_on_filename" value="([A-Za-z]*)([^.]*).edi"/> | ||
--> | ||
</partnership> | ||
|
||
|
Binary file renamed
BIN
+5.48 MB
Server/dist/OpenAS2Server-2.0.0.zip → Server/dist/OpenAS2Server-2.1.0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.