Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Integration of a RAP application and Spring managed eclipse plugin
Integration of a RAP application and Spring managed eclipse plugin [message #893975] Fri, 06 July 2012 09:40 Go to next message
Avrajit Chatterjee is currently offline Avrajit ChatterjeeFriend
Messages: 68
Registered: September 2011
Member
Hi,

We have a RAP/RCP app. with single-sourcing. We have a requirement to use a plugin (some UI functionality) which is not developed by us. We are able to integrate that plugin with our RCP code but having issues with RAP.
Reasons
1. The plugin has overridden start method of AbstractUIPlugin
2. It uses Spring initialization within it and manages/create all objects
3. It also uses Display.getCurrent()at many places of code

Ideally all these Spring singleton objects should be session specific objects and have a lifetime of a UIThread in RAP. They are not using Spring DM. It would have been ideal if we had the provisions of making the plugin somehow attached to the UIThread and make these Spring managed objects attached to the user session.Any pointers will be highly appreciated.

Re: Integration of a RAP application and Spring managed eclipse plugin [message #894786 is a reply to message #893975] Tue, 10 July 2012 14:13 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Sorry, I didn't get what your exact problem is. You would make it easier
to answer if you phrased a more specific question.

Ralf

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Integration of a RAP application and Spring managed eclipse plugin [message #895303 is a reply to message #894786] Thu, 12 July 2012 12:19 Go to previous messageGo to next message
Avrajit Chatterjee is currently offline Avrajit ChatterjeeFriend
Messages: 68
Registered: September 2011
Member
Ok , the following question's answer will clear all my doubts -
Is there any way to make Spring managed singleton beans to be RAP session singleton bean ?
Re: Integration of a RAP application and Spring managed eclipse plugin [message #895502 is a reply to message #895303] Fri, 13 July 2012 09:57 Go to previous messageGo to next message
Florian Waibel is currently offline Florian WaibelFriend
Messages: 166
Registered: June 2010
Senior Member
Sorry. I'm not aware of an existing solution to your problem:

Automatically convert Spring managed singleton beans to RAP session singleton beans.

But maybe we can work out a solution together. As this seems to be a very interesting use case.

Do you need access to stateless Spring beans (e.g. Services, DAOs, ...) from within your RAP session or do you have stateful Spring beans that need to be unique per RAP session?

How do you access the Spring beans in the RCP case?

Do you have access to the Spring configuration of the plugin in question? Could you add you own custom scope[1] for example?

<bean id="singleton" class="Singleton" scope="RAP-session">
</bean>


Regards,
Florian

[1] http://static.springsource.org/spring/docs/3.1.2.RELEASE/spring-framework-reference/htmlsingle/spring-framework-reference.html#beans-factory-scopes-custom
Re: Integration of a RAP application and Spring managed eclipse plugin [message #896131 is a reply to message #895502] Tue, 17 July 2012 11:16 Go to previous message
Avrajit Chatterjee is currently offline Avrajit ChatterjeeFriend
Messages: 68
Registered: September 2011
Member
Thats something very interesting and new to me . Thanks for the pointer. I am confident of of creating a custom scope like RAP-Session as suggested. Thanks a lot. Will get back to you after implementation.
Previous Topic:about RWT.FIXED_COLUMNS
Next Topic:Super Tooltip
Goto Forum:
  


Current Time: Thu Apr 25 14:13:27 GMT 2024

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

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

Back to the top