0

For Example : to use OSGI framework , I develop a connection pool to connect a system , and now I have another program want to connect the system , but I want to get the connection from the connection pool , how can I do to get the connection from the pool ?

evandor
  • 799
  • 1
  • 10
  • 23
Bort
  • 97
  • 1
  • 13
  • maybe it's just me, but I have no clue what this is about... does this happen inside the same JVM? – evandor Jan 22 '14 at 17:51
  • no, they are not in the same JVM ? – Bort Jan 23 '14 at 02:04
  • the answers to this question might be helpful for you: http://stackoverflow.com/questions/375725/how-does-osgi-manage-interaction-of-components-running-in-separate-jvms – evandor Jan 23 '14 at 08:04

1 Answers1

0

If you want to run an OSGi framework from a regular java application, and then access a service exposed from the OSGi environment to the 'host' application, I suggest you take a look at the "Using Services Provided by Bundles" section of the Apache Felix manual. It's not hard as long as you get the class loading right.

If that is not what you meant, please clarify.

Regards, Frank

Frank Lee
  • 2,728
  • 19
  • 30