2
0
Fork 0

wip made remote ejb working over http

This commit is contained in:
Willem Cazander 2012-11-21 20:45:08 +01:00
parent d4e537a2bf
commit 2a0d992642
393 changed files with 8916 additions and 3872 deletions

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>vasc-demo-server-build</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>

View file

@ -0,0 +1,95 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>vasc-demo-server</artifactId>
<groupId>net.forwardfire.vasc.demo</groupId>
<version>0.4.1-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<artifactId>vasc-demo-server-build</artifactId>
<packaging>pom</packaging>
<name>vasc-demo-server-build</name>
<description>Vasc Demo Server Build</description>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin.version}</version>
<executions>
<execution>
<id>ui-dist-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/assembly/bin.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven-antrun-plugin.version}</version>
<executions>
<execution>
<id>update-schema</id>
<phase>prepare-package</phase>
<configuration>
<target>
<property name="destdir" value="${basedir}/target/docs/"/>
<mkdir dir="${destdir}/schema"/>
<mkdir dir="${destdir}/elddoc"/>
<taskdef name="eldXsdWriter" classname="org.x4o.plugin.ant.eld.xsd.EldXsdWriterTask" classpathref="maven.plugin.classpath"/>
<taskdef name="eldDocWriter" classname="org.x4o.plugin.ant.eld.doc.EldDocWriterTask" classpathref="maven.plugin.classpath"/>
<eldXsdWriter destdir="${destdir}/schema" supportclass="net.forwardfire.vasc.impl.x4o.VascParserSupport"/>
<eldDocWriter destdir="${destdir}/elddoc" supportclass="net.forwardfire.vasc.impl.x4o.VascParserSupport"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.x4o.plugin</groupId>
<artifactId>x4o-plugin-ant-schema</artifactId>
<version>${x4o.version}</version>
</dependency>
<dependency>
<groupId>org.x4o.plugin</groupId>
<artifactId>x4o-plugin-ant-elddoc</artifactId>
<version>${x4o.version}</version>
</dependency>
<dependency>
<groupId>net.forwardfire.vasc.demo</groupId>
<artifactId>vasc-demo-server-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>net.forwardfire.vasc.demo</groupId>
<artifactId>vasc-demo-tech-web</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>net.forwardfire.vasc.demo</groupId>
<artifactId>vasc-demo-server-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>net.forwardfire.vasc.demo</groupId>
<artifactId>vasc-demo-tech-web</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>

View file

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2011, Willem Cazander
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided
that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the
following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>bin</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>true</includeBaseDirectory>
<baseDirectory>vasc-demo-tech-${project.version}</baseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>/libs</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<unpack>false</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>${project.parent.parent.parent.basedir}</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>authors.txt</include>
<include>licence.txt</include>
<!-- <include>versions.txt</include> -->
</includes>
</fileSet>
<fileSet>
<directory>${project.basedir}/src/main/scripts/</directory>
<outputDirectory>/</outputDirectory>
<fileMode>755</fileMode>
</fileSet>
<fileSet>
<directory>${project.basedir}/src/main/files/</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>readme.txt</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.basedir}/src/main/directory/</directory>
<outputDirectory>/</outputDirectory>
<excludes>
<exclude>conf/logback-server-console.xml</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${project.basedir}/target/docs/</directory>
<outputDirectory>/docs</outputDirectory>
</fileSet>
</fileSets>
</assembly>

View file

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Default context for all applications. -->
<Context>
<!-- Link global resources in local java:comp/env namespace -->
<ResourceLink name="config/START_GUI" global="config/START_GUI" type="java.lang.Boolean"/>
<ResourceLink name="config/START_EDITOR" global="config/START_EDITOR" type="java.lang.Boolean"/>
<ResourceLink name="config/DEPLOY_DEBUG" global="config/DEPLOY_DEBUG" type="java.lang.Boolean"/>
<ResourceLink name="config/DEPLOY_PATH" global="config/DEPLOY_PATH" type="java.lang.String"/>
<ResourceLink name="jdbc/DemoManagerDataDS" global="jdbc/DemoManagerDataDS" type="javax.sql.DataSource"/>
<ResourceLink name="vasc/server-tech" global="vasc/server-tech" type="net.forwardfire.vasc.core.VascController" />
<ResourceLink name="vasc/server-admin" global="vasc/server-admin" type="net.forwardfire.vasc.core.VascController" />
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Disable session persistence across restarts -->
<Manager pathname="" />
</Context>

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" />
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/http-access.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>logs/http-access-%d{yyyy-MM-dd}.log.zip</fileNamePattern>
</rollingPolicy>
<encoder>
<pattern>combined</pattern>
</encoder>
</appender>
<appender-ref ref="FILE" />
</configuration>

View file

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="90 seconds">
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
<resetJUL>true</resetJUL>
</contextListener>
<jmxConfigurator/>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>logs/vasc-demo-tech.log</file>
<encoder>
<pattern>%date %level [%thread] %logger{10} %msg%n</pattern>
</encoder>
</appender>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%date %level [%thread] %logger{10} %msg%n</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="FILE" />
<appender-ref ref="STDOUT" />
</root>
<!-- Limit some startup messages if one DEBUG -->
<logger level="WARN" name="org.apache.catalina"/>
<logger level="WARN" name="org.apache.tomcat"/>
<logger level="WARN" name="org.ajax4jsf"/>
<logger level="WARN" name="net.jawr"/>
<logger level="WARN" name="sun.awt"/>
<logger level="WARN" name="java.awt"/>
<logger level="WARN" name="org.eobjects"/>
<logger level="WARN" name="org.x4o"/>
</configuration>

