Here is an update on using the Oscar GUI bundles with felix.

The first thing I tried was an obr deploy to:

obr deploy "Shell Plugin"
Installing: Shell Plugin
Installing dependency: Shell GUI
Installing dependency: Bundle Repository
Installing dependency: Table Layout

That seemed to work and I was able to start the Shell GUI and look at my
bundles. 

Now the fly in the ointment was that additional BundleRepository
dependency. I already had one at 2.0.0.alpha2 so I uninstalled the old
one that was added, shutdown and restarted. This caused:

org.osgi.framework.BundleException: Unresolved package in bundle 4:
org.ungoverned.osgi.service.bundlerepository

This happened because the new one exists in package
org.apache.felix.bundlerepository.

So I imported the old oscar sources into a couple of projects in my ide
with the thought to tie them into to the new packages and fix up the
manifests. This worked accept for the
org.ungoverned.osgi.bundle.shellplugin.OBRPlugin class. It is dependent
on a 
org.ungoverned.osgi.bundle.bundlerepository.BundleRepositoryService
which I do not see an apparent successor in the new org.apache.felix
packages.

The above is just an update as I don't really need this to continue to
test out the tools. I will probably create a test bundle without the
crippled OBRPlugin and move on for now.

cheers,
John





On Tue, 2006-01-10 at 11:18, Richard S. Hall wrote:
> John E. Conlon wrote:
> > Will be deploying a GUI application within felix and would like to
> > administer felix and it's bundles with a gui that I call from within the
> > application. 
> >
> > What is the current think for how this should be done in felix?  Will it
> > be similar (identical?) to the oscar's shellgui, tablelayout and plugin
> > approach? Can I just use those oscar bundles? 
> 
> You should be able to follow the exact same approach that you used with 
> Oscar. You can use Oscar bundles directly, however, it is likely that 
> their manifest ill have to be modified slightly to work with Felix. In 
> particular, Felix is more strict when it comes to exposing classes on 
> the class path, so the manifest of some Oscar bundles will need to be 
> modified to import the packages they use off the class path (e.g., 
> javax.swing).
> 
> I will try to move the bundles that you mention over to Felix soon, but 
> in the meantime, just edit the manifest...if you have any difficulty, 
> let me know.
> 
> -> richard
> 

Reply via email to