I use the @Startup
annotation to set entry point on the deploying process in EJB, but it does not work. See code example below:
@Singleton
@Startup
public class SchedulerManager {
private static Logger log = Logger.getLogger(SchedulerManager.class);
@PostConstruct
public void atStartup() {
System.out.println("stutrup!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
}
}
I'm using JBoss5.1.0
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Please, give me suggestion what I'm doing wrong.
Thanks! Artem