Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Is service.pid required ?
Is service.pid required ? [message #96351] Mon, 03 September 2007 08:16 Go to next message
Eclipse UserFriend
Originally posted by: and.orra.yahoo.com

When I register a service via OSGi, I noticed that I can forgo adding the service.pid property.

In the spec it says:

<pre>
The purpose of a Persistent Identifier (PID) is to identify a service across Framework restarts.
</pre>

Under what use cases would you register services without a service.pid ?

Thanks

Meseret
Re: Is service.pid required ? [message #96365 is a reply to message #96351] Mon, 03 September 2007 08:51 Go to previous message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

You don't need it if you're always going to acquire/provide the service based on interface type. However, when you've got a situation where you may have many runs and need persistent data to be stored (say, in a DB) then you might want to use a consistent ID between restarts to maintain the same link to the data.

Alex.
Previous Topic:Maven Repository
Next Topic:Embedded Equinox in a standalone application
Goto Forum:
  


Current Time: Fri Apr 19 22:16:24 GMT 2024

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

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

Back to the top