Hi all, I am new to OSGI and currently trying to understand its mechanism. I want to create a service (bundle), which creates a JDNI datasource and provides this datasource to other services. What I've read so far is, OSGI "itself" (felix/equinox) can't use JNDI, but aries can. That's why I am asking.
What I am trying to do is to provide a flexible service, let's say a JDNIDatasourceService. This service creates a JNDI datasource, which connection parameters can be configured "from the outside". I don't what to deploy the bundle with a persistence.xml, in which the username, password and so on are hard coded. What I want is the same possible mechanism like i.e. a tomcat server provides. It is possible to declare a JNDI datasource with tomcat so that all my webapps can access this datasource. So far as I understand, this isn't possible. Since the JNDI datasource has to be created by a web server (i.e. tomcat) and can then be accessed by the OSGI bundles. Is this correct or is it possible to create a JNDI resource (perhaps with apache karaf) and provide this datasource? I appreciate your help, thanks a lot. Daniel