View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="90 seconds">
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
<resetJUL>true</resetJUL>
</contextListener>
<jmxConfigurator/>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>logs/vasc-demo-tech.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>logs/vasc-demo-tech-%d{yyyy-MM-dd}.log.zip</fileNamePattern>
</rollingPolicy>
<encoder>
<pattern>%date %level [%thread] %logger{10} %msg%n</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="FILE" />
</root>
<!-- Limit some startup messages. -->
<logger level="WARN" name="org.apache.catalina.startup.Catalina"/>
<logger level="WARN" name="org.apache.catalina.startup.ContextConfig"/>
<logger level="ERROR" name="org.apache.catalina.startup.ClassLoaderFactory"/>
<logger level="WARN" name="org.apache.catalina.core.AprLifecycleListener"/>
<logger level="WARN" name="org.ajax4jsf.cache.LRUMapCacheFactory"/>
<logger level="WARN" name="javax.enterprise.resource.webcontainer.jsf.application"/>
<logger level="WARN" name="net.jawr.web.resource.bundle.factory.BundlesHandlerFactory"/>
<logger level="WARN" name="org.eobjects.metamodel.xml.XmlDomDataContext"/>
</configuration>

View file

@ -0,0 +1,13 @@
PropertiesLogin {
org.apache.openejb.core.security.jaas.PropertiesLoginModule required
Debug=false
UsersFile="users.properties"
GroupsFile="groups.properties";
};
vasc-auth-server {
org.apache.openejb.core.security.jaas.SQLLoginModule required
dataSourceName="jdbc/DemoManagerDataDS"
userSelect="select username, password from vasc_user where username=?"
groupSelect="select username, role from vasc_user_role where username=?";
};

View file

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<vasc:root xmlns:vasc="http://vasc.forwardfire.net/xml/ns/vasc-root"
xmlns:v="http://vasc.forwardfire.net/xml/ns/vasc-lang"
xmlns:mm="http://vasc.forwardfire.net/xml/ns/vasc-backend-metamodel"
xmlns:td="http://vasc.forwardfire.net/xml/ns/vasc-tech-demo"
>
<!-- Load jndi factories into tomcat. -->
<td:tomcatResource name="mmdc/server/conf/server.xml" auth="Container" type="org.eobjects.metamodel.DataContext"
factory="net.forwardfire.vasc.backend.metamodel.jndi.JndiDataContextObjectFactory"
backendType="xmlDomFile" backendFile="conf/server.xml"
/>
<td:tomcatResource name="mmdc/server/conf/logback-server.xml" auth="Container" type="org.eobjects.metamodel.DataContext"
factory="net.forwardfire.vasc.backend.metamodel.jndi.JndiDataContextObjectFactory"
backendType="xmlDomFile" backendFile="conf/logback-server.xml"
/>
<td:tomcatResource name="mmdc/server/conf/logback-access.xml" auth="Container" type="org.eobjects.metamodel.DataContext"
factory="net.forwardfire.vasc.backend.metamodel.jndi.JndiDataContextObjectFactory"
backendType="xmlDomFile" backendFile="conf/logback-access.xml"
/>
<td:tomcatResource name="mmdc/server/conf/context.xml" auth="Container" type="org.eobjects.metamodel.DataContext"
factory="net.forwardfire.vasc.backend.metamodel.jndi.JndiDataContextObjectFactory"
backendType="xmlDomFile" backendFile="conf/context.xml"
/>
<td:tomcatResource name="mmdc/server/conf/web.xml" auth="Container" type="org.eobjects.metamodel.DataContext"
factory="net.forwardfire.vasc.backend.metamodel.jndi.JndiDataContextObjectFactory"
backendType="xmlDomFile" backendFile="conf/web.xml"
/>
<!-- Get our references to the backends. -->
<mm:jndiDataContext el.id="mmdc1" jndiName="java:mmdc/server/conf/server.xml"/>
<mm:jndiDataContext el.id="mmdc2" jndiName="java:mmdc/server/conf/logback-server.xml"/>
<mm:jndiDataContext el.id="mmdc3" jndiName="java:mmdc/server/conf/logback-access.xml"/>
<mm:jndiDataContext el.id="mmdc4" jndiName="java:mmdc/server/conf/context.xml"/>
<mm:jndiDataContext el.id="mmdc5" jndiName="java:mmdc/server/conf/web.xml"/>
<!-- Auto config schema from MetaModel backends. -->
<mm:schemaAutoEntry dataContextProvider="${mmdc1}" entryPrefix="AdminConfServer" />
<mm:schemaAutoEntry dataContextProvider="${mmdc2}" entryPrefix="AdminConfLogServer" />
<mm:schemaAutoEntry dataContextProvider="${mmdc3}" entryPrefix="AdminConfLogAccess" />
<mm:schemaAutoEntry dataContextProvider="${mmdc4}" entryPrefix="AdminConfConfig" />
<mm:schemaAutoEntry dataContextProvider="${mmdc5}" entryPrefix="AdminConfWeb" />
</vasc:root>

