To automate weblogic managed server startup steps, need to check Admin server status first. Then start managed server. Check managed server status before continuing next steps like bringing up services deployed. Found to be useful to use weblogic.Admin option to achieve this easily,
Here is the step to check Admin server status
. setEnv.sh
$JAVA_HOME/bin/java weblogic.Admin -url $admin_server PING 1 >/dev/null 2>&1
admin_server_status=$?
Step to check Managed server status
ms_server_status=`$JAVA_HOME/bin/java weblogic.Admin -url $admin_server GETSTATE $app_name grep -c RUNNING `
Wednesday, February 27, 2008
Tuesday, February 12, 2008
write small script to simplify deployment/bounce
Its good to automate all the process related to component bounce, application server bounce, deployment steps etc. It may look like a simple steps and need not require automation. But when we work on the same component for quite a long time we would have spent more time for just copy/pasting comments.
Making it as a simple script has several advanatges,
1. we dont need to remember each and individual commands and dont need to remember authentication details
2. all typo can be avoided
3. In the long run this can save lot of time
4. anyone can easily manage
example of scripting managed weblogic server:
startDemoApp1.sh
umask 002
WLS_USER=admin
WLS_PW=admin123
export WLS_USER
export WLS_PW
nohup ./startManagedWebLogic.sh demoapp1 t3://localhost:7200 $* > demoapp1.out 2>&1 &
stopDemoApp1.sh
./stopWebLogic.sh admin admin123 demoapp1 t3://localhost:7200
Making it as a simple script has several advanatges,
1. we dont need to remember each and individual commands and dont need to remember authentication details
2. all typo can be avoided
3. In the long run this can save lot of time
4. anyone can easily manage
example of scripting managed weblogic server:
startDemoApp1.sh
umask 002
WLS_USER=admin
WLS_PW=admin123
export WLS_USER
export WLS_PW
nohup ./startManagedWebLogic.sh demoapp1 t3://localhost:7200 $* > demoapp1.out 2>&1 &
stopDemoApp1.sh
./stopWebLogic.sh admin admin123 demoapp1 t3://localhost:7200
Thursday, February 7, 2008
UML Tools
Not all the freeware for UML is great. Each has its own advantages and disadvantages. So we are force to use Low cost product. I have been using enterprise architect tool for past 7 days and its cool. It has got all the basic feature and greatly integrated with svn. With the basic desktop version could share the project and separate each modules into separate file.
It has got great reporting option to create both rtf and html versions. For the kind of price it is pretty good tool.
It has got great reporting option to create both rtf and html versions. For the kind of price it is pretty good tool.
Subscribe to:
Posts (Atom)