Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » User-based workbench save
User-based workbench save [message #540663] Wed, 16 June 2010 22:01
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
For some reason I have been all about the hacks lately...

So I needed a quick way to implement user-based workspace saving and I came up with the following poor man's approach:


is performed in the ApplicationWorkbenchAdvisor, then workspace save is based on session id. Which works great when you refresh the browser or keep the same cookie between browser usages.

But if I want the workspace settings to be usable between various browsers and computers then I can add this to my entrypoint before workbench start:

if (userId != null) {
       ContextProvider.getSession().setAttribute( "settingStore",userid);

Then essentially the setting store for the user is keyed by the user's id, so wherever the user logs in, their workbench will be setup with their stored settings.

Does anyone have a more mainstream approach to share?

[Updated on: Wed, 16 June 2010 22:05]

Report message to a moderator

Previous Topic:Setting vm-arugements or properties for a tomcat deploy
Next Topic:integrating spring and rap
Goto Forum:

Current Time: Mon Feb 26 16:54:07 GMT 2024

Powered by FUDForum. Page generated in 0.02087 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top