Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to configure dropins folder to activate bundles automatically?
How to configure dropins folder to activate bundles automatically? [message #524977] Sun, 04 April 2010 21:23 Go to next message
Sahoo Missing name is currently offline Sahoo Missing name
Messages: 26
Registered: July 2009
Junior Member
Hi,

Reading some documentation, I was under the impression that if I dropped an OSGi bundle to dropins/, it would automatically be activated. I saw it getting RESOLVED only. How do I configure dropins to ACTIVATE bundles by default?

I am on Eclipse 3.5.2.

Thanks,
Sahoo
Re: How to configure dropins folder to activate bundles automatically? [message #525031 is a reply to message #524977] Mon, 05 April 2010 09:37 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Sahoo wrote:
> Hi,
>
> Reading some documentation, I was under the impression that if I dropped
> an OSGi bundle to dropins/, it would automatically be activated. I saw
> it getting RESOLVED only. How do I configure dropins to ACTIVATE bundles
> by default?

AFAIK it's working correctly. The dropins bundle will auto-install a
bundle. But the bundle will only become active 1) if it's a plugin with
auto-start set to true and something accesses a class from the bundle or
2) if you activate it programmaticly or from the OSGi console.

PW



--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: How to configure dropins folder to activate bundles automatically? [message #525079 is a reply to message #525031] Mon, 05 April 2010 14:07 Go to previous messageGo to next message
Sahoo Missing name is currently offline Sahoo Missing name
Messages: 26
Registered: July 2009
Junior Member
OK, that explains the observed behavior. Let me ask how I can have a pure OSGi bundle autostarted by eclipse if I don't want my users to use the OSGi console.

Thanks,
Sahoo
Re: How to configure dropins folder to activate bundles automatically? [message #525678 is a reply to message #525079] Wed, 07 April 2010 08:58 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Sahoo wrote:
> OK, that explains the observed behavior. Let me ask how I can have a
> pure OSGi bundle autostarted by eclipse if I don't want my users to use
> the OSGi console.

You can write code. In one of your other plugins, if you can find the
Bundle call Bundle.start(Bundle.START_TRANSIENT) or whatever if it is
not already started.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:google appengine deploy failing due to http.proxyHost & http.proxyPort system properties
Next Topic:how to update the eclipse crossing-version?
Goto Forum:
  


Current Time: Thu Aug 21 14:08:24 EDT 2014

Powered by FUDForum. Page generated in 0.10185 seconds