Tuesday Jul 22, 2008
Watching MQ Traffic with OpenSSO Express
If you are using the new OpenSSO Express build 4.5 and want to watch as session updates, additions, or deletions are recorded to the amsessiondb.log when session failover is enabled, you must set the AMSESSIONDB_ARGS attribute with a value of "-v" in the amsfo.conf file. Then you can grep for MQ traffic with the following:
tail -f amsessiondb.log > a grep WRITE a | wc; grep DELETE a | wc; wc aHere is an example of what the log file that records writes looks like:
Starting... true
/usr/jdk/instances/jdk1.5.0/jre/bin/java -Xms128m -Xmx512m -classpath /opt/opensso/instance1/sfo/jmq/mq/lib/imq.jar:/opt/opensso/instance1/sfo/jmq/mq/lib/jms.jar:/opt/opensso/instance1/sfo/ext/je.jar:/opt/opensso/instance1/sfo/locale:/opt/opensso/instance1/sfo/lib/am_sessiondb.jar:. com.sun.identity.ha.jmqdb.client.FAMHaDB
Initailizing and connecting to the Message Queue server ...
Checking for peer BDB daemon processes. Please wait ...
Successfully started.
OP=WRITE
service=session
WRITE message received.
>>>>>>>>>>>>>> Write by Primary Key : -1279015892
OP=WRITE
service=session
WRITE message received.
>>>>>>>>>>>>>> Write by Primary Key : -1279015892
OP=WRITE
service=session
WRITE message received.
>>>>>>>>>>>>>> Write by Primary Key : -1279015892
OP=WRITE
service=session
WRITE message received.
>>>>>>>>>>>>>> Write by Primary Key : -1279015892
OP=READ
service=session
READ message received.
>>>>>>>>>>>>>> Read by Primary Key : -1098220087
>>>>>>>>>>>>>> Found record !
OP=WRITE
service=session
WRITE message received.
>>>>>>>>>>>>>> Write by Primary Key : -1098220087
OP=WRITE
service=session
WRITE message received.
>>>>>>>>>>>>>> Write by Primary Key : -1098220087
Now go eat some cannibals with Toto Coelo. Mmm, mmm, good.
Posted at 12:00AM Jul 22, 2008 by Michael Teger in Sun | Comments[2]

I think you forgot to add the tutorial on how to setup session failover using openSSO :)
or maybe session failover 101 - the easy way ...
but thanks doc, keep 'em coming!
Posted by ssonewb on July 29, 2008 at 05:32 PM PDT #
Did you look here:
http://docs.sun.com/app/docs/doc/819-5899/gcdup?a=view
It's for AM 7.1 and I don't think this book has yet been updated for OpenSSO but it should get you started.
Posted by DocTeger on July 30, 2008 at 06:28 AM PDT #