Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Sessionmanagement in a Single Sourced RAP/RCP Application (SessionSingletonBase)
Sessionmanagement in a Single Sourced RAP/RCP Application (SessionSingletonBase) [message #640179] Fri, 19 November 2010 13:22 Go to next message
Stefan Bleibinhaus is currently offline Stefan BleibinhausFriend
Messages: 4
Registered: October 2010
Junior Member
Good day,

i am single sourcing a RAP/RCP Application and i am using
SessionSingletonBase for our Singletons. But because, i don't have
SessionSingletonBase in RCP, it is not possible to use the same code in RCP
and RAP for those classes. I also don't want to use Fragments for this
classes, just because the "create-method" is slightly different.
Are there any common solutions to this problem?

Thank you.

Regards,
Stefan
Re: Sessionmanagement in a Single Sourced RAP/RCP Application (SessionSingletonBase) [message #640501 is a reply to message #640179] Mon, 22 November 2010 11:14 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Stefan,

my recommendation is to create one central single-sourcing bundle that
includes a factory for session singletons. Only this bundle would need to
have fragments for RAP and RCP. The RAP fragment would create instances
using SessionSingletonBase and the RCP fragment would cache instances of
the given class in a map. You can use this single-sourcing bundle
throughout your application and don't need to create fragments for every
bundle that has a session singleton.

Does that help?

Regards, Ralf

--
Ralf Sternberg

Need professional support for RAP and RCP?
http://www.eclipsesource.com/support/

Twitter: http://twitter.com/eclipsesource
Blog: http://www.eclipsesource.com/blogs/
Re: Sessionmanagement in a Single Sourced RAP/RCP Application (SessionSingletonBase) [message #640580 is a reply to message #640501] Mon, 22 November 2010 14:25 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Hi Ralf,

we have create this plugin and and fragment as well, and so may other have
done it, too.
Wouldn't it be better to provide these singlesourcing bundle and fragments
by the RAP/eclipse team?
This way, all would use the same bundles and none of us have to reinvent the
well for themself...
The standard bundle could include the main stuff that everone needs or might
need and if a user needs
something special, then a feature request could handle this and other users
will profit from this also.

Regards,
Markus

"Ralf Sternberg" <rsternberg@eclipsesource.com> schrieb im Newsbeitrag
news:icdjbg$gd8$1@news.eclipse.org...
> Hi Stefan,
>
> my recommendation is to create one central single-sourcing bundle that
> includes a factory for session singletons. Only this bundle would need to
> have fragments for RAP and RCP. The RAP fragment would create instances
> using SessionSingletonBase and the RCP fragment would cache instances of
> the given class in a map. You can use this single-sourcing bundle
> throughout your application and don't need to create fragments for every
> bundle that has a session singleton.
>
> Does that help?
>
> Regards, Ralf
>
> --
> Ralf Sternberg
>
> Need professional support for RAP and RCP?
> http://www.eclipsesource.com/support/
>
> Twitter: http://twitter.com/eclipsesource
> Blog: http://www.eclipsesource.com/blogs/
>
Re: Sessionmanagement in a Single Sourced RAP/RCP Application (SessionSingletonBase) [message #640738 is a reply to message #640580] Mon, 22 November 2010 23:12 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Markus,

yes, I had the same thought when I wrote this. I'm going to publish this
code somewhere.

Regards, Ralf

--
Ralf Sternberg

Need professional support for RAP and RCP?
http://www.eclipsesource.com/support/

Twitter: http://twitter.com/eclipsesource
Blog: http://www.eclipsesource.com/blogs/
Re: Sessionmanagement in a Single Sourced RAP/RCP Application (SessionSingletonBase) [message #640784 is a reply to message #640738] Tue, 23 November 2010 07:34 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
You are great :-)

Maybe it is something for the incubator or sandbox...

"Ralf Sternberg" <rsternberg@eclipsesource.com> schrieb im Newsbeitrag
news:icetdq$9ch$1@news.eclipse.org...
> Hi Markus,
>
> yes, I had the same thought when I wrote this. I'm going to publish this
> code somewhere.
>
> Regards, Ralf
>
> --
> Ralf Sternberg
>
> Need professional support for RAP and RCP?
> http://www.eclipsesource.com/support/
>
> Twitter: http://twitter.com/eclipsesource
> Blog: http://www.eclipsesource.com/blogs/
>
Re: Sessionmanagement in a Single Sourced RAP/RCP Application (SessionSingletonBase) [message #640862 is a reply to message #640784] Tue, 23 November 2010 11:09 Go to previous messageGo to next message
Stefan Bleibinhaus is currently offline Stefan BleibinhausFriend
Messages: 4
Registered: October 2010
Junior Member
First of all thanks to you two.

@Ralf: Publishing that "standard"-code would be great. Can you provide us
with a link to it, once you've done it? Thank you!

Markus Krüger wrote:

> You are great :-)
>
> Maybe it is something for the incubator or sandbox...
>
> "Ralf Sternberg" <rsternberg@eclipsesource.com> schrieb im Newsbeitrag
> news:icetdq$9ch$1@news.eclipse.org...
>> Hi Markus,
>>
>> yes, I had the same thought when I wrote this. I'm going to publish this
>> code somewhere.
>>
>> Regards, Ralf
>>
>> --
>> Ralf Sternberg
>>
>> Need professional support for RAP and RCP?
>> http://www.eclipsesource.com/support/
>>
>> Twitter: http://twitter.com/eclipsesource
>> Blog: http://www.eclipsesource.com/blogs/
>>
Re: Sessionmanagement in a Single Sourced RAP/RCP Application (SessionSingletonBase) [message #641181 is a reply to message #640862] Wed, 24 November 2010 13:28 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

I'm not sure if this stuff really fits in the incubator or sandbox, as it
is more application code than RAP framework code. I see it more as an
example to copy from. Over time, every project will likely create their
own compatibility bundles.

So I just uploaded my examples to Github so that you can use and fork
them, and we can still move them around later:

https://github.com/ralfstx/rap-helpers

Cheers, Ralf

--
Ralf Sternberg

Need professional support for RAP and RCP?
http://www.eclipsesource.com/support/

Twitter: http://twitter.com/eclipsesource
Blog: http://www.eclipsesource.com/blogs/
Previous Topic:Error on 'update' console statement
Next Topic:TreeColumn text font and color
Goto Forum:
  


Current Time: Tue Apr 16 05:54:20 GMT 2024

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

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

Back to the top