Skip to main content



      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 05:40 Go to next message
Eclipse UserFriend
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 10:13 Go to previous messageGo to next message
Eclipse UserFriend
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 08:19 Go to previous messageGo to next message
Eclipse UserFriend
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 05:57 Go to previous messageGo to next message
Eclipse UserFriend
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 07:16 Go to previous message
Eclipse UserFriend
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: Mon Jun 30 23:51:56 EDT 2025

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

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

Back to the top