Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Members variables in OSGi Services
Members variables in OSGi Services [message #123475] Sun, 28 December 2008 17:08 Go to next message
Eclipse UserFriend
Originally posted by: leo.sanders.justtech.uk.com

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
Re: Members variables in OSGi Services [message #123529 is a reply to message #123475] Tue, 30 December 2008 16:48 Go to previous message
Neil Bartlett is currently offline Neil BartlettFriend
Messages: 93
Registered: July 2009
Member
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
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
Previous Topic:Problem with the dropins directory and the DynamicImport-Package directive
Next Topic:[ds] Declarative Services and Fragments
Goto Forum:
  


Current Time: Thu Apr 25 21:42:54 GMT 2024

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

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

Back to the top