This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes How to get osgi bundle details using core java technique Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "How to get osgi bundle details using core java technique" Watch "How to get osgi bundle details using core java technique" New topic
Author

How to get osgi bundle details using core java technique

agilemanoj kumar
Ranch Hand

Joined: Mar 07, 2008
Posts: 70
Hi,

I am running osgi container on my system.
I have written a class which is a bundle activator actually, which gets invoked after deploying into osgi container.
In this class, I want to call function containerDetails() which lists out all bundles and its details.
For example, if bundle is fragments and in INSTALLED state, my java code should get details of it.
I am able to get state of bundle(ACTIVE,INSTALLED,STARTING etc.) but unable to check if bundle is fragments or not.
Can anybody help me out to write a java code which checks if bundle is fragments or not?

--
Thanks,
Manoj


Manoj Kumar
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to get osgi bundle details using core java technique
 
Similar Threads
Generating a ClassLoader hierarchy for a java container
Calling Osgi service from Servlet
SWT/Eclipse: Getting Installed Plugins from Eclipse Manage Configuration
Portability of Spring applications running in OSGi and outside of OSGi
OSGi - Embedded Jetty Server - Servlet unable to get reference to Service Tracker