[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed

tpawankumar do-not-reply at jboss.com
Tue Apr 1 08:39:05 EDT 2008


Hi oskar/wolfc

I have tried both options suggested by you but it is not working.
Following is the code of my stateless bean

  | @Service
  | @Stateless
  | @Remote(ConfigService.class)
  | @Local(ConfigService.class)
  | public class ConfigServiceBean implements ConfigService {
  | 
  | 
  | @PostConstruct
  | public void test(){
  | System.out.println("Called test....");
  | }
  | 
  | /**
  | *some methods inside this bean
  | **/
  | }
  | 


The method test() is not getting called when it is deployed.
Server i am using is Jboss 4.2.1 GA.
The method is getting called when first request is sent to the bean.

Please let me know if i miss something.

Please help me.

Thanks,
Pavan 

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

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



More information about the jboss-user mailing list