Doh, should have read the whole mail :)
Nikunj: I will add a system property that enables/disables this feature and get back to you.

Regards,
Mats-Ola

8 mar 2007 kl. 09.43 skrev Mats-Ola Persson:


This is a not a bug :) It's a feature.

If a bundle is activated without a Bundle-Activator, KF will look for start/stop methods in the Main-Class, if any declared. We didn't know if anyone used this feature and we've been talking about removing it or a way to disable this feature.

Nikunj: Are you using this feature? Does this feature cause you trouble? Does it suite your need? Do you wish to alter the behaviour someway?

Regards,
Mats-Ola

8 mar 2007 kl. 02.10 skrev BJ Hargrave:

The OSGi spec says nothing about the Main-Class manifest header. It must be ignored by an OSGi framework. Only the Bundle-Activator header should be used to activate a bundle. This allows a jar to be a bundle and a jar. See the BND bundle from Peter Kriens. This one jar is a java application, a bundle (eclipse plugin), an ant task and a maven plugin.
So this sounds like a bug/feature of knopflerfish.
BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
[EMAIL PROTECTED]
Office: +1 386 848 1781 Mobile: +1 386 848 3788


----- Original Message -----
From: Nikunj Mehta [EMAIL PROTECTED]
Sent: 03/07/2007 05:29 PM
To: [email protected]
Subject: [osgi-dev] Main-Class mainfest header



Is there a defined standard interpretation of Main-Class in the OSGi world? I am having a lot of trouble taking regular jars and converting them in to bundles because they have a Main-Class directive, and my OSGi runtime (Knopflerfish) tries to look for an activate method in the declared Main-Class.

Thank you

Nikunj Mehta

_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev

Reply via email to