NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Scrollbar
iconsfalse

Problem: My caArray inactivity timeout delay stays stuck at 30 minutes no matter what I set the delay setting to in JBoss.

Topic: caArray Usage

Release: caArray 2.0 and above (JBoss 4 ONLY – does not apply to JBoss 5)

Date entered: 10/27/2011

Solution

caArray has its own internal mechanism for altering the timeout delay; this mechanism overrides any timeout setting specified by your JBoss instance.

caArray 090 – How do I change the inactivity session timeout delay?

This article explains how to change the inactivity session caArray's timeout delay by editing a setting in the 'web.XML' file found in the 'caarray.EAR' application archive.

...

Wiki Markup
\\
*_\[caArray installation folder\]_{_*}*\{*{*}_}\[JBoss installation folder\]_{_*}*\server\deploy*
\\
In our example, the caArray installation folder is named 'caarray' and the JBoss installation folder is named 'jboss-4.0.5.GA', so the fully qualified path of the EAR archive is:
\\
*caarray\jboss-4.0.5.GA\server\deploy\caarray.ear*
\\

...

Wiki Markup
\\
*_\[WAR folder path\]_{_*}*\WEB-INF*
\\

Summary and Review of Procedure

...

  1. Log out of any existing caArray session and shut down any running JBoss instance
  2. Extract the 'caarray.EAR' archive using WinZip or your archive utility of choice.
  3. Locate the 'caarray.WAR' archive found in the extracted EAR folder, then extract this archive.
  4. Locate the 'web.XML' file found in the 'WEB-INF' folder within the extracted WAR folder and open it in a text editor like Windows Notepad.
  5. Find the <session-timeout> tag in 'web.XML' and change the corresponding value to a positive integer representing the number of minutes before the session will time out due to user inactivity.
  6. Save your changes to 'web.XML'.
  7. Use your archive utility to re-create the 'caarray.WAR' archive, incorporating the modified 'web.XML' file. (You can create the archive as a ZIP file, then rename the ZIP extension to WAR, so long as you do not alter the structure of the WAR folder hierarchy.)
  8. Use your archive utility to re-create the 'caarray.EAR' archive, incorporating the re-created 'caarray.WAR' file from the previous step. (You can create the archive as a ZIP file, then rename the ZIP extension to EAR, so long as you do not alter the structure of the EAR folder hierarchy.)
  9. Wiki Markup
    Copy the re-created 'caarray.EAR' file to the path *_\[caArray installation folder\]_{_*}*\{*{*}_}\[JBoss installation folder\]_{_*}*\server\deploy{*}, overwriting the existing 'caarray.EAR'.
  10. Re-launch JBoss and log back into caArray.
  11. To test the new timeout delay, perform any function in your caArray session, then refrain from using the program for at least the number of minutes you specified in 'web.XML'. Make sure not to move your mouse arrow or press any keys on the keyboard during this time.
  12. To verify that your session has timed out, try to perform another function in caArray. If the session has indeed timed out, you should be re-directed to the login screen.

Have a comment?

Please leave your comment in the caArray End User Forum.

Scrollbar
iconsfalse