Have a look at startlevels. I think that should give you what you are looking for. Furthermore, as you are on the outside, you could write a launcher which just loops through all bundles and makes sure they are started after the framework has been started.
Regarding the issue commands question: Have a look at shell.tui. All it does is to read from stdin and give the line to the shell service which will parse it and execute the command in question. You can write your own bundle which does the same but gets the input from somewhere else (whatever is more convenient to you). Hope that helps. regards, Karl On Mon, Oct 12, 2009 at 10:14 PM, Matt Tennant <[email protected]> wrote: > Hi all, > > It seems like there should be a simple solution to my problem. Occasionally > the device with our software (deployed within Felix framework) is shut off > when it is in the middle of restarting a bundle. If this happens, then when > everything is restarted that bundle my be in an "installed", rather than > "active", state. > > We don't have any bundles installed that we don't want started whenever the > framework starts. But we do need to use the bundle cache, so we can't wipe > it out and start from scratch each time. So, is there any way of telling > Felix at startup that all installed bundles should be started, even if they > weren't running before? I didn't see anything obvious at: > http://felix.apache.org/site/apache-felix-framework-usage-documentation.html#ApacheFelixFrameworkUsageDocumentation-configuringframework > > On a related note, especially if there is no solution to the above, has > anybody figured out a good way to issue framework commands from outside the > framework? For instance, if I have the external telnet port set up (where > framework prompt is available via telnet), then I can issue framework > commands via a script that connects over telnet. But telnet isn't installed > on the host device, so this only works from a computer on the network. I'd > be very interested in another way of doing this that doesn't require a telnet > program. If I have to, I'll try writing a c program to communicate over > tcp/ip to the telnet port, but I'm hoping for a cleaner solution. > > So, problem 1) start Felix and force all installed bundles to start, no > matter where they left off. Problem 2) issue framework command to a running > Felix framework from the same host device. > > Thanks for any advice! > Matt > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Karl Pauls [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

