Skip to content

Commit

Permalink
Merge pull request #296 from assimbly/develop
Browse files Browse the repository at this point in the history
Develop merge 1.7.0 into master
  • Loading branch information
assimbly authored Dec 13, 2019
2 parents ff3f754 + cece724 commit 7d1b86e
Show file tree
Hide file tree
Showing 108 changed files with 1,873 additions and 3,098 deletions.
Binary file added ${activemq.data}/kahadb/db.data
Binary file not shown.
Binary file added ${activemq.data}/kahadb/db.redo
Binary file not shown.
Binary file added ${activemq.data}/kahadb/lock
Binary file not shown.
File renamed without changes.
2 changes: 1 addition & 1 deletion broker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<cluster-user>myUsername</cluster-user>
<cluster-password>myPassword</cluster-password>

<acceptors>
<acceptor name="in-vm">vm://0</acceptor>
<acceptor name="tcp">tcp://127.0.0.1:61616</acceptor>
Expand Down
24 changes: 22 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ buildscript {
classpath "gradle.plugin.com.gorylenko.gradle-git-properties:gradle-git-properties:1.5.2"
//jhipster-needle-gradle-buildscript-dependency - JHipster will add additional gradle build script plugins here
}

}

plugins {
Expand Down Expand Up @@ -44,6 +44,13 @@ apply plugin: 'com.moowork.node'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'eclipse'

configurations.all {
exclude module: 'log4j-slf4j-impl'
resolutionStrategy {
force 'org.apache.activemq:artemis-core-client:2.10.0', 'org.apache.activemq:artemis-broker:2.10.0','org.apache.activemq:artemis-commons:2.10.0','org.apache.activemq:artemis-selector:2.10.0','org.apache.activemq:artemis-journal:2.10.0'
}
}

dependencyManagement {
imports {
mavenBom 'io.github.jhipster:jhipster-dependencies:' + jhipster_dependencies_version
Expand All @@ -54,7 +61,7 @@ dependencyManagement {
defaultTasks 'bootRun'

group = 'org.assimbly.gateway'
version = '1.6.0'
version = '1.7.0'

description = ''

Expand Down Expand Up @@ -159,6 +166,7 @@ liquibase {
configurations {
providedRuntime
compile.exclude module: "spring-boot-starter-tomcat"
//compile.exclude module: "slf4j-log4j12"
}


Expand Down Expand Up @@ -245,6 +253,18 @@ dependencies {
compile "org.springframework.security:spring-security-messaging:5.0.7.RELEASE"
//compile "io.hawt:hawtio-springboot:2.7.0"

compile group: 'org.apache.activemq', name: 'artemis-core-client', version: '2.10.0'
compile group: 'org.apache.activemq', name: 'artemis-commons', version: '2.10.0'
compile group: 'org.apache.activemq', name: 'artemis-server', version: '2.10.0'
compile group: 'org.apache.activemq', name: 'artemis-selector', version: '2.10.0'
compile group: 'org.apache.activemq', name: 'artemis-journal', version: '2.10.0'

//java 9+
compile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.0'
compile group: 'com.sun.xml.bind', name: 'jaxb-core', version: '2.3.0'
compile group: 'com.sun.xml.bind', name: 'jaxb-impl', version: '2.3.0'
compile group: 'javax.activation', name: 'activation', version: '1.1.1'

// end custom dependencies

annotationProcessor "org.mapstruct:mapstruct-processor:${mapstruct_version}"
Expand Down
Binary file added data/bindings/activemq-bindings-1.bindings
Binary file not shown.
Binary file added data/bindings/activemq-bindings-2.bindings
Binary file not shown.
Binary file added data/journal/activemq-data-1.amq
Binary file not shown.
Binary file added data/journal/activemq-data-2.amq
Binary file not shown.
Empty file added data/journal/serverlock.0
Empty file.
Empty file added data/journal/serverlock.1
Empty file.
Empty file added data/journal/serverlock.2
Empty file.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ yarn_version=1.12.3
jhipster_dependencies_version=2.0.29
# The spring-boot version should match the one managed by
# https://mvnrepository.com/artifact/io.github.jhipster/jhipster-dependencies/${jhipster_dependencies_version}
spring_boot_version=2.0.7.RELEASE
spring_boot_version=2.0.9.RELEASE
# The hibernate version should match the one managed by
# https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies/${spring-boot.version} -->
hibernate_version=5.2.17.Final
Expand All @@ -33,7 +33,7 @@ liquibaseTaskPrefix=liquibase
## The setting is particularly useful for tweaking memory settings.
## Default value: -Xmx1024m -XX:MaxPermSize=256m
## un comment the below line to override the daemon defaults
org.gradle.java.home=C:/Program Files/Java/jdk1.8.0_144
org.gradle.java.home=C:/Program Files/Java/jdk1.8.0_191
org.gradle.jvmargs=-Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

## When configured, Gradle will run in incubating parallel mode.
Expand Down
170 changes: 0 additions & 170 deletions gradlew
Original file line number Diff line number Diff line change
@@ -1,170 +0,0 @@
#!/usr/bin/env sh

##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################

# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null

APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

warn () {
echo "$*"
}

die () {
echo
echo "$*"
echo
exit 1
}

# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar

# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi

# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi

# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi

# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`

# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option

if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi

# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")

# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"

# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi

exec "$JAVACMD" "$@"
47 changes: 24 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "gateway",
"version": "1.6.0",
"description": "A message gateway based on Apache camel",
"private": true,
"license": "Apache License 2.0",
"cacheDirectories": [
"node_modules"
],
"name": "gateway",
"version": "1.7.0",
"description": "A message gateway based on Apache camel",
"private": true,
"license": "Apache License 2.0",
"cacheDirectories": [
"node_modules"
],
"dependencies": {
"@angular/common": "7.1.0",
"@angular/compiler": "7.1.0",
Expand All @@ -20,32 +20,32 @@
"@fortawesome/free-regular-svg-icons": "5.5.0",
"@fortawesome/free-solid-svg-icons": "5.5.0",
"@ng-bootstrap/ng-bootstrap": "4.0.0",
"@ng-select/ng-select": "^2.16.3",
"@ng-select/ng-select": "^2.16.3",
"bootstrap": "4.1.3",
"core-js": "2.5.7",
"file-saver": "^1.3.8",
"font-awesome": "4.7.0",
"jquery": "3.2.1",
"file-saver": "^1.3.8",
"font-awesome": "4.7.0",
"jquery": "3.2.1",
"moment": "2.22.2",
"ng-jhipster": "0.5.6",
"ng2-ace-editor": "^0.3.8",
"ngx-bootstrap": "3.1.3",
"ng2-ace-editor": "^0.3.8",
"ngx-bootstrap": "3.1.3",
"ngx-cookie": "2.0.1",
"ngx-infinite-scroll": "6.0.1",
"ngx-webstorage": "2.0.1",
"reflect-metadata": "0.1.12",
"reflect-metadata": "0.1.12",
"rxjs": "6.3.3",
"sockjs-client": "1.4.0",
"swagger-ui": "2.2.10",
"sockjs-client": "1.3.0",
"webstomp-client": "1.2.6",
"tether": "1.4.0",
"xml-js": "^1.6.7",
"yaml-js": "^0.2.3",
"tether": "1.4.0",
"tslib": "1.9.3",
"webstomp-client": "1.2.6",
"xml-js": "^1.6.7",
"yaml-js": "^0.2.3",
"zone.js": "0.8.26"
},
"devDependencies": {
"@angular/cli": "7.0.6",
"@angular/cli": "7.0.7",
"@angular/compiler-cli": "7.1.0",
"@ngtools/webpack": "7.0.6",
"@types/jest": "23.3.9",
Expand Down Expand Up @@ -74,6 +74,7 @@
"mini-css-extract-plugin": "0.4.5",
"moment-locales-webpack-plugin": "1.0.7",
"optimize-css-assets-webpack-plugin": "5.0.1",
"postcss-loader": "3.0.0",
"prettier": "1.15.2",
"reflect-metadata": "0.1.12",
"rimraf": "2.6.2",
Expand All @@ -87,15 +88,15 @@
"tslint-config-prettier": "1.16.0",
"tslint-loader": "3.6.0",
"typescript": "3.1.6",
"postcss-loader": "3.0.0",
"webpack": "4.26.0",
"webpack-cli": "3.1.2",
"webpack-dev-server": "3.1.10",
"webpack-merge": "4.1.4",
"webpack-notifier": "1.7.0",
"webpack-visualizer-plugin": "0.1.11",
"workbox-webpack-plugin": "3.6.3",
"write-file-webpack-plugin": "4.5.0"
"write-file-webpack-plugin": "4.5.0",
"url-loader": "2.2.0"
},
"engines": {
"node": ">=8.9.0",
Expand Down
22 changes: 17 additions & 5 deletions src/main/java/org/assimbly/gateway/GatewayApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import javax.annotation.PostConstruct;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Collection;

Expand Down Expand Up @@ -82,19 +83,30 @@ private static void logApplicationStartup(Environment env) {
} catch (UnknownHostException e) {
log.warn("The host name could not be determined, using `localhost` as fallback");
}


String javaVersion = Runtime.class.getPackage().getImplementationVersion();
String javaWorkingDirectory = Paths.get(".").toAbsolutePath().normalize().toString();

log.info("\n----------------------------------------------------------\n\t" +
"Application '{}' is running! Access URLs:\n\t" +
"Local: \t\t{}://localhost:{}{}\n\t" +
"External: \t{}://{}:{}{}\n\t" +
"Profile(s): \t{}\n----------------------------------------------------------",
env.getProperty("spring.application.name"),
"Application 'Assimbly {}' is running! \n\n\t" +
"Local URL: \t\t{}://localhost:{}{}\n\t" +
"External URL: \t\t{}://{}:{}{}\n\t" +
"Application Version: \t{}\n\t" +
"Java Version: \t\t{}\n\t" +
"Java WorkingDir: \t{}\n\t" +
"Profile(s): \t\t{}\n----------------------------------------------------------",
env.getProperty("spring.application.name"),
protocol,
serverPort,
contextPath,
protocol,
hostAddress,
serverPort,
contextPath,
env.getProperty("application.info.version"),
javaVersion,
javaWorkingDirectory,
env.getActiveProfiles());

}
Expand Down
Loading

0 comments on commit 7d1b86e

Please sign in to comment.