View file

@ -0,0 +1,195 @@
<?xml version="1.0" encoding="UTF-8"?>
<vasc:root
xmlns:vasc="http://vasc.forwardfire.net/xml/ns/vasc-root"
xmlns:v="http://vasc.forwardfire.net/xml/ns/vasc-lang"
xmlns:mm="http://vasc.forwardfire.net/xml/ns/vasc-backend-metamodel"
xmlns:td="http://vasc.forwardfire.net/xml/ns/vasc-tech-demo"
>
<!--
<td:tomcatResource name="mmdc/pulsefire/device.log" auth="Container" type="org.eobjects.metamodel.DataContext"
factory="net.forwardfire.vasc.backend.metamodel.jndi.JndiDataContextObjectFactory"
backendType="csvFile" backendFile="/home/willemc/tmp/pulsefire-device.log"
/>
<mm:jndiDataContext el.id="mmdc_pf" jndiName="java:mmdc/pulsefire/device.log"/>
<mm:metaModelBackend id="PulseFireDeviceLogBackend" dataContextProvider="${mmdc_pf}" table="pulsefire-device" tableId="epoch" />
<v:entry id="PulseFireDeviceLog" backendId="PulseFireDeviceLogBackend" displayNameFieldId="time">
<v:field id="epoch" list="false" editReadOnly="true" create="false"/>
<v:field id="time" />
<v:field id="dev_volt" />
<v:field id="dev_amp" />
<v:field id="dev_temp" />
<v:field id="dev_freq" />
</v:entry>
-->
<!--
<mm:schemaAutoEntry dataContextProvider="${mmdc_pf}" entryPrefix="pf" />
-->
<!--
<td:tomcatResource name="mmdc/mongo/laura" auth="Container" type="org.eobjects.metamodel.DataContext"
factory="net.forwardfire.vasc.backend.metamodel.jndi.JndiDataContextObjectFactory"
backendType="mongodb" backendDatabase="laura"
/>
<mm:jndiDataContext el.id="lauraDC" jndiName="java:mmdc/mongo/laura"/>
<mm:schemaAutoEntry dataContextProvider="${lauraDC}" entryPrefix="laura"/>
<td:tomcatResource name="mmdc/mongo/lefiona" auth="Container" type="org.eobjects.metamodel.DataContext"
factory="net.forwardfire.vasc.backend.metamodel.jndi.JndiDataContextObjectFactory"
backendType="mongodb" backendDatabase="lefiona"
/>
<mm:jndiDataContext el.id="lefionaDC" jndiName="java:mmdc/mongo/lefiona"/>
<mm:schemaAutoEntry dataContextProvider="${lefionaDC}" entryPrefix="lefiona"/>
<td:tomcatResource name="mmdc/mongo/lisa" auth="Container" type="org.eobjects.metamodel.DataContext"
factory="net.forwardfire.vasc.backend.metamodel.jndi.JndiDataContextObjectFactory"
backendType="mongodb" backendDatabase="lisa"
/>
<mm:jndiDataContext el.id="lisaDC" jndiName="java:mmdc/mongo/lisa"/>
<mm:schemaAutoEntry dataContextProvider="${lisaDC}" entryPrefix="lisa"/>
<td:tomcatResource name="mmdc/deploy/auto-pg.xml" auth="Container" type="org.eobjects.metamodel.DataContext"
factory="net.forwardfire.vasc.backend.metamodel.jndi.JndiDataContextObjectFactory"
backendType="xmlDomFile" backendFile="deploy/auto-pg.xml"
/>
<mm:jndiDataContext el.id="autoPG" jndiName="java:mmdc/deploy/auto-pg.xml"/>
<mm:schemaAutoEntry dataContextProvider="${autoPG}" entryPrefix="autopg"/>
-->
<!--
<td:tomcatResource name="jdbc/DellStoreDS" auth="Container" type="javax.sql.DataSource"
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
testWhileIdle="true"
testOnBorrow="true"
testOnReturn="false"
validationQuery="SELECT 1"
validationInterval="30000"
timeBetweenEvictionRunsMillis="30000"
maxActive="10"
minIdle="1"
maxIdle="5"
maxWait="10000"
initialSize="1"
removeAbandonedTimeout="60"
removeAbandoned="true"
logAbandoned="true"
minEvictableIdleTimeMillis="30000"
jmxEnabled="true"
jdbcInterceptors="org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer"
username="postgres"
password="postgresql"
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost/dellstore2"
/>
<mm:jndiDataSourceDataContext el.id="dellStoreDC" jndiName="java:jdbc/DellStoreDS" />
<mm:schemaAutoEntry
dataContextProvider="${dellStoreDC}"
entryPrefix="dstore2"
tableInclude=".*"
tableExclude="reorder|categories"
/>
-->
<!--
<mm:jndiDataSourceDataContext el.id="AdminManagerDataDC" jndiName="java:jdbc/vascDemoDS" />
<mm:jndiDataContext el.id="test1" jndiName="java:metamodel/demo/VascDemoDC"/>
<mm:schemaAutoEntry dataContextProvider="${test1}" entryPrefix="test1" />
<mm:jndiDataContext el.id="test2" jndiName="java:metamodel/demo/VascDemoDCReadOnly"/>
<mm:schemaAutoEntry dataContextProvider="${test2}" entryPrefix="test2" />
<mm:jndiDataContext el.id="test3" jndiName="java:metamodel/demo/VascDemoMongoDC"/>
<mm:schemaAutoEntry dataContextProvider="${test3}" entryPrefix="test3" />
<mm:jndiDataContext el.id="test4" jndiName="java:metamodel/server/conf/logback-server.xml"/>
<mm:schemaAutoEntry dataContextProvider="${test4}" entryPrefix="test4" />
<mm:jndiDataContext el.id="test5" jndiName="java:metamodel/server/conf/logback-access.xml"/>
<mm:schemaAutoEntry dataContextProvider="${test5}" entryPrefix="test5" />
<mm:jndiDataContext el.id="test6" jndiName="java:metamodel/server/conf/context.xml"/>
<mm:schemaAutoEntry dataContextProvider="${test6}" entryPrefix="test6" />
<mm:jndiDataContext el.id="test7" jndiName="java:metamodel/server/conf/web.xml"/>
<mm:schemaAutoEntry dataContextProvider="${test7}" entryPrefix="test7" />
-->
<!--
<mm:xmlSaxDataContext el.id="ConfGlobalContextDC" file="conf/context.xml" >
<mm:xmlSaxSchema rowXPath="/Context/ResourceLink">
<mm:xmlSaxSchemaColumn dataXPath="/Context/ResourceLink@name"/>
<mm:xmlSaxSchemaColumn dataXPath="/Context/ResourceLink@global"/>
<mm:xmlSaxSchemaColumn dataXPath="/Context/ResourceLink@type"/>
</mm:xmlSaxSchema>
</mm:xmlSaxDataContext>
<mm:metaModelBackend id="ConfGlobalContextBackend" dataContextProvider="${ConfGlobalContextDC}" table="/ResourceLink" tableId="row_id" />
<v:entry id="ConfGlobalContext" backendId="ConfGlobalContextBackend" >
<v:field id="id" backendName="row_id"/>
<v:field id="name" backendName="@name"/>
<v:field id="global" backendName="@global"/>
<v:field id="type" backendName="@type"/>
</v:entry>
<mm:xmlSaxDataContext el.id="ConfGlobalWebMimeDC" file="conf/web.xml" >
<mm:xmlSaxSchema rowXPath="/web-app/mime-mapping">
<mm:xmlSaxSchemaColumn dataXPath="/web-app/mime-mapping/extension"/>
<mm:xmlSaxSchemaColumn dataXPath="/web-app/mime-mapping/mime-type"/>
</mm:xmlSaxSchema>
</mm:xmlSaxDataContext>
<mm:metaModelBackend id="ConfGlobalWebMimeBackend" dataContextProvider="${ConfGlobalWebMimeDC}" table="/mime-mapping" tableId="row_id" />
<v:entry id="ConfGlobalWebMime" backendId="ConfGlobalWebMimeBackend" >
<v:field id="id" backendName="row_id"/>
<v:field id="extension" backendName="/extension"/>
<v:field id="mime-type" backendName="/mime-type"/>
</v:entry>
-->
<!--
<td:tomcatResource name="jdbc/pagilaDS" auth="Container" type="javax.sql.DataSource"
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
initialSize="1" minIdle="1"
username="postgres" password="postgresql"
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost/pagila"
/>
<mm:jndiDataSourceDataContext el.id="pagilaDC" jndiName="java:jdbc/pagilaDS" />
<mm:schemaAutoEntry
dataContextProvider="${pagilaDC}"
entryPrefix="pagila"
/>
-->
<!--
<td:tomcatResource name="jdbc/bravoDS" auth="Container" type="javax.sql.DataSource"
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
initialSize="1" minIdle="1"
username="postgres" password="postgresql"
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost/openbravo"
/>
<td:tomcatResource name="mmdc/bravoDC" auth="Container" type="org.eobjects.metamodel.DataContext"
factory="net.forwardfire.vasc.backend.metamodel.jndi.JndiDataContextObjectFactory"
backendType="jdbcJndi" backendUrl="java:jdbc/bravoDS"
/>
<mm:jndiDataContext el.id="bravoDC" jndiName="java:mmdc/bravoDC"/>
<mm:schemaAutoEntry
dataContextProvider="${bravoDC}"
entryPrefix="bravo"
/>
-->
<!--
<mm:jndiDataSourceDataContext el.id="bravoDC" jndiName="java:jdbc/bravoDS" />
-->
</vasc:root>

