New Day, new Ideas about my Problem. The framework starts more than one
instance of my component ... this is the real cause - so synchronization
couldn't work.

What's the state of the art way to get a singleton component? 

>>> BJ Hargrave <[email protected]> 09/03/09 7:27  >>>
This should be taken up with the Equinox DS implementation. If you
think 
the Equinox DS has bug, please open a bug at Eclipse.
-- 

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
[email protected] 

office: +1 386 848 1781
mobile: +1 386 848 3788




From:
"Heiko Waldschmidt" <[email protected]>
To:
<[email protected]>
Date:
2009/09/03 12:37
Subject:
[osgi-dev] Synchronization Problem
Sent by:
[email protected] 



Hello everyone,

I'm wondering what happend as I started the example you can find in
the
appendix. I got the following System.out.println's:

EnteredAddComSystem
Thread[Component Resolve Thread (Bundle 26),10,main]
LeftAddComSystem
Thread[Component Resolve Thread (Bundle 26),10,main]
Entered activate
Thread[Component Resolve Thread (Bundle 26),10,main]
EnteredAddComSystem
Thread[Component Resolve Thread (Bundle 26),10,main]
EnteredAddComSystem
Thread[Component Resolve Thread (Bundle 26),10,main]
LeftAddComSystem
Thread[Component Resolve Thread (Bundle 26),10,main]
EnteredAddComSystem
Thread[Component Resolve Thread (Bundle 26),10,main]
LeftAddComSystem
Thread[Component Resolve Thread (Bundle 26),10,main]
Entered activate
Thread[Component Resolve Thread (Bundle 26),10,main]
EnteredAddComSystem
Thread[Component Resolve Thread (Bundle 26),10,main]
ended with init

I thought I would get a atomic activate()/initData() but this wasn't
so. is this a bug or normal in OSGi? (I used equinox)

Greetings,
Heiko waldschmidt

Fraunhofer Institut für Windenergie und Energiesystemtechnik IWES 
 
Heiko Waldschmidt
Bereich Anlagentechnik und
Netzintegration

Fraunhofer IWES
Königstor 59
D-34119 Kassel / Germany
Tel: +49(0)561-7294-230
Fax: +49(0)561-7294-200
Email: [email protected] 
http://www.iset.uni-kassel.de ( http://www.iset.uni-kassel.de/ )
http://www.iwes.fraunhofer.de 
 
 
Fraunhofer IWES Advancing Energy Systems.
 
Der Institutsteil Kassel des am 01.01.2009 gegründeten neuen
Fraunhofer
IWES ist aus dem ehemaligen Institut für Solare
Energieversorgungstechnik - Verein an der Universität Kassel e.V.
(ISET)
hervorgegangen.

[attachment "sync.java" deleted by BJ Hargrave/Austin/IBM] 
_______________________________________________
OSGi Developer Mail List
[email protected] 
https://mail.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to