Friday, May 30, 2008

Hermes JMS - Open Source JMS Console

HermesJMS is tools that helps to trace jms messages state.


Quick setup for BEA 10.2 and Hermes v1.12 on Linux


1. Open the /bin/hermes.sh in your favorite editor. Add path to your JAVA_HOME after comment "# Setup the Java VM".
e.g.

JAVA_HOME="/data/bin/jdk1.6.0_03"
export JAVA_HOME"


Note: Hermes IS built with jvm 1.6 therefore you have to use jvm version 1.6 for running one, but
BEA 10.2 is run with jvm 1.5. This combination create some problem with classLoader look here ,the solve is using -Dsun.lang.ClassLoader.allowArraySyntax=true. Add it in jvm running command


2. Launch Hermes by calling the hermes.sh
3. Create new JMS session.

at first you have to set provider :



It's not add this library in class path therefore You have to add it in classpath of jvm.
e.g.
LOCALCLASSPATH=$LOCALCLASSPATH:/data/beas/bea102_32/wlserver_10.0/server/lib/weblogic.jar
export LOCALCLASSPATH


then go back to tab "sessions" and configure it. Look at the picture below




Destinations is not needed to fill. They fill automatically by using "Discover queues and topics from the provider"


4.Choose one of destination then create new watch Actions>Watch>New Watchs..


resources:
1. http://dev2dev.bea.com/cs/user/blog?file=/blog/jbayer/archive/2008/01/hermes_jms_open.html
2. http://www.hermesjms.com/confluence/display/HJMS/Home

Monday, May 19, 2008

Some useful commands for working with Solaris 5

  1. Reading info about running process:

  2. $ ps -ef

  3. Checking check sum

  4. $ digest -a md5 -v /bin/ls
    md5 (/bin/ls) = b57e173220af4b919f1d4bef9db11482


  5. Show list dynamic dependencies of executable files or
    shared objects


  6. $ ldd -v solaris-x86-32/libyjpagent.so

  7. Look at ports of processes


  8. pfiles `ptree | awk '{print $1}'` | egrep '^[0-9]|port:'
    pfiles PID | egrep '^[0-9]|port:'