View file

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<vasc:root xmlns:vasc="http://vasc.forwardfire.net/xml/ns/vasc-root"
xmlns:v="http://vasc.forwardfire.net/xml/ns/vasc-lang"
xmlns:mm="http://vasc.forwardfire.net/xml/ns/vasc-backend-metamodel"
>
<mm:csvDataContext
el.id="metaPeopleDS"
file="data/demo/meta-people.csv"
/>
<mm:metaModelBackend
id="metaPeopleBackend"
dataContextProvider="${metaPeopleDS}"
table="meta_people"
tableId="id"
/>
<v:entry id="metaPeople" backendId="metaPeopleBackend">
<v:field id="id" list="false"/>
<v:field id="name"/>
<v:field id="age"/>
<v:field id="gender" vascEntryFieldType="ListField">
<v:vascSelectItemModelString data="male,female,unknown"/>
</v:field>
<v:field id="function" vascEntryFieldType="ListField">
<v:vascSelectItemModelString data="manager,devver,sales"/>
</v:field>
</v:entry>
<mm:csvDataContext
el.id="metaProjectDS"
file="data/demo/meta-project.csv"
/>
<mm:metaModelBackend
id="metaProjectBackend"
dataContextProvider="${metaProjectDS}"
table="meta_project"
tableId="id"
/>
<v:entry id="metaProject" backendId="metaProjectBackend">
<v:field id="id" list="false"/>
<v:field id="name"/>
<v:field id="description" vascEntryFieldType="TextAreaField"/>
</v:entry>
</vasc:root>

