Do Or As Well As Hence Initialization Operate Afterwards The Spider Web Application Initialization Process

We tin hand this past times using a webListener. See code below:

 packet com.czetsuya;  import java.text.MessageFormat; import java.util.ResourceBundle;  import javax.inject.Inject; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import javax.servlet.annotation.WebListener;  import org.omnifaces.util.Messages; import org.slf4j.Logger; import org.slf4j.LoggerFactory;  @WebListener world degree WebServletListener implements ServletContextListener {   somebody static Logger log = LoggerFactory    .getLogger(WebServletListener.class);   @Inject  somebody transient ResourceBundle resourceBundle;   @Override  world void contextDestroyed(ServletContextEvent arg0) {   }   @Override  world void contextInitialized(ServletContextEvent arg0) {   log.info("Hello czetsuya");   log.info("@author: czetsuya@gmail.com");   log.info("-----------------------------------------------");   log.info("Web context starting...");  }  } 
Next
Previous
Click here for Comments

0 komentar:

Please comment if there are any that need to be asked.