Hi all, I'm a newbie to OSGI. Doesn't an osgi bundle act as a normal jar in a non-osgi environment? An osgi bundle is basically a jar with some additional meta info in it's manifest which is read by the osgi framework to enable osgi related stuff from the jar(bundle) as per my understanding.
So, ideally if you add the osgi bundle in the host application's class-path (which is non-osgi) it will just be considered as a normal jar and it should be able to import the class from the bundle just like it does from a normal jar. Did you try adding the jar to your host-application and importing it? Just a suggestion from a newbie, keen to learn more on osgi. Thanks, Dileepa On Mon, Oct 17, 2011 at 12:14 PM, xuhb <[email protected]> wrote: > Sorry, I expressed my requirement un-correctly; > > Actually, the host application just know the name of class and want to > choose such class from embedded osgi environment ? > Could I? > Must I create a bundle (which import such class) dynamically and retrive > class from the dynamic created bundle? Is there other facilitate method? > > Thanks any suggestion > ----- Original Message ----- > From: "xuhb" <[email protected]> > To: <[email protected]> > Sent: Monday, October 17, 2011 2:32 PM > Subject: How to find a class of bundle from Host application? > > > > Hi: > > I am using osgi environment (felix) embedded in a Host Application; > > Now the host application want to use a class from a specified osgi > bundle, > > Could standard osgi support such usage? > > or felix support such extension usage? > > Thanks any suggestion > -- Dileepa Jayakody, Software Engineer, WSO2 Inc. Lean . Enterprise . Middleware