View file

@ -0,0 +1,127 @@
<?xml version="1.0" encoding="UTF-8"?>
<vasc:root xmlns:vasc="http://vasc.forwardfire.net/xml/ns/vasc-root"
xmlns:v="http://vasc.forwardfire.net/xml/ns/vasc-lang"
xmlns:mm="http://vasc.forwardfire.net/xml/ns/vasc-backend-metamodel"
xmlns:td="http://vasc.forwardfire.net/xml/ns/vasc-tech-demo"
>
<mm:jndiDataSourceDataContext el.id="DemoManagerDataDC" jndiName="java:jdbc/DemoManagerDataDS" />
<mm:metaModelBackend id="AdminVascUserBackend" dataContextProvider="${DemoManagerDataDC}" table="VASC_USER" tableId="ID" />
<v:entry id="AdminVascUser" backendId="AdminVascUserBackend" displayNameFieldId="username">
<v:field id="id" backendName="ID" list="false" editReadOnly="true" create="false"/>
<v:field id="username" backendName="USERNAME"/>
<v:field id="password" backendName="PASSWORD"/>
<v:field id="description" backendName="DESCRIPTION" vascEntryFieldType="TextAreaField"/>
</v:entry>
<mm:metaModelBackend id="AdminVascUserRoleBackend" dataContextProvider="${DemoManagerDataDC}" table="VASC_USER_ROLE" tableId="ID" />
<v:entry id="AdminVascUserRole" backendId="AdminVascUserRoleBackend" >
<v:field id="id" backendName="ID" list="false" editReadOnly="true" create="false"/>
<v:field id="username" backendName="USERNAME" vascEntryFieldType="ListField">
<v:vascSelectItemModel entryId="AdminVascUser" keyFieldId="username"/>
</v:field>
<v:field id="role" backendName="ROLE"/>
</v:entry>
<mm:metaModelBackend id="AdminVascUserChangeFieldBackend" dataContextProvider="${DemoManagerDataDC}" table="VASC_USER_CHANGE_FIELD" tableId="ID" />
<v:entry id="AdminVascUserChangeField" backendId="AdminVascUserChangeFieldBackend" adminEditReadOnly="true">
<v:field id="id" backendName="ID" list="false" editReadOnly="true" create="false"/>
<v:field id="field" backendName="FIELD"/>
<v:field id="name" backendName="NAME"/>
<v:field id="active" backendName="ACTIVE" vascEntryFieldType="BooleanField"/>
</v:entry>
<mm:metaModelBackend id="AdminVascUserChangeLogBackend" dataContextProvider="${DemoManagerDataDC}" table="VASC_USER_CHANGE_LOG" tableId="ID" />
<v:entry id="AdminVascUserChangeLog" backendId="AdminVascUserChangeLogBackend" adminEditReadOnly="true">
<v:field id="id" backendName="ID" list="false" editReadOnly="true" create="false"/>
<v:field id="user_id" backendName="USER_ID" vascEntryFieldType="ListField">
<v:vascSelectItemModel entryId="AdminVascUser" keyFieldId="id"/>
</v:field>
<v:field id="change_field_id" backendName="CHANGE_FIELD_ID" vascEntryFieldType="ListField">
<v:vascSelectItemModel entryId="AdminVascUser" keyFieldId="id"/>
</v:field>
<v:field id="value_old" backendName="VALUE_OLD"/>
<v:field id="value_new" backendName="VALUE_NEW"/>
</v:entry>
<mm:metaModelBackend id="AdminVascPageBackend" dataContextProvider="${DemoManagerDataDC}" table="VASC_PAGE" tableId="ID" />
<v:entry id="AdminVascPage" backendId="AdminVascPageBackend">
<v:field id="id" backendName="ID" list="false" editReadOnly="true" create="false"/>
<v:field id="slug" backendName="SLUG"/>
<v:field id="title" backendName="TITLE"/>
<v:field id="i18n_key" backendName="I18N_KEY" vascEntryFieldType="BooleanField"/>
<!-- <v:field id="active" backendName="ACTIVE" vascEntryFieldType="BooleanField"/> -->
<v:field id="sitemap" backendName="SITEMAP" vascEntryFieldType="BooleanField"/>
</v:entry>
<mm:metaModelBackend id="AdminVascPagePartBackend" dataContextProvider="${DemoManagerDataDC}" table="VASC_PAGE_PART" tableId="ID" />
<v:entry id="AdminVascPagePart" backendId="AdminVascPagePartBackend">
<v:field id="id" backendName="ID" list="false" editReadOnly="true" create="false"/>
<v:field id="page_id" backendName="PAGE_ID" vascEntryFieldType="ListField">
<v:vascSelectItemModel entryId="AdminVascPage" keyFieldId="id" displayFieldId="slug"/>
</v:field>
<v:field id="title" backendName="TITLE"/>
<v:field id="text" backendName="TEXT"/>
<v:field id="i18n_key" backendName="I18N_KEY" vascEntryFieldType="BooleanField"/>
<v:field id="active" backendName="ACTIVE" vascEntryFieldType="BooleanField"/>
<v:field id="sitemap" backendName="SITEMAP" vascEntryFieldType="BooleanField"/>
<v:field id="part_order" backendName="PART_ORDER" vascEntryFieldType="IntegerField"/>
<v:field id="part_type" backendName="PART_TYPE" vascEntryFieldType="ListField">
<v:vascSelectItemModelString data="HTML,WIKI"/>
</v:field>
</v:entry>
<mm:metaModelBackend id="AdminVascMenuWebBackend" dataContextProvider="${DemoManagerDataDC}" table="VASC_MENU_WEB" tableId="ID" />
<v:entry id="AdminVascMenuWeb" backendId="AdminVascMenuWebBackend">
<v:listOption id="menu_type" backendName="MENU_TYPE" vascEntryFieldType="ListField" optional="true">
<v:vascSelectItemModelEnum enumClass="net.forwardfire.vasc.demo.tech.ejb3.menu.model.VascMenuWebType"/>
</v:listOption>
<v:listOption id="active" backendName="ACTIVE" vascEntryFieldType="ListField" optional="true" defaultValue="FALSE">
<v:vascSelectItemModelString nullLabel="All" data="TRUE,FALSE"/>
</v:listOption>
<v:field id="id" backendName="ID" list="false" editReadOnly="true" create="false"/>
<v:field id="href" backendName="HREF"/>
<v:field id="title" backendName="TITLE"/>
<v:field id="target" backendName="TARGET"/>
<v:field id="active" backendName="ACTIVE" vascEntryFieldType="BooleanField"/>
<v:field id="roles" backendName="ROLES"/>
<v:field id="menu_order" backendName="MENU_ORDER" vascEntryFieldType="IntegerField"/>
<v:field id="menu_type" backendName="MENU_TYPE" vascEntryFieldType="ListField">
<v:vascSelectItemModelEnum enumClass="net.forwardfire.vasc.demo.tech.ejb3.menu.model.VascMenuWebType"/>
</v:field>
</v:entry>
<mm:metaModelBackend id="AdminVascMenuGroupBackend" dataContextProvider="${DemoManagerDataDC}" table="VASC_MENU_GROUP" tableId="ID" />
<v:entry id="AdminVascMenuGroup" backendId="AdminVascMenuGroupBackend">
<v:listOption id="active" backendName="ACTIVE" vascEntryFieldType="ListField" optional="true" defaultValue="FALSE">
<v:vascSelectItemModelString nullLabel="All" data="TRUE,FALSE"/>
</v:listOption>
<v:field id="id" backendName="ID" list="false" editReadOnly="true" create="false"/>
<v:field id="title" backendName="TITLE"/>
<v:field id="active" backendName="ACTIVE" vascEntryFieldType="BooleanField"/>
<v:field id="roles" backendName="ROLES"/>
<v:field id="menu_order" backendName="MENU_ORDER" vascEntryFieldType="IntegerField"/>
</v:entry>
<mm:metaModelBackend id="AdminVascMenuBackend" dataContextProvider="${DemoManagerDataDC}" table="VASC_MENU" tableId="ID" />
<v:entry id="AdminVascMenu" backendId="AdminVascMenuBackend">
<v:listOption id="active" backendName="ACTIVE" vascEntryFieldType="ListField" optional="true" defaultValue="FALSE">
<v:vascSelectItemModelString nullLabel="All" data="TRUE,FALSE"/>
</v:listOption>
<v:field id="id" backendName="ID" list="false" editReadOnly="true" create="false"/>
<v:field id="vascEntryId" backendName="VASC_ENTRY_ID"/>
<v:field id="title" backendName="TITLE"/>
<v:field id="active" backendName="ACTIVE" vascEntryFieldType="BooleanField"/>
<v:field id="roles" backendName="ROLES"/>
<v:field id="menu_order" backendName="MENU_ORDER" vascEntryFieldType="IntegerField"/>
<v:field id="menu_group" backendName="MENU_GROUP">
</v:field>
</v:entry>
</vasc:root>

