This content has been marked as final.
Show 1 reply
-
1. Re: Asynchronous execution in JBOSGi
bosschaert May 17, 2011 8:50 AM (in response to bosschaert)Answering my own question, it seems that MSC can help here in that you can create a service on the fly and install that. Like this:
{code}ServiceBuilder<Void> builder = serviceTarget.addService(serviceName, new AbstractService<Void>() {
public void start(StartContext context) throws StartException {
// do some async stuff
}
});
builder.addDependencies(...deps...); // optional
builder.install(); // kick it off{code}
am I correct?