Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
joram
joram
Commits
1a2de958
Commit
1a2de958
authored
Jan 13, 2021
by
Andre Freyssinet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds an example with explicit use of JMSConnectorCheck component.
parent
7e49c039
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2159 additions
and
2103 deletions
+2159
-2103
joram/samples/src/joram/build.xml
joram/samples/src/joram/build.xml
+2114
-2103
joram/samples/src/joram/classic/JMSCheck.java
joram/samples/src/joram/classic/JMSCheck.java
+45
-0
No files found.
joram/samples/src/joram/build.xml
View file @
1a2de958
<project
default=
"compile"
basedir=
"."
xmlns:m2=
"urn:maven-artifact-ant"
>
<!-- Initializes the environment paths and properties -->
<target
name=
"init"
>
<!-- Initializes the directory structure properties -->
<property
name=
"src.dir"
location=
"."
/>
<property
name=
"ship.dir"
location=
"../../../ship"
/>
<property
name=
"obj.dir"
location=
"../../classes"
/>
<property
name=
"lib.dir"
location=
"${ship.dir}/lib"
/>
<property
name=
"run.dir"
location=
"../../run"
/>
<property
name=
"conf.dir"
location=
"../../config"
/>
<property
name=
"felix.dir"
location=
"${ship.dir}/bin/"
/>
<property
name=
"bundle.dir"
location=
"${ship.dir}/bundle"
/>
<!-- Project classpath needed for execution -->
<path
id=
"project.class.path"
>
<pathelement
path=
"${java.class.path}/"
/>
<fileset
dir=
"${lib.dir}"
>
<include
name=
"*.jar"
/>
</fileset>
<fileset
dir=
"${bundle.dir}"
>
<include
name=
"*.jar"
/>
</fileset>
<pathelement
path=
"${obj.dir}/joram"
/>
<pathelement
path=
"${run.dir}"
/>
</path>
<property
name=
"project.class.path"
refid=
"project.class.path"
/>
<path
id=
"felix.class.path"
>
<pathelement
path=
"${java.class.path}/"
/>
<fileset
file=
"${felix.dir}/felix.jar"
/>
<pathelement
path=
"${run.dir}"
/>
</path>
<property
name=
"felix.class.path"
refid=
"felix.class.path"
/>
</target>
<!-- Cleans run directory -->
<target
name=
"reset"
depends=
"init"
description=
"--> Cleans run directory"
>
<delete
quiet=
"true"
dir=
"${run.dir}"
/>
</target>
<!-- Cleans samples - deletes generated files -->
<target
name=
"clean"
depends=
"init,reset"
description=
"--> Deletes generated files"
>
<delete
quiet=
"true"
dir=
"${obj.dir}"
/>
</target>
<!-- Compiles (be careful, deprecation, nowarn and verbose properties are not defined -->
<target
name=
"compile"
depends=
"init,clean"
description=
"--> Compile all samples"
>
<mkdir
dir=
"${obj.dir}/joram"
/>
<javac
srcdir=
"${src.dir}"
destdir=
"${obj.dir}/joram"
debug=
"true"
optimize=
"false"
deprecation=
"${deprecation}"
nowarn=
"${nowarn}"
verbose=
"${verbose}"
includeantruntime=
"false"
>
<classpath
refid=
"project.class.path"
/>
<include
name=
"**/*.java"
/>
</javac>
</target>
<!-- Initializes a centralized configuration -->
<target
name=
"server_init"
depends=
"init"
>
<mkdir
dir=
"${run.dir}/server${sid}"
/>
<copy
file=
"${conf.dir}/a3config.dtd"
todir=
"${run.dir}/server${sid}"
/>
<copy
file=
"${conf.dir}/a3debug.cfg"
todir=
"${run.dir}/server${sid}"
/>
<copy
file=
"${a3.conf}"
tofile=
"${run.dir}/server${sid}/a3servers.xml"
/>
<copy
file=
"${osgi.conf}"
tofile=
"${run.dir}/server${sid}/config.properties"
/>
<!--copy file="${monit.conf}" tofile="${run.dir}/server${sid}/MonitoringConfig.xml"/-->
<!-- copy file="${conf.dir}/fileMonitoring.props" tofile="${run.dir}/server${sid}/fileMonitoring.props"/ -->
<!-- copy file="${conf.dir}/fileMonitoring.props" tofile="${run.dir}/server${sid}/logMonitoring.props"/ -->
<!-- copy file="${conf.dir}/fileMonitoring.props" tofile="${run.dir}/server${sid}/windowMonitoring.props"/ -->
</target>
<target
name=
"simple_init"
depends=
"init"
>
<copy
file=
"${conf.dir}/a3debug.cfg"
todir=
"${run.dir}"
/>
<copy
file=
"${conf.dir}/jndi.properties"
todir=
"${run.dir}"
/>
</target>
<target
name=
"server"
depends=
"server_init"
>
<java
classname=
"org.apache.felix.main.Main"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}/server${sid}"
>
<classpath
path=
"${felix.class.path}"
/>
<!-- jvmarg line="-Dfelix.config.properties=file:config.properties -Dfr.dyade.aaa.agent.AgentServer.id=${sid} -Dcom.sun.management.jmxremote.port=9191 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -DTransaction.SyncOnWrite=false"/ -->
<!-- jvmarg line="-server -Xmx2G -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=5000,suspend=n -Dfelix.config.properties=file:config.properties -Dfr.dyade.aaa.agent.AgentServer.id=${sid} -Dcom.sun.management.jmxremote -DTransaction.SyncOnWrite=false"/ -->
<jvmarg
line=
"-server -Xmx2G -Xdebug -Xnoagent -Djava.compiler=NONE -Dfelix.config.properties=file:config.properties -Dfr.dyade.aaa.agent.AgentServer.id=${sid} -Dcom.sun.management.jmxremote -DTransaction.SyncOnWrite=false"
/>
<!-- jvmarg line="-server -Xmx1500m -Xincgc -Dfelix.config.properties=file:config.properties -Dfr.dyade.aaa.agent.AgentServer.id=${sid} -Dcom.sun.management.jmxremote"/ -->
<!-- jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y"/ -->
</java>
</target>
<target
name=
"server_nofork"
depends=
"server_init"
>
<java
classname=
"org.apache.felix.main.Main"
failonerror=
"no"
fork=
"no"
dir=
"${run.dir}/server${sid}"
>
<classpath
path=
"${felix.class.path}"
/>
<jvmarg
line=
"-Dfelix.config.properties=file:config.properties -Dfr.dyade.aaa.agent.AgentServer.id=${sid} -Dcom.sun.management.jmxremote"
/>
<!-- jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y"/ -->
</java>
</target>
<!-- Start a single server in NullTransaction mode -->
<target
name=
"single_server"
depends=
"init"
description=
"--> Starts a single server in non-persistent mode"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/centralized_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config.properties"
/>
</antcall>
</target>
<!-- Start a single server with the shell commands -->
<target
name=
"shell_server"
depends=
"init"
description=
"--> Starts a single server with the shell commands"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/centralized_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_shell.properties"
/>
</antcall>
</target>
<!-- Start a single server with NGTransaction component -->
<target
name=
"ngt_server"
depends=
"init"
description=
"--> Starts a single server with NGTransaction component"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/ngt_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config.properties"
/>
</antcall>
</target>
<project
default=
"compile"
basedir=
"."
xmlns:m2=
"urn:maven-artifact-ant"
>
<!-- Initializes the environment paths and properties -->
<target
name=
"init"
>
<!-- Initializes the directory structure properties -->
<property
name=
"src.dir"
location=
"."
/>
<property
name=
"ship.dir"
location=
"../../../ship"
/>
<property
name=
"obj.dir"
location=
"../../classes"
/>
<property
name=
"lib.dir"
location=
"${ship.dir}/lib"
/>
<property
name=
"run.dir"
location=
"../../run"
/>
<property
name=
"conf.dir"
location=
"../../config"
/>
<property
name=
"felix.dir"
location=
"${ship.dir}/bin/"
/>
<property
name=
"bundle.dir"
location=
"${ship.dir}/bundle"
/>
<!-- Project classpath needed for execution -->
<path
id=
"project.class.path"
>
<pathelement
path=
"${java.class.path}/"
/>
<fileset
dir=
"${lib.dir}"
>
<include
name=
"*.jar"
/>
</fileset>
<fileset
dir=
"${bundle.dir}"
>
<include
name=
"*.jar"
/>
</fileset>
<pathelement
path=
"${obj.dir}/joram"
/>
<pathelement
path=
"${run.dir}"
/>
</path>
<property
name=
"project.class.path"
refid=
"project.class.path"
/>
<path
id=
"felix.class.path"
>
<pathelement
path=
"${java.class.path}/"
/>
<fileset
file=
"${felix.dir}/felix.jar"
/>
<pathelement
path=
"${run.dir}"
/>
</path>
<property
name=
"felix.class.path"
refid=
"felix.class.path"
/>
</target>
<!-- Cleans run directory -->
<target
name=
"reset"
depends=
"init"
description=
"--> Cleans run directory"
>
<delete
quiet=
"true"
dir=
"${run.dir}"
/>
</target>
<!-- Cleans samples - deletes generated files -->
<target
name=
"clean"
depends=
"init,reset"
description=
"--> Deletes generated files"
>
<delete
quiet=
"true"
dir=
"${obj.dir}"
/>
</target>
<!-- Compiles (be careful, deprecation, nowarn and verbose properties are not defined -->
<target
name=
"compile"
depends=
"init,clean"
description=
"--> Compile all samples"
>
<mkdir
dir=
"${obj.dir}/joram"
/>
<javac
srcdir=
"${src.dir}"
destdir=
"${obj.dir}/joram"
debug=
"true"
optimize=
"false"
deprecation=
"${deprecation}"
nowarn=
"${nowarn}"
verbose=
"${verbose}"
includeantruntime=
"false"
>
<classpath
refid=
"project.class.path"
/>
<include
name=
"**/*.java"
/>
</javac>
</target>
<!-- Initializes a centralized configuration -->
<target
name=
"server_init"
depends=
"init"
>
<mkdir
dir=
"${run.dir}/server${sid}"
/>
<copy
file=
"${conf.dir}/a3config.dtd"
todir=
"${run.dir}/server${sid}"
/>
<copy
file=
"${conf.dir}/a3debug.cfg"
todir=
"${run.dir}/server${sid}"
/>
<copy
file=
"${a3.conf}"
tofile=
"${run.dir}/server${sid}/a3servers.xml"
/>
<copy
file=
"${osgi.conf}"
tofile=
"${run.dir}/server${sid}/config.properties"
/>
<!--copy file="${monit.conf}" tofile="${run.dir}/server${sid}/MonitoringConfig.xml"/-->
<!-- copy file="${conf.dir}/fileMonitoring.props" tofile="${run.dir}/server${sid}/fileMonitoring.props"/ -->
<!-- copy file="${conf.dir}/fileMonitoring.props" tofile="${run.dir}/server${sid}/logMonitoring.props"/ -->
<!-- copy file="${conf.dir}/fileMonitoring.props" tofile="${run.dir}/server${sid}/windowMonitoring.props"/ -->
</target>
<target
name=
"simple_init"
depends=
"init"
>
<copy
file=
"${conf.dir}/a3debug.cfg"
todir=
"${run.dir}"
/>
<copy
file=
"${conf.dir}/jndi.properties"
todir=
"${run.dir}"
/>
</target>
<target
name=
"server"
depends=
"server_init"
>
<java
classname=
"org.apache.felix.main.Main"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}/server${sid}"
>
<classpath
path=
"${felix.class.path}"
/>
<!-- jvmarg line="-Dfelix.config.properties=file:config.properties -Dfr.dyade.aaa.agent.AgentServer.id=${sid} -Dcom.sun.management.jmxremote.port=9191 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -DTransaction.SyncOnWrite=false"/ -->
<!-- jvmarg line="-server -Xmx2G -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=5000,suspend=n -Dfelix.config.properties=file:config.properties -Dfr.dyade.aaa.agent.AgentServer.id=${sid} -Dcom.sun.management.jmxremote -DTransaction.SyncOnWrite=false"/ -->
<jvmarg
line=
"-server -Xmx2G -Xdebug -Xnoagent -Djava.compiler=NONE -Dfelix.config.properties=file:config.properties -Dfr.dyade.aaa.agent.AgentServer.id=${sid} -Dcom.sun.management.jmxremote -DTransaction.SyncOnWrite=false"
/>
<!-- jvmarg line="-server -Xmx1500m -Xincgc -Dfelix.config.properties=file:config.properties -Dfr.dyade.aaa.agent.AgentServer.id=${sid} -Dcom.sun.management.jmxremote"/ -->
<!-- jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y"/ -->
</java>
</target>
<target
name=
"server_nofork"
depends=
"server_init"
>
<java
classname=
"org.apache.felix.main.Main"
failonerror=
"no"
fork=
"no"
dir=
"${run.dir}/server${sid}"
>
<classpath
path=
"${felix.class.path}"
/>
<jvmarg
line=
"-Dfelix.config.properties=file:config.properties -Dfr.dyade.aaa.agent.AgentServer.id=${sid} -Dcom.sun.management.jmxremote"
/>
<!-- jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y"/ -->
</java>
</target>
<!-- Start a single server in NullTransaction mode -->
<target
name=
"single_server"
depends=
"init"
description=
"--> Starts a single server in non-persistent mode"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/centralized_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config.properties"
/>
</antcall>
</target>
<!-- Start a single server with the shell commands -->
<target
name=
"shell_server"
depends=
"init"
description=
"--> Starts a single server with the shell commands"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/centralized_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_shell.properties"
/>
</antcall>
</target>
<!-- Start a single server with NGTransaction component -->
<target
name=
"ngt_server"
depends=
"init"
description=
"--> Starts a single server with NGTransaction component"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/ngt_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config.properties"
/>
</antcall>
</target>
<!-- Start a single server with NGTransaction and JMS Healthcheck component -->
<target
name=
"jmscheck_server"
depends=
"init"
...
...
@@ -144,1971 +144,1982 @@
</antcall>
</target>
<!-- Start a single server with DerbyTransaction -->
<!-- Be careful: Needs the derby.jar bundle -->
<target
name=
"derby_server"
depends=
"init"
description=
"--> Starts a single server in persistent mode with a Derby repository"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/derby_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_derby.properties"
/>
</antcall>
</target>
<!-- Start a single server with JDBCTransaction and Derby data store -->
<!-- Be careful: Needs the derby.jar bundle -->
<target
name=
"derbyxserver"
depends=
"server_init"
>
<java
classname=
"org.apache.felix.main.Main"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}/server${sid}"
>
<classpath
path=
"${felix.class.path}"
/>
<jvmarg
line=
"-server -Xmx2G -Xdebug -Xnoagent -Djava.compiler=NONE -Dfelix.config.properties=file:config.properties -Dfr.dyade.aaa.agent.AgentServer.id=${sid} -Dcom.sun.management.jmxremote"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.driver=org.apache.derby.jdbc.EmbeddedDriver"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.url=jdbc:derby:MyJoramDB;create=true"
/>
<jvmarg
value=
"-Dorg.ow2.joram.dbtransaction.dbtable=MyTable"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.dbname=MyJoramDB"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.user=user1"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.password=pass1"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.connect_retry_count=10"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.connect_retry_max_period=120000"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.connect_retry_min_delay=5000"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.dbinit=CREATE TABLE MyTable (name VARCHAR(256), content BLOB(16M), PRIMARY KEY(name))"
/>
</java>
</target>
<target
name=
"jdbc_derby_server"
depends=
"init"
description=
"--> Starts a single server in persistent mode with a Derby repository"
>
<antcall
target=
"derbyxserver"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/jdbc_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_derby.properties"
/>
</antcall>
</target>
<target
name=
"mysqlxserver"
depends=
"server_init"
>
<java
classname=
"org.apache.felix.main.Main"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}/server${sid}"
>
<classpath
path=
"${felix.class.path}"
/>
<jvmarg
line=
"-server -Xmx2G -Xdebug -Xnoagent -Djava.compiler=NONE -Dfelix.config.properties=file:config.properties -Dfr.dyade.aaa.agent.AgentServer.id=${sid} -Dcom.sun.management.jmxremote"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.driver=com.mysql.jdbc.Driver"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.url=jdbc:mysql://192.168.1.133:3306/joramdb0?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC"
/>
<jvmarg
value=
"-Dorg.ow2.joram.dbtransaction.dbtable=MyTable"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.dbname=joramdb0"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.user=joram"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.password=Jor@m#516@"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.dbinit=CREATE TABLE MyTable (name VARCHAR(255), content LONGBLOB, PRIMARY KEY(name))"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.connect_retry_count=0"
/>
<jvmarg
value=
"-Dorg.ow2.joram.jdbc.transaction.connect_retry_delay=0"
/>
</java>
</target>
<target
name=
"jdbc_mysql_server"
depends=
"init"
description=
"--> Starts a single server in persistent mode with a Derby repository"
>
<antcall
target=
"mysqlxserver"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/jdbc_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_mysql.properties"
/>
</antcall>
</target>
<!-- Start a single server in NullTransaction mode with all extension bundles -->
<target
name=
"extended_server"
depends=
"init"
description=
"--> Starts a single server in non-persistent mode"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/centralized_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_all.properties"
/>
</antcall>
</target>
<!-- Start a single server in NullTransaction mode with extension bundles needed for JASP-->
<target
name=
"stomp_server"
depends=
"init"
description=
"--> Starts a single server in non-persistent mode"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/centralized_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_stomp.properties"
/>
</antcall>
</target>
<!-- Start a single server in NullTransaction mode with extension bundles needed for the WEB console -->
<target
name=
"console_server"
depends=
"init"
description=
"--> Starts a single server in non-persistent mode"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/centralized_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_console.properties"
/>
</antcall>
</target>
<!-- Start a single AMQP server -->
<target
name=
"amqp_server"
depends=
"init"
description=
"--> Starts a single AMQP server in persistent mode"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/amqp_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_amqp.properties"
/>
</antcall>
</target>
<!-- Setup a distributed architecture with 3 servers -->
<target
name=
"server0"
depends=
"init"
description=
"--> Starts a server for a distributed architecture (w/ id 0)"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/distributed_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_min.properties"
/>
<param
name=
"monit.conf"
value=
"${conf.dir}/MonitoringConfig_0.xml"
/>
</antcall>
</target>
<target
name=
"server1"
depends=
"init"
description=
"--> Starts a server for a distributed architecture (w/ id 1)"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"1"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/distributed_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_min.properties"
/>
<param
name=
"monit.conf"
value=
"${conf.dir}/MonitoringConfig_1.xml"
/>
</antcall>
</target>
<target
name=
"server2"
depends=
"init"
description=
"--> Starts a server for a distributed architecture (w/ id 2)"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"2"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/distributed_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_min.properties"
/>
<param
name=
"monit.conf"
value=
"${conf.dir}/MonitoringConfig_2.xml"
/>
</antcall>
</target>
<target
name=
"servers"
description=
"--> Starts 3 servers in a distributed configuration"
>
<parallel>
<antcall
target=
"server0"
/>
<antcall
target=
"server1"
/>
<antcall
target=
"server2"
/>
</parallel>
</target>
<!-- Runs the Admin Mbean adapter for client JMX console -->
<target
name=
"admin_jmx"
depends=
"simple_init"
description=
"--> Starts an admin MBean adapter client"
>
<java
classname=
"org.objectweb.joram.client.jms.admin.JoramAdminConnect"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}"
>
<jvmarg
line=
"-Dcom.sun.management.jmxremote"
/>
<classpath
path=
"${project.class.path}"
/>
</java>
</target>
<!-- **************************************************
* Bridge tests based on real client configuration #1
************************************************** -->
<!-- EF Bridge server -->
<target
name=
"efbridge_server"
depends=
"simple_init"
description=
"--> Starts the EF bridge server"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"1"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/efbridge_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_bridge.properties"
/>
</antcall>
</target>
<!-- Setup the central server configuration -->
<target
name=
"efbridge_admin"
depends=
"simple_init"
description=
"--> Runs the EF bridge sample administration"
>
<java
classname=
"efbridge.Admin"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}"
>
<classpath
path=
"${project.class.path}"
/>
</java>
</target>
<!-- Setup the bridge configuration -->
<target
name=
"efbridge_adminxml"
depends=
"simple_init"
description=
"--> Runs XML administration script for EF bridge sample"
>
<copy
file=
"${src.dir}/efbridge/joramAdmin.xml"
overwrite=
"true"
todir=
"${run.dir}"
/>
<java
classname=
"org.objectweb.joram.client.jms.admin.AdminModule"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}"
>
<classpath
path=
"${project.class.path}"
/>
<arg
line=
"./joramAdmin.xml"
/>
</java>
</target>
<!-- Runs the efbridge producer -->
<target
name=
"efbridge_producer"
depends=
"init"
description=
"--> Runs the EF bridge sample producer"
>
<java
classname=
"efbridge.Producer"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}"
>
<classpath
path=
"${project.class.path}"
/>
</java>
</target>
<!-- Runs the efbridge consumer -->
<target
name=
"efbridge_consumer"
depends=
"init"
description=
"--> Runs the EF bridge sample consumer"
>
<java
classname=
"efbridge.Consumer"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}"
>
<classpath
path=
"${project.class.path}"
/>
</java>
</target>
<!-- **************************************************
* Bridge tests based on real client configuration #2
************************************************** -->
<!-- SEIP Bridge server, /!\ the configuration file is inherited from efbridge -->
<!-- Needs to run a ngt_server -->
<target
name=
"seipbridge_server"
depends=
"simple_init"
description=
"--> Starts the SEIP bridge server"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"1"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/seipbridge_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_bridge.properties"
/>
</antcall>
</target>
<!-- Setup the central server configuration -->
<target
name=
"seipbridge_admin"
depends=
"simple_init"
description=
"--> Runs the SEIP bridge sample administration"
>
<java
classname=
"seipbridge.Admin"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}"
>
<classpath
path=
"${project.class.path}"
/>
</java>
</target>
<!-- Runs the efbridge producer -->
<target
name=
"seipbridge_producer"
depends=
"init"
description=
"--> Runs the SEIP bridge sample producer"
>
<java
classname=
"seipbridge.Producer"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}"
>
<classpath
path=
"${project.class.path}"
/>
</java>
</target>
<!-- Runs the efbridge consumer -->
<target
name=
"seipbridge_consumer"
depends=
"init"
description=
"--> Runs the SEIP bridge sample consumer"
>
<java
classname=
"seipbridge.Consumer"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}"
>
<classpath
path=
"${project.class.path}"
/>
</java>
</target>
<!-- **************************************************
* Rest samples
************************************************** -->
<!-- Start REST and a single server in NullTransaction mode -->
<target
name=
"rest_server"
depends=
"init"
description=
"--> Starts a single server with REST/JMS API"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"0"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/ngt_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_rest.properties"
/>
</antcall>
</target>
<!-- Runs the rest producer -->
<target
name=
"rest.producer"
depends=
"init"
description=
"--> Runs the rest sample producer"
>
<java
classname=
"rest.Producer"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}"
>
<classpath
path=
"${project.class.path}"
/>
</java>
</target>
<!-- Runs the rest consumer -->
<target
name=
"rest.consumer"
depends=
"init"
description=
"--> Runs the rest sample consumer"
>
<java
classname=
"rest.Consumer"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}"
>
<classpath
path=
"${project.class.path}"
/>
</java>
</target>
<!-- Runs the Rest PERFS producer -->
<target
name=
"rest_perfs_prod_q"
depends=
"simple_init"
description=
"--> Starts the Rest PERFS producer"
>
<java
classname=
"rest.PerfProducer"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}"
>
<classpath
path=
"${project.class.path}"
/>
<jvmarg
line=
"-DNbClient=2 -DNbMsgPerRound=1000 -DRound=50 -DMsgSize=1000 -DMsgTransient=false -Dmps=1000"
/>
<!-- jvmarg line="-DNbClient=1 -DNbMsgPerRound=100 -DRound=200 -DMsgSize=1000 -DMsgTransient=false -Dmps=120" / -->
</java>
</target>
<!-- Runs the Rest PERFS consumer -->
<target
name=
"rest_perfs_cons_q"
depends=
"simple_init"
description=
"--> Starts the Rest PERFS consumer"
>
<java
classname=
"rest.PerfConsumer"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}"
>
<classpath
path=
"${project.class.path}"
/>
<jvmarg
line=
"-DNbClient=5 -DNbMsgPerRound=1000 -DRound=20"
/>
</java>
</target>
<!-- **************************************************
* Rest bridge Sample
************************************************** -->
<!-- Rest Bridge server -->
<target
name=
"restbridge_server"
depends=
"simple_init"
description=
"--> Starts the rest bridge server"
>
<antcall
target=
"server"
>
<param
name=
"sid"
value=
"1"
/>
<param
name=
"a3.conf"
value=
"${conf.dir}/restbridge_a3servers.xml"
/>
<param
name=
"osgi.conf"
value=
"${conf.dir}/config_restbridge.properties"
/>
</antcall>
</target>
<!-- Setup the bridge server configuration -->
<target
name=
"restbridge_admin"
depends=
"simple_init"
description=
"--> Runs the rest bridge sample administration"
>
<java
classname=
"restbridge.Admin"
failonerror=
"no"
fork=
"yes"
dir=
"${run.dir}"
>
<classpath
path=
"${project.class.path}"
/>
</java>
</target>