Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Workbench and Sessions
Workbench and Sessions [message #1386549] Wed, 18 June 2014 08:45 Go to next message
Clément Chausson is currently offline Clément ChaussonFriend
Messages: 16
Registered: November 2013
Junior Member
Hello,

I currently work on a big RAP application which has been migrated from a RCP application.

My current goal is to provide a multi-user access to this application.

My problem is :

When i launch the application and access to it with the browser for the first time : no problem.
When i try to access again to this application (with a second tab or in an other browser) i access to the initial application session and i needed to refresh the page to access to a other session.

So my question is : How to have a session for each workbench/page/tab/user ?

I tried to use the session singleton but i don't know how apply it on workbench in my application.

I would be very grateful for any help you could might be able to give me on my problem.

Thank you.

Clément
Re: Workbench and Sessions [message #1386552 is a reply to message #1386549] Wed, 18 June 2014 08:57 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1921
Registered: July 2009
Senior Member
Hi,
you have a separate Workbench instances for every UI session (see
Workbench#getInstance()). If you have static instances in your code, you
should replace them with UI session singletons (see
SingletonUtil#getSessionInstance or SingletonUtil#getUniqueInstance).
HTH,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Workbench and Sessions [message #1386569 is a reply to message #1386552] Wed, 18 June 2014 09:37 Go to previous messageGo to next message
Clément Chausson is currently offline Clément ChaussonFriend
Messages: 16
Registered: November 2013
Junior Member
Hi Ivan,

First, thanks for you reply.

Do you know why i need to refresh the page to get a new workbench instance ?
This is my current problem, i just need a new instance for each new access...

Clément

[Updated on: Wed, 18 June 2014 09:42]

Report message to a moderator

Re: Workbench and Sessions [message #1386571 is a reply to message #1386569] Wed, 18 June 2014 09:51 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1921
Registered: July 2009
Senior Member
Hi,
probably something in your code. Check all your static instances as a
start. Our Workbench Demo [1] is working fine in multiple tabs.
BTW... which RAP version are you using?

[1] http://rap.eclipsesource.com/demo/stable/workbench/
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Workbench and Sessions [message #1386605 is a reply to message #1386571] Wed, 18 June 2014 14:56 Go to previous messageGo to next message
Clément Chausson is currently offline Clément ChaussonFriend
Messages: 16
Registered: November 2013
Junior Member
Hi,
My RAP version is 2.2
I will try to check my static instances but it is a very huge application with hundred of static attributes so it will take a long time...
The workbench demo doesn't work since i deleted rap.eclipsesource cookies on my browser
And before deleting cookies i had always the same instance (even if i tried a other browser)

Thanks for helping,
Clément
Re: Workbench and Sessions [message #1386608 is a reply to message #1386605] Wed, 18 June 2014 15:15 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1921
Registered: July 2009
Senior Member
Hi,
this is strange. If you can create a reproducible scenario with our
Workbench Demo that demonstrate the "same instance" problem, please open
a bugzilla.
Thanks,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Using Google Visualization on RAP 2.2
Next Topic:How to call the methods of client remoteobject from server side
Goto Forum:
  


Current Time: Tue Mar 03 20:40:35 GMT 2015

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

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