Hi,I'm looking for a little guidance on how to solve the following problem.


*First the description:*

The first thing to note, is that our apps all live behind SiteMinder, so
that when a users arrives at our application they have already been through
the credential validation process and the remote_users request header has
their valid userId.

I have two related Applications. AppI and AppM.  Each App allows a group of
users to CRUD a set of Documents.

The users enter the app, and are presented with a Queue of Documents
presented as a table.  The first column of that table for the AppM workers
is an identifier for the document wrapped in a DirectLink.  When they click
on that identifier (anchor), they go to a second page, where they can view
or edit the selected document.


The second App, AppI does a similar presentation for a different set of
Documents,  AppI type documents. Click on the direct link and the AppI
document is presented to be edited or viewed.

Each of these Applications resides in a separate JBOSS container.

The latest requirement is that AppI users need a way to view certain AppM
documents.  There is a read only view of the document in AppM, so the
feeling was that the quickest way to give the AppI users a view into AppM
documents was to link from AppI to AppM's read only view.

AppM links look like:

https://appm.ourDomain.com/appM/Home,mNumberLink.sdirect?sp=S1737

In the AppI Queue I coded up a Generic Link that looks just like the links
created in AppM.

https://appm.ourDomain.com/appM/Home,mNumberLink.sdirect?sp=S1737


*The problem*:

The first time the users clicks the link they are sent to a
StaleSessionException page.  At that point, they are given the choice to
click the refresh session page, and then all is good. Subsequent clicks on
other links, or the same link always work.

I tried to solve the problem with the initial link  by creating my own
StaleSession page, and in the pagevalidate method find the userId, create a
valid user and then throw a page redirect to the same page they were
originally going to, but that, has not work.

What I need is some idea of how to catch that stale session and restart a
fresh new session. I want the first click through to work like all the other
click throughs.

Tony Giaccone

Reply via email to