On Mon, 10 Oct 2011 18:51:36 -0300, Tony Nelson <tnel...@starpoint.com>
wrote:
In this scenario, are you in a web app or not?
I am in a web app, however, I have a service that I need to start as a
runnable. The services is registered with bind, and started with
@Startup in AppModule.
You can inject ObjectLocator (superinterface of Registry which declares
the getService() methods) in your service which is registered by bind and
pass it to your Runnable.
By the way, why don't you pass the needed services themselves to the
Runnable instead of passing ObjectLocator to them? Having a service that
creates this Runnables would make things better organized anyway.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org