View file

@ -0,0 +1,7 @@
== Deploy directory ==
-- All *.xml files are deployed on startup.
-- Directory get scanned every 3 secs.
-- Files get redeployed when md5sum changes.
-- No undeploy and no removal of vasc entries only ADD/replace.

View file

@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8"?>
<Server port="8805" shutdown="SHUTDOWN">
<Listener className="org.apache.tomee.catalina.ServerListener" />
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<Listener className="org.apache.catalina.core.JasperListener" />
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<Listener className="net.forwardfire.vasc.demo.server.tomcat.JndiVascDeployerListener"
vascControllerName="vasc/server-tech"
scanPath="conf/server-tech"
scanTime="3"
/>
<Listener className="net.forwardfire.vasc.demo.server.tomcat.JndiVascDeployerListener"
vascControllerName="vasc/server-admin"
scanPath="conf/server-admin"
scanTime="9"
/>
<GlobalNamingResources>
<!-- Config Vasc Tech Demo -->
<Environment name="config/START_GUI" value="true" type="java.lang.Boolean"/>
<Environment name="config/START_EDITOR" value="true" type="java.lang.Boolean"/>
<Environment name="config/DEPLOY_DEBUG" value="true" type="java.lang.Boolean"/>
<Environment name="config/DEPLOY_PATH" value="/demo" type="java.lang.String"/>
<!-- Config Vasc Tech DataSource -->
<Resource name="jdbc/DemoManagerDataDS" auth="Container" type="javax.sql.DataSource"
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
initialSize="1" minIdle="1"
driverClassName="org.h2.Driver"
url="jdbc:h2:tcp://localhost:9092/vasc-demo"
/>
<!-- Config The Vasc Demo Controller -->
<Resource name="vasc/server-tech" auth="Container" type="net.forwardfire.vasc.core.VascController" singleton="true" scope="Shareable"
factory="net.forwardfire.vasc.impl.jndi.JndiVascControllerFactory"
vascControllerProvider="net.forwardfire.vasc.demo.server.core.VascTechDemoControllerConfig"
removeLocal="false"
/>
<Resource name="vasc/server-admin" auth="Container" type="net.forwardfire.vasc.core.VascController" singleton="true" scope="Shareable"
factory="net.forwardfire.vasc.impl.jndi.JndiVascControllerFactory"
vascControllerProvider="net.forwardfire.vasc.demo.server.core.VascTechDemoControllerConfig"
removeLocal="false"
/>
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="8899" protocol="HTTP/1.1" connectionTimeout="5000" redirectPort="9988" />
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.JAASRealm"
appName="vasc-auth-server"
userClassNames="org.apache.openejb.core.security.jaas.UserPrincipal"
roleClassNames="org.apache.openejb.core.security.jaas.GroupPrincipal"
/>
<!--
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.DataSourceRealm"
dataSourceName="jdbc/DemoManagerDataDS"
userTable="vasc_user"
userRoleTable="vasc_user_role"
userNameCol="username"
userCredCol="password"
roleNameCol="role"
digestEncoding="UTF-8"
/>
<Realm className="net.forwardfire.vasc.demo.server.tomcat.MongoRealm"
hostname="localhost" port="27017" database="testdb" authUser="" authPass=""
userCollection="site_user"
userField="username"
userPassField="password"
roleCollection="site_user_role"
roleField="role"
roleUserField="site_user_id"
roleUserIdRef="true"
digestEncoding="UTF-8"
/>
<Realm className="org.apache.catalina.realm.JNDIRealm"
connectionURL="ldap://localhost:389"
userBase="ou=people,dc=mycompany,dc=com"
userSearch="(mail={0})"
userRoleName="memberOf"
roleBase="ou=groups,dc=mycompany,dc=com"
roleName="cn"
roleSearch="(uniqueMember={0})"
/>
</Realm>
-->
<Host name="localhost" unpackWARs="true" autoDeploy="true"
appBase="workdir/webapps" workDir="workdir/work"
>
<Valve className="ch.qos.logback.access.tomcat.LogbackValve"
quiet="true" filename="conf/logback-access.xml"
/>
<Valve className="org.apache.catalina.valves.CrawlerSessionManagerValve"
crawlerUserAgents=".*[bB]ot.*|.*ahoo.*|.*oogle.*"
sessionInactiveInterval="60"
/>
<Valve className="net.forwardfire.vasc.demo.server.tomcat.AuthSessionTimeoutValve"
logInfo="true" minTimeout="30" maxTimeout="3600" authTimeout="1200"
/>
</Host>
</Engine>
</Service>
</Server>

