How to get the bundleId

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get the bundleId

S. Ali Tokmen
Dear Geronimo users and coders

As you know, the Geronimo deploy command can be used to deploy bundles,
with the install-bundle command; which is excellent as it gets as sole
argument the bundle JAR file.

On the other hand, the uninstall-bundle command requires a bundleId.

How can I guess the bundleId of a bundle? Is there a command for that?

Thank you

--

S. Ali Tokmen
http://ali.tokmen.com/

GSM (ch): +41 79 207 29 22 [Swisscom]
GSM (fr): +33 7 70 10 33 79 [Virgin Mobile]
GSM (tr): +90 555 266 52 73 [Avea]

My AIM, ICQ, MSN Messenger and Yahoo IM
contact details are on http://contact.ali.tokmen.com

Reply | Threaded
Open this post in threaded view
|

Re: How to get the bundleId

lsalotto
I think on the Geronimo console you can type list and you should get a list of deployed bundles with all info (including Id)

http://devangelist.blogspot.com.ar/2011/03/get-osgi-samples-running-on-your.html 
http://devangelist.blogspot.com.ar/2011/04/osgi-bundle-lifecycles.html 

On Wed, Sep 26, 2012 at 3:13 PM, S. Ali Tokmen <[hidden email]> wrote:
Dear Geronimo users and coders

As you know, the Geronimo deploy command can be used to deploy bundles,
with the install-bundle command; which is excellent as it gets as sole
argument the bundle JAR file.

On the other hand, the uninstall-bundle command requires a bundleId.

How can I guess the bundleId of a bundle? Is there a command for that?

Thank you

--

S. Ali Tokmen
http://ali.tokmen.com/

GSM (ch): <a href="tel:%2B41%2079%20207%2029%2022" value="+41792072922">+41 79 207 29 22 [Swisscom]
GSM (fr): <a href="tel:%2B33%207%2070%2010%2033%2079" value="+33770103379">+33 7 70 10 33 79 [Virgin Mobile]
GSM (tr): <a href="tel:%2B90%20555%20266%2052%2073" value="+905552665273">+90 555 266 52 73 [Avea]

My AIM, ICQ, MSN Messenger and Yahoo IM
contact details are on http://contact.ali.tokmen.com


Reply | Threaded
Open this post in threaded view
|

Re: How to get the bundleId

S. Ali Tokmen
Hi Luciano

Thanks for the tip :) After further research, I've figured out that Geronimo has an MBean osgi.core:type=bundleState,version=1.5 which provides this information as well...

Cheers

S. Ali Tokmen
http://ali.tokmen.com/

GSM (ch): +41 79 207 29 22 [Swisscom]
GSM (fr): +33 7 70 10 33 79 [Virgin Mobile]
GSM (tr): +90 555 266 52 73 [Avea]

My AIM, ICQ, MSN Messenger and Yahoo IM
contact details are on http://contact.ali.tokmen.com
On 9/26/12 21:03 , Luciano Salotto wrote:
I think on the Geronimo console you can type list and you should get a list of deployed bundles with all info (including Id)

http://devangelist.blogspot.com.ar/2011/03/get-osgi-samples-running-on-your.html 
http://devangelist.blogspot.com.ar/2011/04/osgi-bundle-lifecycles.html 

On Wed, Sep 26, 2012 at 3:13 PM, S. Ali Tokmen <[hidden email]> wrote:
Dear Geronimo users and coders

As you know, the Geronimo deploy command can be used to deploy bundles,
with the install-bundle command; which is excellent as it gets as sole
argument the bundle JAR file.

On the other hand, the uninstall-bundle command requires a bundleId.

How can I guess the bundleId of a bundle? Is there a command for that?

Thank you

--

S. Ali Tokmen
http://ali.tokmen.com/

GSM (ch): <a moz-do-not-send="true" href="tel:%2B41%2079%20207%2029%2022" value="+41792072922">+41 79 207 29 22 [Swisscom]
GSM (fr): <a moz-do-not-send="true" href="tel:%2B33%207%2070%2010%2033%2079" value="+33770103379">+33 7 70 10 33 79 [Virgin Mobile]
GSM (tr): <a moz-do-not-send="true" href="tel:%2B90%20555%20266%2052%2073" value="+905552665273">+90 555 266 52 73 [Avea]

My AIM, ICQ, MSN Messenger and Yahoo IM
contact details are on http://contact.ali.tokmen.com