[jboss-user] [EJB 3.0] - Re: @PostConstruct and @PreDestroy in JBoss AS 5.0.0CR2

jaikiran do-not-reply at jboss.com
Mon Sep 22 05:46:55 EDT 2008

anonymous wrote : QueueExecuterBean which holds the reference to QueueRunner should be started AS SOON AS the application is deployed.

@PostConstruct will not be called when the application is deployed. What you are trying to do, can be achieved through JBoss specific @Service http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/jboss_extensions.html. Unfortunately, one of the users has reported that the @Service feature seems to be having some issues with respect to lifecycle management methods in JBoss-5 CR2. Give it a try and see if it works for you. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177973#4177973

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177973

More information about the jboss-user mailing list