On Wed, 05 Oct 2011 17:23:44 -0300, Muhammad Gelbana <m.gelb...@gmail.com> wrote:

I've done everything as directed in the page but the annotation *@PostInjection *didn't work so I had to invoke the method "public void startupService(RegistryShutdownHub shutdownHub)" manually at a static method annotated with @Startup in my "AppModule" class.

You mixed two things that are different. You need this method to your AppModule to contribute something to be run at startup:

public static void contributeRegistryStartup(OrderedConfiguration<Runnable>) {
        ...
}

Please read the Tapestry-IoC documentation to understand what this method does.

For shutdown, inject RegistryShutdownHub and add RegistryShutdownLister to it.

--
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

Reply via email to