Ok, got it! I'll try to have something telling me when the component is validated (or invalidated) and only then execute the next line.
Thanks for the help! Fabio Fonseca Richard S. Hall wrote: > > No, there is no asynchrony in the start command. It is possible that > iPOJO starts components on a separate thread, since doing all of its > work synchronously could lead to deadlocks. > > Your confusion is that you are equating "start" with iPOJO actually > making a bundle's components available. That is not the case, calling > "start" on a bundle just tells iPOJO it can start to make the bundle's > components available. > > -> richard > >> >> Thanks! >> Fabio Fonseca >> >> P.S.: You mentioned "the old Felix shell" in your message. Is there a new >> one? >> >> >> Richard S. Hall wrote: >>> If there is any asynchronous behavior, then it is either in your bundle >>> or the bundles you are starting, the old Felix shell is synchronous. >>> >>> -> richard >>> >>> p.s. You should probably do a refresh after your update. >>> >>> On 3/4/12 4:48 PM, Fabio Fonseca wrote: >>>> Hello! >>>> >>>> I'm having a problem creating one new command to the Felix Shell 1.4.2. >>>> My >>>> command just reads one text file and issues other commands. In my text >>>> file, >>>> I would have, for example: >>>> >>>> start 14 >>>> start 15 >>>> update 13 >>>> start 13 >>>> >>>> Is is working but I'm having problems regarding the order in which >>>> these >>>> command get executed. I need it to wait for the bundle 14 to be >>>> effectively >>>> started and only than issue the "start 15" command. But this is not >>>> happening. It sounds like it is creating one thread for each line of my >>>> text >>>> file and they are all executing concurrently. >>>> >>>> To create my command I have just took a look at the source code for the >>>> shell 1.4.2 and done the command.execute the same way it is been done >>>> there. >>>> >>>> How can I make sure the command execution is done synchronously instead >>>> of >>>> asynchronously, as it seems to be? >>>> >>>> Thanks in advance! >>>> Fabio Fonseca >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >>> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://old.nabble.com/Felix-Shell-command-to-execute-commands---concurrency-issue-tp33440097p33442444.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

