On Tue, Jul 1, 2008 at 3:45 AM, Sahoo <[EMAIL PROTECTED]> wrote:
> META-INF/services [1] is used a lot in non-OSGi environment as an SPI
> mechanism. e.g., JAXP, StAX, JPA, etc use this facility. What is the best
> way to handle them when we migrate such code to run in OSGi environment? One
> solution is to change the library (service provider) to make the services
> available as OSGi services in the service registry and change all clients to
> use the service registry to look up. But, this requires changing the library
> code as well as client code. It's probably easy to change the library, but
> changing all the clients is a bit tough ask. Is there any alternative? Why
> does the OSGi spec not have any special treatment for META-INF/services
> file?

Possibly turning the questions around somewhat, here's one approach to
making the spec JARs behave in an OSGi environment:
http://gnodet.blogspot.com/2008/05/jee-specs-in-osgi.html

/niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to