felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam ” <skyn...@gmail.com>
Subject Re: can web console RESTful API block until installation has been finished?
Date Tue, 22 May 2012 20:52:36 GMT
Problem of multiple -Fbundlefile=@bundle1.jar -Fbundlefile=@bundlefile2.jar
....

is that bundles become Installed  state, not Active state.




On Mon, May 21, 2012 at 10:06 AM, Felix Meschberger <fmeschbe@adobe.com>wrote:

> Hi,
>
> No, the console installs the bundles asynchronously.
>
> But you could upload all the bundles with a single curl command with the
> bundlefile parameter repeated to list each bundle.
>
> Regards
> Felix
>
> PS: thinking out loud, the web console could run a single thread for
> installation and queue such requests ... (You might report an issue, if you
> like the idea ;- )
>
> Am 21.05.2012 um 15:55 schrieb sam ”:
>
> > Hey,
> >
> > My deployment script uses curl command:
> > curl -u admin:admin -F "action=install" -F "_noredir_=_noredir_" -F
> > "bundlefile=@bundle1.jar" -F "bundlestart=start" -F "bundlestartlevel=20"
> > -F "refreshPackages=true" "http://localhost:4502/system/console/install"
> > curl -u admin:admin -F "action=install" -F "_noredir_=_noredir_" -F
> > "bundlefile=@bundle2.jar" -F "bundlestart=start" -F "bundlestartlevel=20"
> > -F "refreshPackages=true" "http://localhost:4502/system/console/install"
> > ...
> > curl -u admin:admin -F "action=install" -F "_noredir_=_noredir_" -F
> > "bundlefile=@bundle10.jar" -F "bundlestart=start" -F
> "bundlestartlevel=20"
> > -F "refreshPackages=true" "http://localhost:4502/system/console/install"
> >
> >
> > Each curl command returns very fast.  Unless I put  `sleep 10`  between
> > curl commands,  I have to `kill -9`  felix instance.
> >
> > Is there a way to configure web console so that it sends out HTTP
> response
> > only after the bundle is completely installed? It looks like I am sending
> > install request for bundle2.jar  while felix has not finished installing
> > bundle1.jar.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message