Commit c951acdd authored by Andre Freyssinet's avatar Andre Freyssinet

Adds target for derby and mysql jdbc server.

parent e39e2f10
# JORAM: Java(TM) Open Reliable Asynchronous Messaging
# Copyright (C) 2001 - 2012 ScalAgent Distributed Technologies
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
################################
# Framework config properties. #
################################
# To override the packages the framework exports by default from the
# class path, set this variable.
#org.osgi.framework.system.packages=
# To append packages to the default set of exported system packages,
# set this value.
#org.osgi.framework.system.packages.extra=
# The following property makes specified packages from the class path
# available to all bundles. You should avoid using this property.
#org.osgi.framework.bootdelegation=sun.*,com.sun.*
# Felix tries to guess when to implicitly boot delegate in certain
# situations to ease integration without outside code. This feature
# is enabled by default, uncomment the following line to disable it.
#felix.bootdelegation.implicit=false
# The following property explicitly specifies the location of the bundle
# cache, which defaults to "felix-cache" in the current working directory.
# If this value is not absolute, then the felix.cache.rootdir controls
# how the absolute location is calculated. (See next property)
#org.osgi.framework.storage=${felix.cache.rootdir}/felix-cache
# The following property is used to convert a relative bundle cache
# location into an absolute one by specifying the root to prepend to
# the relative cache path. The default for this property is the
# current working directory.
#felix.cache.rootdir=${user.dir}
# The following property controls whether the bundle cache is flushed
# the first time the framework is initialized. Possible values are
# "none" and "onFirstInit"; the default is "none".
#org.osgi.framework.storage.clean=onFirstInit
# The following property determines which actions are performed when
# processing the auto-deploy directory. It is a comma-delimited list of
# the following values: 'install', 'start', 'update', and 'uninstall'.
# An undefined or blank value is equivalent to disabling auto-deploy
# processing.
felix.auto.deploy.action=install,start
# The following property specifies the directory to use as the bundle
# auto-deploy directory; the default is 'bundle' in the working directory.
# felix.auto.deploy.dir=../ship/bundle
# The following property is a space-delimited list of bundle URLs
# to install and start when the framework starts. The ending numerical
# component is the target start level. Any number of these properties
# may be specified for different start levels.
felix.auto.start.1= \
file:../../../ship/bundle/org.apache.felix.shell.jar \
file:../../../ship/bundle/org.apache.felix.shell.tui.jar \
file:../../../ship/bundle/org.apache.felix.shell.remote.jar \
file:../../../ship/bundle/mysql-connector-java-8.0.17.jar \
file:../../../ship/bundle/monolog.jar \
file:../../../ship/bundle/a3-common.jar \
file:../../../ship/bundle/a3-rt.jar \
file:../../../ship/bundle/jcup.jar \
file:../../../ship/bundle/jndi-shared.jar \
file:../../../ship/bundle/jndi-server.jar \
file:../../../ship/bundle/joram-shared.jar \
file:../../../ship/bundle/joram-mom-core.jar \
file:../../../ship/bundle/a3-osgi.jar
felix.log.level=1
# Sets the initial start level of the framework upon startup.
#org.osgi.framework.startlevel.beginning=1
# Sets the start level of newly installed bundles.
felix.startlevel.bundle=1
# Felix installs a stream and content handler factories by default,
# uncomment the following line to not install them.
#felix.service.urlhandlers=false
# The launcher registers a shutdown hook to cleanly stop the framework
# by default, uncomment the following line to disable it.
#felix.shutdown.hook=false
#############################
# Bundle config properties. #
#############################
# IP Address on which the remote shell is accessible (since 1.0.4).
# Note: Starting with version 1.0.4 the remote shell does not listen on
# all interfaces by default but on the localhost only. That is, by default
# the remote shell is only accessible from the host on which the remote
# shell is running. To access the system from another host, you have to
# configure the IP address of the interface to which the remote shell
# should be attached.
#osgi.shell.telnet.ip=127.0.0.1
# Port on which the remote shell is accessible.
#osgi.shell.telnet.port=6666
# The maximum number of simultaneous connections.
#osgi.shell.telnet.maxconn=2
# Sets the SO_TIMEOUT socket option to the given number of milliseconds.
# The default is no timeout.
#osgi.shell.telnet.socketTimeout=0
# Sets the identifier of the JORAM agent server to start, as defined in
# a3servers.xml file. Server 0 is started by default.
#fr.dyade.aaa.agent.AgentServer.id=0
# Sets the directory name where the agent server stores its persistent data.
#fr.dyade.aaa.agent.AgentServer.storage=s${fr.dyade.aaa.agent.AgentServer.id}
# Sets the Repository implementation of the Transaction component.
#NTRepositoryImpl=fr.dyade.aaa.util.DBRepository
......@@ -148,7 +148,7 @@
<!-- Start a single server with JDBCTransaction and Derby data store -->
<!-- Be careful: Needs the derby.jar bundle -->
<target name="xserver" depends="server_init">
<target name="derbyxserver" depends="server_init">
<java classname="org.apache.felix.main.Main"
failonerror="no" fork="yes"
dir="${run.dir}/server${sid}">
......@@ -164,15 +164,42 @@
</java>
</target>
<target name="jdbc_server" depends="init"
<target name="jdbc_derby_server" depends="init"
description="--> Starts a single server in persistent mode with a Derby repository">
<antcall target="xserver">
<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&amp;useJDBCCompliantTimezoneShift=true&amp;useLegacyDatetimeCode=false&amp;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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment