alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Jetty example source code file (runTerracottaNode.sh)

This example Jetty source code file (runTerracottaNode.sh) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Jetty tags/keywords

classpath, classpath, java_home, jetty_home, jetty_home/lib/jetty, jetty_home/lib/jetty-util, port, port, tc_boot_jar, tc_boot_jar, tc_config_path, tc_config_path, tc_home, xbootclasspath/p

The Jetty runTerracottaNode.sh source code

#!/bin/sh

# This is a bit clunky for now and will only work within a source build of full jetty

PORT=8081
 [ $# -eq 1 ] && PORT=$1 && shift;

cd $(dirname $0)/..
DEMO_HOME=$(pwd)
JETTY_HOME=../..
JETTY_VERSION=6.1-SNAPSHOT

TC_HOME=/java/terracotta-trunk
TC_BOOT_JAR=$TC_HOME/dso-boot-hotspot_linux_150_08.jar
TC_CONFIG_PATH="$DEMO_HOME/etc/tc-config.xml"

CLASSPATH=\
$JETTY_HOME/lib/servlet-api-2.5-$JETTY_VERSION.jar:\
$JETTY_HOME/lib/jetty-util-$JETTY_VERSION.jar:\
$JETTY_HOME/lib/jetty-$JETTY_VERSION.jar:\
$JETTY_HOME/contrib/cometd/target/classes:\
$DEMO_HOME/target/classes

set -x

${JAVA_HOME}/bin/java \
    -Dtc.install-root=${TC_HOME} \
    -Xbootclasspath/p:$TC_BOOT_JAR \
    -Dtc.config=$TC_CONFIG_PATH \
    -cp "$CLASSPATH" \
    org.mortbay.cometd.demo.Main \
    "$PORT"

Other Jetty examples (source code examples)

Here is a short list of links related to this Jetty runTerracottaNode.sh source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.