Error JBOSS Timeout after 300 And Operation roll back

Error diatas terjadi jika proses deployment atau  application run di JBoss terlalu lama dan melebihi batas waktu default dari jboss yaitu 300 detik.

Problem saya diatas terjadi ketika mau menjalankan aplikasi backend, karena memang cukup banyak sql command yang harus dijalankan untuk mengisi master data. :P

Berikut ini adalah tambahan configurasi yang saya lakukan agar error di atas tidak muncul lagi.

Program Argument

-mp "D:/Source/jboss-eap-6.4/modules" -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone 
-b localhost --server-config=standalone.xml -Djboss.server.base.dir=D:\Source\jboss-eap-6.4\standalone 
-Djboss.as.management.blocking.timeout=1200 

VM Argument

"-Dprogram.name=JBossTools: JBoss Enterprise Application Platform 6.1+" -server -Xms1024m -Xmx1024m 
-XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true 
-Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 
-Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true "
-Dorg.jboss.boot.log.file=D:/Source/jboss-eap-6.4/standalone/log/boot.log" 
"-Dlogging.configuration=file:/D:/Source/jboss-eap-6.4/standalone/configuration/logging.properties" 
"-Djboss.home.dir=D:/Source/jboss-eap-6.4" -Dorg.jboss.logmanager.nocolor=true 
-Djboss.bind.address.management=localhost 

Good Luck :)

Simple JBOSS EAP services script

Code Bash Script untuk menjalankan dan mematikan services JBoss Eap, lupa dulu referensinya dari mana dan sudah saya rubah disesuaikan dengan server centos saya.

#!/bin/sh
processName="jboss-eap";
echoName="jboss services process";
processDetails="ps -ef | grep $processName";
totalRunningProcess=$(eval  $processDetails | wc -l);
usage="Usage : $0 start | stop";
processStartCommand="nohup /home/mamat/jboss-eap-6.1/bin/standalone.sh -b 0.0.0.0 > /dev/null 2>&1 &";
commandToGetProcessPids="eval $processDetails | tr -s ' ' | cut -d ' ' -f 2";
if [ $# -lt 1 ]
then
  echo $usage;
fi
case "$1" in
"stop" )
 if [ $totalRunningProcess -eq "1" ]
 then
  echo "$echoName is not running....";

 else
  echo "stopping $echoName....";
  processToKill=$($commandToGetProcessPids);
  processToKillPidsArray=$(echo $processToKill);
  set -- $processToKillPidsArray;
  kill -9 $1 $2;
  echo "$echoName stopped....";
 fi
;;
"start" )
 if [ $totalRunningProcess -gt "2" ]
 then
  echo "$echoName is already running....";
 else
  echo "starting $echoName....";
  eval $processStartCommand;
 fi
    ;;
*)
 echo $usage;