0

How can i tell a application server to call a method in my stateless ejb so that I can print some message during deployment. If I annotate the method with @PostConstruct then it is not working. I also added static block still not working. I dont want to use MBean. Also my ear does not have any web project. So I can not use any servlet and its init method to print such messages.

Server we are using is Jboss.

thanks

user509755
  • 2,941
  • 10
  • 48
  • 82

1 Answers1

0

There is no such mechanism in EJB 3.0.

Eager / auto loading of EJB / load EJB on startup (on JBoss)

Community
  • 1
  • 1
Brett Kail
  • 33,593
  • 2
  • 85
  • 90