Is service.pid required ? [message #96351] |
Mon, 03 September 2007 08:16 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02971 seconds