FYI, Good news :)

 

I eventually figured out a way for Felix to load a bundle from a target
Directory by using the following configuration property: 

configMap.put("felix.auto.install.2","reference:file:c:/Development/OGSi/OSG
iTestBundle");

Apparently the 'reference:' prefix allows the bundle to be loaded from a
directory rather than a JAR.

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Felix
Meschberger
Sent: Tuesday, April 10, 2007 2:36 PM
To: felix-dev@incubator.apache.org
Subject: Re: Must a bundle be in a Jar file?

 

Hi,

 

To my knowledge, this is not supported in Felix.

 

BTW, the spec (page 27) says in section 3.2: "A bundle is deployed as

a Java ARchive (JAR) file."

 

Doing single-class exchange is not a good thing any way IMHO, as this

might violate the clearly defined lifecycle management of OSGi. In

fact, using the maven-bundle-plugin of Felix makes the development

cycle very easy: Change-Build-Update-Test.

 

Life class exchange is possible to some degree using a Java debugger,

but this is for simple testing only and does not replace proper

bundling and deployment according to the OSGi spec.

 

Regards

Felix

 

On 4/10/07, asaf.lahav <[EMAIL PROTECTED]> wrote:

> It would be easier to debug a bundle if it wouldn't be required to be
closed

> as a jar file.

> 

> Is it possible to create a bundle from class files that are not in a *.jar

> file?

> 

> 

> 

> 

> 

> 

> 

> 

Reply via email to