How to configure a start up class in glassfish server?
===

I want a managed bean run internally on start up in my JSF web application when the application load.
but how to write this class and configure in glassfish.
  please help me 