Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » DS services problem
DS services problem [message #1342596] Fri, 09 May 2014 01:06 Go to next message
Jeyhun MAMEDOV is currently offline Jeyhun MAMEDOVFriend
Messages: 21
Registered: March 2014
Junior Member
Hi,

I have created empty efx application. It just shows plain window. I'v
added plugin with DS component to application feature. When I run
product it does not register my service. When I run the same plugin
under OSGi framework it registers its service. org.eclipse.equinox.ds,
org.eclipse.osgi.services and org.eclipse.equinox.util plugin are
mentioned in feature.

What may be wrong?

I am using nightly efx all in one :
eclipse-SDK-4.4M6-win32-x86_64-efx-1.0.0-SNAPSHOT
En iyi dileklerimle
Jeyhun MAMEDOV
Ekser Bilişim Danışmanlık Ltd.Şti.
Dinamik Hukuk Grubu
Yazılım Uzmanı
www.dinamikhukuk.com
<http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.dinamikhukuk.com>
Tel : (0312) 431 0905
Faks : (0312) 431 0965
GSM : (0554) 402 4441
Re: DS services problem [message #1343149 is a reply to message #1342596] Fri, 09 May 2014 06:47 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Is your bundle marked with

Bundle-ActivationPolicy: lazy

Tom

On 09.05.14 03:06, tjey wrote:
> Hi,
>
> I have created empty efx application. It just shows plain window. I'v
> added plugin with DS component to application feature. When I run
> product it does not register my service. When I run the same plugin
> under OSGi framework it registers its service. org.eclipse.equinox.ds,
> org.eclipse.osgi.services and org.eclipse.equinox.util plugin are
> mentioned in feature.
>
> What may be wrong?
>
> I am using nightly efx all in one :
> eclipse-SDK-4.4M6-win32-x86_64-efx-1.0.0-SNAPSHOT
> En iyi dileklerimle
> Jeyhun MAMEDOV
> Ekser Bilişim Danışmanlık Ltd.Şti.
> Dinamik Hukuk Grubu
> Yazılım Uzmanı
> www.dinamikhukuk.com
> <http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.dinamikhukuk.com>
> Tel : (0312) 431 0905
> Faks : (0312) 431 0965
> GSM : (0554) 402 4441
>
>
Re: DS services problem [message #1343831 is a reply to message #1343149] Fri, 09 May 2014 13:29 Go to previous messageGo to next message
Jeyhun MAMEDOV is currently offline Jeyhun MAMEDOVFriend
Messages: 21
Registered: March 2014
Junior Member
Hi Tom

No, plugin is not marked with Bundle-ActivationPolicy.
I'v figured out that it must be checked on "Activate this plug-in when one
of its classes is loaded".
What is interesting that this is required when you launch this plugin whith
PDE or JavaFX e4 application. Running under standart OSGi configuration
does not create problem. Is this a bug?
Re: DS services problem [message #1343897 is a reply to message #1343831] Fri, 09 May 2014 14:08 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Yes - checking that box makes the bundle activation policy lazy!

Yes that's expected - if you start with the OSGi-Launcher ALL bundles
are started by default whereas in PDE/Eclipse mode they are launched on
demand and then the policy is needed to make equinox.ds do the right
thing for you.

Tom

On 09.05.14 15:29, Jeyhun MAMEDOV wrote:
> Hi Tom
>
> No, plugin is not marked with Bundle-ActivationPolicy.
> I'v figured out that it must be checked on "Activate this plug-in when one
> of its classes is loaded".
> What is interesting that this is required when you launch this plugin whith
> PDE or JavaFX e4 application. Running under standart OSGi configuration
> does not create problem. Is this a bug?
>
Previous Topic:Custom Preloader
Next Topic:How to avoid crashing the JVM on Linux with GTK3
Goto Forum:
  


Current Time: Fri Apr 19 20:41:09 GMT 2024

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

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

Back to the top