How to obtain getLastAccessedTime session parameter via CLI?

Solution Verified - Updated -

Issue

  • The kb article describes getting the JSESSIONIDS and the respective LAST_ACCESS_TIME as:
JSESSIONIDS=`./twiddle.sh -s localhost:1099 -u admin -p admin invoke "jboss.web:host=localhost,path=/webapp,type=Manager" 
......
......
LAST_ACCESS_TIME=`./twiddle.sh -s localhost:1099 -u admin -p admin invoke "jboss.web:host=localhost,path=/webapp,type=Manager" getLastAccessedTime $JSESSIONID`

I was looking for getting those info like parameters JSESSIONID and LAST_ACCESS_TIME etc from jboss_cli.sh. Can you provide the corresponding commands for those ? Are there other properties for JSESSIONID other than the LAST_ACCESS_TIME ? We are trying to troubleshoot our intermittent session expiration problem but the examples in kb article were in twiddle.sh (for EAP5 only).

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.