|
|
Re: Adding Spring to an existing Eclipse plugin [message #724025 is a reply to message #723486] |
Sat, 10 September 2011 11:45 |
Roded Bahat Messages: 152 Registered: August 2011 |
Senior Member |
|
|
OK, here goes.
Though before hand, I should mention that I am new to OSGI and Spring development as that might affect the answers.
I created an Eclipse plugin which extends org.eclipse.wst.sse.ui.completionProposal to provide proprietary content assistance on top of WTP's XML Editor.
I'm interested in taking the proposals themselves from the database and for that I would very much like to use our existing Spring usage which is used in the main (jee) application.
After some reading, I understood that I should be using Spring Dynamic Modules (Now Eclipse Gemini Blueprint) which is recommended for Spring usage in an OSGI environment such as an Eclipse plugin. I tried to configure Eclipse PDE to allow me the development and testing of Spring in an plugin environment but that just resulted in an unfortunate bundle mess.. (out with jar hell, in with bundle hell).
The second step was to try to create a Maven project from a Spring OSGI archtype, but that resulted in a repository mess..
I then added SpringDM to a new Eclipse Target Platform and tried running the plugin with it, but I don't really understand yet how that affects a deployment of an Eclipse plugin and whether Spring has to be installed on the platform before hand or is bundled with the Plugin when exported.
I gave up on that front, and simple added Spring (not DM) as jars to my existing plugin. This seems to work for now (i.e. the plugin is actually runnable and seems to be running Spring methods).
Tutorials on the subject are scarce and outdated (could mostly find things from 2006-2008) especially now with Blueprint.
As mentioned at the beginning, I am quite new to this, so if anyone has any pointers or recommended reading material I would really appreciate it.
Many thanks,
Roded
|
|
|
Re: Adding Spring to an existing Eclipse plugin [message #724928 is a reply to message #724025] |
Tue, 13 September 2011 14:02 |
Eric Rizzo Messages: 3070 Registered: July 2009 |
Senior Member |
|
|
Even though you are a self-proclaimed "newbie," this is far from a
"newcomers" topic ;-)
I'd suggest asking on either the Equinox or Libra forum groups; they can
both be found on the forums home page, under the section "Eclipse Projects."
Eric
On 9/10/11 7:45 AM, Roded wrote:
> OK, here goes.
> Though before hand, I should mention that I am new to OSGI and Spring
> development as that might affect the answers.
>
> I created an Eclipse plugin which extends
> org.eclipse.wst.sse.ui.completionProposal to provide proprietary content
> assistance on top of WTP's XML Editor.
> I'm interested in taking the proposals themselves from the database and
> for that I would very much like to use our existing Spring usage which
> is used in the main (jee) application.
>
> After some reading, I understood that I should be using Spring Dynamic
> Modules (Now Eclipse Gemini Blueprint) which is recommended for Spring
> usage in an OSGI environment such as an Eclipse plugin. I tried to
> configure Eclipse PDE to allow me the development and testing of Spring
> in an plugin environment but that just resulted in an unfortunate bundle
> mess.. (out with jar hell, in with bundle hell).
> The second step was to try to create a Maven project from a Spring OSGI
> archtype, but that resulted in a repository mess..
> I then added SpringDM to a new Eclipse Target Platform and tried running
> the plugin with it, but I don't really understand yet how that affects a
> deployment of an Eclipse plugin and whether Spring has to be installed
> on the platform before hand or is bundled with the Plugin when exported.
>
> I gave up on that front, and simple added Spring (not DM) as jars to my
> existing plugin. This seems to work for now (i.e. the plugin is actually
> runnable and seems to be running Spring methods).
>
> Tutorials on the subject are scarce and outdated (could mostly find
> things from 2006-2008) especially now with Blueprint.
>
> As mentioned at the beginning, I am quite new to this, so if anyone has
> any pointers or recommended reading material I would really appreciate it.
>
> Many thanks, Roded
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03580 seconds