Tuesday, 2 September 2014

JBOSS 7_1_1_1_Final Version Application Deployment

 Where the JBoss-AS-7.1.1.Final instance have been installed?
/<<Server Path>>/app/jboss-as-7.1.1.Final


3. How to start partners application?
  --Goto  /<<Server Path>>/app/jboss-as-7.1.1.Final/bin
  --Type /nohup ./standalone.sh > nohup.out &

4. Which Java version is used for Partners Production and which location JRE was installed?
- We use jre1.7.0
-JRE Installation location is /u05/app/jre1.7.0

5. How to locate the JRE instance used by JBOSS 7 AS?
-Run ps -ef | grep 'jre'
-Look for JRE instance similar to the below listed one.
    root 28021 27996   0 11:44:29 ?           2:23 /u05/app/jre1.7.0/bin/java -D [Standalone] -server -XX:+TieredCompilation -Xms64

6. Ho to stop partners application?
-Type the following command
sudo kill -9 <process id>
sudo password: pass4theday

7. How partners application WAR file can be deployed in production environment?

Step #1: FTP the partners <<APP_NAME>>.war into the deployment folder
/u14/app/jboss-as-7.1.1.Final/standalone/deployments

Step #2: create an empty file in the following file format name
<<APP_NAME>>.war.dodeploy

This file name indicates that the application has to be deployed/redepoyed after any changes in the war file content.

Step #3: After the successful deployment, the file <<APP_NAME>>.war.dodeploy will be been renamed into <<APP_NAME>>.war.deployed

8. What files to be modified to point the preferred JAVA_HOME location?

The File to be modified to make JAVA_HOME entry is /u14/app/jboss-as-7.1.1.Final/bin/standalone.conf
Make sure you have the following JAVA_HOME entry in the file.


#
# Specify the location of the Java home directory.  If set then $JAVA will
# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java".
#
JAVA_HOME="/u05/app/jre1.7.0"

9. How to configure the preferred port (other than 8080) in JBoss-AS-7.1.1.Final Version?

You can configure JBoss instance to listen to a particular port.
The file which needs to be modified for port configuration is  /u14/app/jboss-as-7.1.1.Final/bin/standalone.sh

Make sure you are making the highlighted changes in the following section.

 if [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "x" ]; then
      # Execute the JVM in the foreground
      eval \"$JAVA\" -D\"[Standalone]\" $JAVA_OPTS \
         \"-Dorg.jboss.boot.log.file=$JBOSS_LOG_DIR/boot.log\" \
         \"-Dlogging.configuration=file:$JBOSS_CONFIG_DIR/logging.properties\" \
         -jar \"$JBOSS_HOME/jboss-modules.jar\" \
         -mp \"${JBOSS_MODULEPATH}\" \
         -jaxpmodule "javax.xml.jaxp-provider" \
         org.jboss.as.standalone \
         -Djboss.home.dir=\"$JBOSS_HOME\" \
         -Djboss.socket.binding.port-offset=900 \
         -b=0.0.0.0 \
         "$@"
      JBOSS_STATUS=$?
   else
      # Execute the JVM in the background
      eval \"$JAVA\" -D\"[Standalone]\" $JAVA_OPTS \
         \"-Dorg.jboss.boot.log.file=$JBOSS_LOG_DIR/boot.log\" \
         \"-Dlogging.configuration=file:$JBOSS_CONFIG_DIR/logging.properties\" \
         -jar \"$JBOSS_HOME/jboss-modules.jar\" \
         -mp \"${JBOSS_MODULEPATH}\" \
         -jaxpmodule "javax.xml.jaxp-provider" \
         org.jboss.as.standalone \
         -Djboss.home.dir=\"$JBOSS_HOME\" \
         -Djboss.socket.binding.port-offset=900 \
         -b=0.0.0.0 \
         "$@" "&"
      JBOSS_PID=$!
      # Trap common signals and relay them to the jboss process
      trap "kill -HUP  $JBOSS_PID" HUP
      trap "kill -TERM $JBOSS_PID" INT
      trap "kill -QUIT $JBOSS_PID" QUIT
      trap "kill -PIPE $JBOSS_PID" PIPE
      trap "kill -TERM $JBOSS_PID" TERM
      if [ "x$JBOSS_PIDFILE" != "x" ]; then
        echo $JBOSS_PID > $JBOSS_PIDFILE
      fi

The above highlighted line indicates that I am configuring my JBoss instance to listen port 8980. (i.e, 8080 is default and adding additional offset 900 to become 8980)

10. What changes I should do in partners.properties file?

Make sure you are pointing to the production database i.e, <<SERVER_NAME>>

No comments:

Post a Comment