This content has been marked as final.
Show 1 reply
-
1. Re: Quickstart helloworld-osgi bundle not started after deployment.
bosschaert Sep 14, 2012 11:15 AM (in response to pankbharambe)Hi,
For some versions of 7.1.x OSGi bundles are not automatically started and need to be started explicitly, for example by using the following command from the CLI:
{code}
[standalone
@localhost
:
9999
/] /subsystem=osgi/mybundle.jar:start
{
"outcome"
=>
"success"
}{code}
For more information on the above see here: https://docs.jboss.org/author/display/JBOSGI/Command+Line+Interface+Console
In the latest version of AS 7 bundles (master in jboss-as git) bundles are started automatically again when possible.
I'm not aware that jboss-cli can work directly with a pom.xml, but you can easily use jboss-cli in a script, for example:
{code}bin/jboss-cli.sh -c "deploy /home/me/mybundles/mybundle.jar"{code}