[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.equinox] Re: Members variables in OSGi Services

Leo,

Yes indeed. OSGi is an implicitly multi-threaded environment, and not just on the server side.

In my book I have devoted a whole chapter to concurrency issues with OSGi. It is freely downloadable as a PDF (link to follow) so please take a look and come back if you have further questions.

Regards,
Neil

http://neilbartlett.name/blog/osgibook/



Leo S wrote:
Hi forum,

I have started to think about using Equinox as the server-side Run-Time environment
for my project. But I soon started to realize that when I move the bundles server-side
there will be threading issues (e.g. multiple users) with variable access. I search but could not find
any general ideas on how to think about such simple things like members variables.


But I guess that in this area OSGi is much like J2EE Servlets; All users will be using
the same instance of the object instance, so member variables is a shared entity between
all concurrent users. Is my assumption correct?


BR

Leo