View file

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<tomee>
<!-- This is ugly non-xml -->
<Container id="ServerSingletonContainer" type="SINGLETON">
AccessTimeout = 30 seconds
</Container>
<Container id="ServerStatefulContainer" type="STATEFUL">
AccessTimeout = 30 seconds
Passivator org.apache.openejb.core.stateful.SimplePassivater
TimeOut 20
Frequency 60
Capacity 1000
BulkPassivate 100
</Container>
<Container id="ServerStatelessContainer" type="STATELESS">
AccessTimeout = 30 seconds
MaxSize = 10
MinSize = 0
StrictPooling = true
MaxAge = 0 hours
IdleTimeout = 0 minutes
</Container>
<!--
# For more examples of database configuration see:
# http://openejb.apache.org/3.0/databases.html
-->
<!--
<Resource id="My DataSource" type="DataSource">
JdbcDriver org.hsqldb.jdbcDriver
JdbcUrl jdbc:hsqldb:file:data/hsqldb/hsqldb
UserName sa
Password
JtaManaged true
</Resource>
<Resource id="My Unmanaged DataSource" type="DataSource">
JdbcDriver org.hsqldb.jdbcDriver
JdbcUrl jdbc:hsqldb:file:data/hsqldb/hsqldb
UserName sa
Password
JtaManaged false
</Resource>
-->
<!-- Search path for ee/web apps -->
<Deployments dir="apps/" />
</tomee>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,10 @@
id,name,gender,age,function
1,"mike",male,18,manager
2,"michael",male,19,manager-co
3,"peter",male,18,devop
4,"bob",male,17,devver
5,"barbara, barb",female,18,devver
6,"charlotte",female,18,devver
7,"hillary",female,20,tester
8,"vera",female,17,tester
9,"carrie",female,17,sales
1 id name gender age function
2 1 mike male 18 manager
3 2 michael male 19 manager-co
4 3 peter male 18 devop
5 4 bob male 17 devver
6 5 barbara, barb female 18 devver
7 6 charlotte female 18 devver
8 7 hillary female 20 tester
9 8 vera female 17 tester
10 9 carrie female 17 sales

