S70java

Synopsys


#
# We want to deploy J2EE environment in the most
# controlled manner possible. The best project for doing
# this appears to be the JPackage http://www.jpackage.org
# initiative.
# 
# So we can use this, we are going to use the JPackage
# recommended wrapping of Java and it's associated packages
# Before we can get TOMCAT and mod_jk2 in we need to get JAVA into place
#
# For Fedora Core 3 and above:
# JPackage utils are provided in the everything install
#

Script


set -x
if [ "$OS" != "rhel4" ]; then
# We "like" Sun's JDK
echo "%Post: Install Sun's Java"
##rpm -i /mnt/source/kickstart/rpms/sun/j2sdk-1_4_2_06-linux-i586.rpm
rpm -i /mnt/source/kickstart/rpms/sun/jdk-1_5_0_04-linux-i586.rpm

# and the jpackage compatibility stuff provides java and java-devel
##rpm -i /mnt/source/kickstart/rpms/jpackage/current/free/java-1.4.2-sun-compat-1.4.2.06-1jpp.noarch.rpm
fi
# For EL4 install the RH packaged java, because it's easier and more supported

# Now either run an RHAPS J2EE/Tomcat install
if [ "$OS" == "rhel3" ]; then
  /mnt/source/kickstart/scripts/s70java_RHAPS.sh
elif [ "$OS" == "rhel4" ]; then
  /mnt/source/kickstart/scripts/s70java_RHAPS-rhel4.sh
else
# or run a jpackage J2EE/Tomcat install
  /mnt/source/kickstart/scripts/s70java_jpackage-$OS.sh
fi

# However, because they're fundamentally the same things (just varying in
# verson numbers), we can use identical configurations with them. (I think)
/mnt/source/kickstart/scripts/s70java_config.sh

#
#
set +x

Examples and Testing





Marked up in XHTML - ©2005 Thoughtful Solutions Ltd.