History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: AMATH-857
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Martin Homik
Reporter: Martin Homik
Votes: 0
Watchers: 1
Operations

Link this issue to another issue
If you were logged in you would be able to see more operations.
ActiveMath

Assembly Tool is not aware of auto-logout

Created: 2006-07-19 09:07   Updated: 2006-11-20 15:11
Component/s: Tools: Assembly Tool
Affects Version/s: 1.0b4
Fix Version/s: 1.0

Time Tracking:
Not Specified


 Description  « Hide
Auto logout does not close the assembly tool nor does it notify it. Hence students keep working with the assembly tool, but the session is closed. Interaction with ActiveMath is not possible any more. Exceptions are not caught. No feedback is provided.

 All   Comments   Work Log   Change History   Version Control   FishEye   Crucible   Related Builds      Sort Order: Ascending order - Click to sort in descending order
Stefan Winterstein - 2006-11-09 10:11
I remember OLM has this problem, too.

There is now way for Activemath to tell Tomcat that the HTTP session "has activity".

The only way I see is for the applet to periodically request an arbitrary URL from ActiveMath2, which will keep the session alive.


Stefan Winterstein - 2006-11-09 10:11
A good URL would be:

main/userTracking.cmd?event=FocusChanged&windowName=AssemblyTool&gotFocus=true

It could be sent every 60 seconds, say, and additionally on window focus changes. The gotFocus parameter could indicate if the window is actually active.


Martin Homik - 2006-11-10 11:11
Stefan, do you have an idea how to invoke the link. I implemented a thread that should invoke the link you are suggesting. I used the javax.jnlp.BasicService class for that. I apply the link on the showDocument method. Unfortunately, with each method invocation it opens a new tab in the browser. At least on Linux. Can you recommend a more eloquent method?

Martin Homik - 2006-11-11 20:11
I used
new URL(<URL>),openConnection().connect();
for signaling ActiveMath on ongoing activities.After a one hour test I got logged out automatically. Hence, this approach does not work.

Martin Homik - 2006-11-20 15:11
It is sufficient to "send" a periodic focus changed event. The following lines are embedded in a endless thread:

ping = "main/userTracking.cmd?event=FocusChanged&windowName=AssemblyTool&gotFocus=true";
server = <dynamically generated>;

URL url = new URL(server+ping);
url.getContent();


Martin Homik - 2006-11-20 15:11
Resolved.