View file

@ -0,0 +1,4 @@
id,name,description
1,"fix-website","Move all pages to plain text so it is printable when there is no power."
2,"refactor-HJY","Make function HJY abstract and use generic logic to improve total cpu lag on system"
3,"custum-graph","Big custumer foobar want really this killer graph woobly line point stuff."
1 id name description
2 1 fix-website Move all pages to plain text so it is printable when there is no power.
3 2 refactor-HJY Make function HJY abstract and use generic logic to improve total cpu lag on system
4 3 custum-graph Big custumer foobar want really this killer graph woobly line point stuff.

View file

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<root>
<level>
<levelValue name="OFF" description="No logging output"/>
<levelValue name="INFO" description="Normal loggin should be almost none."/>
<levelValue name="DEBUG" description="Log as debug mode."/>
<levelValue name="TRACE" description="Logs every method call."/>
<levelValue name="FINE"/>
</level>
<application name="foobar" type="test">
<logLevel group="com.foo.bar.test" level="INFO"/>
<logLevel group="com.foo.bar.models" level="FINE"/>
<logLevel group="com.foo.bar.web.beans" level="TRACE"/>
</application>
<application name="example" type="test">
<logLevel group="com.example.test" level="INFO"/>
<logLevel group="com.example.models" level="INFO"/>
<logLevel group="com.example.remote" level="OFF"/>
</application>
<application name="someapp" type="test">
<logLevel group="net.some.app.android" level="INFO"/>
<logLevel group="net.some.app.android.x4o" level="FINE"/>
<logLevel group="net.some.app.android.server.impl.task" level="OFF"/>
</application>
</root>

View file

@ -0,0 +1 @@
1234-56-78 90:12:34,123 INFO [install] Thank you for trying this vasc demo tech.

View file

@ -0,0 +1 @@
All *.xml in this dir are automaticly started.

View file

@ -0,0 +1,20 @@
Readme for Vasc Tech Demo application.
To start:
execute: run.sh or run.bat
Custom i18n keys web:
Application.web.meta.robots = index, follow
Application.web.meta.description = Vasc Tech Demo Web Frontends
Application.web.meta.keywords = demo,forwardfire,x4o,vasc,java
Application.web.header.logo.alt = Vasc Tech Demo Logo
Application.web.footer.center = Vasc Tech Demo Web Based on JSF and Faclets and Richfaces.
Application.web.footer.left = Copyright &copy; 2012
Application.web.footer.right = Version 0.4.x<i>(beta)</i>

View file

@ -0,0 +1,38 @@
::
:: Copyright (c) 2011, Willem Cazander
:: All rights reserved.
::
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided
:: that the following conditions are met:
::
:: * Redistributions of source code must retain the above copyright notice, this list of conditions and the
:: following disclaimer.
:: * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
:: the following disclaimer in the documentation and/or other materials provided with the distribution.
::
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
:: EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
:: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
:: THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
:: OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
:: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
:: TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
:: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
::
@echo off
setlocal enableextensions
:: Run in app dir
cd /d %~dp0
:: Config variables
set JAVA_OPTS=-Xms64m -Xmx256m
set MAIN_CLASS=net.forwardfire.vasc.demo.server.core.VascTechDemoStartup
set CP=libs\*
:: Launch application
java %JAVA_OPTS% -cp "%CP%" %MAIN_CLASS%
endlocal
:: EOF

View file

@ -0,0 +1,38 @@
#!/bin/sh
#
# Copyright (c) 2011, Willem Cazander
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided
# that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this list of conditions and the
# following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
# the following disclaimer in the documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
# THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Run in app dir
cd `dirname $0`;
# Config variables
JAVA="java";
JAVA_OPTS="-Xms64m -Xmx256m";
MAIN_CLASS="net.forwardfire.vasc.demo.server.core.VascTechDemoStartup";
CP=`echo libs/*.jar | sed 's/ /:/g'`;
# Launch application
$JAVA $JAVA_OPTS -cp $CP $MAIN_CLASS;
# EOF