Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » porting a single user app to RAP(How to track which user owns all the objects...)
porting a single user app to RAP [message #653769] Fri, 11 February 2011 04:56 Go to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
I am converting an app that previously ran as a desktop app to RAP.
The existing code generally uses singletons that map one-to-one to a persistence context that is unique to each user.
So there might be something like a "CompanyManager" that persists to some file "John Smith.xml"

For the RAP app, I need to convert lots of objects that dont know about which user they are for to work in the RAP context.

I could create a new "CompanyManager" for each session but I would prefer to register the Objects as services.

Is there some strategy for enabling single-sourcing of back-end objects so they would work as RCP object, or POJOs and also be used in RAP?

(I am using JAAS to login to RAP, so it would be cool to leverage that credential to the back-end)


Re: porting a single user app to RAP [message #654061 is a reply to message #653769] Sun, 13 February 2011 20:48 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Tom,

this might not entirely solve your problem, but here's an example how to
create session-unique instances of custom classes for RAP and RCP:

Hope this helps,

Ralf Sternberg

Twitter: @ralfstx

Professional services for RAP and RCP?
Previous Topic:JUNG loading grpah question
Next Topic:OSGi Declarative Services At Startup
Goto Forum:

Current Time: Mon Oct 25 15:16:26 GMT 2021

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

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

Back to the top