Package javax.servlet

Examples of javax.servlet.ServletContext.log()


   *
   * @param e the exception which was thrown
   */
  protected void doUnexpectedFailure(Throwable e) {
    ServletContext servletContext = getServletContext();
    servletContext.log("Exception while dispatching incoming RPC call", e);

    // Send GENERIC_FAILURE_MSG with 500 status.
    //
    respondWithFailure(getThreadLocalResponse());
  }
View Full Code Here


        ServletContext servletContext = getServletContext();
        HttpServletResponse response = getThreadLocalResponse();

        //==== Inspired by RPCServletUtils.writeResponseForUnexpectedFailure(ServletContext,HttpServletResponse,Throwable)

        servletContext.log("Exception while dispatching incoming RPC call", e);

        try {
            response.setContentType("text/plain");
            response.setStatus(translation.getStatusCode());
            try {
View Full Code Here

            } catch (IllegalStateException ise) {
                // Handle the (unexpected) case where getWriter() was previously used
                response.getWriter().write(translation.getMessage());
            }
        } catch (IOException ex) {
            servletContext.log("respondWithUnexpectedFailure failed while sending the previous failure to the client", ex);
        }
    }

    @Override
    public String processCall(String payload) throws SerializationException {
View Full Code Here

     */
    public void contextInitialized(final ServletContextEvent servletContextEvent)
    {
        final ServletContext servletContext = servletContextEvent.getServletContext() ;
       
        servletContext.log("Initialising ESB Configuration Controller") ;
        final String catalinaHome = System.getProperty("catalina.home") ;
        if (catalinaHome == null)
        {
            servletContext.log("***** Error initialising context, catalina home not set") ;
        }
View Full Code Here

       
        servletContext.log("Initialising ESB Configuration Controller") ;
        final String catalinaHome = System.getProperty("catalina.home") ;
        if (catalinaHome == null)
        {
            servletContext.log("***** Error initialising context, catalina home not set") ;
        }
        else
        {
            final File catalinaHomeDir = new File(catalinaHome) ;
            final File confDir = new File(catalinaHomeDir, "conf") ;
View Full Code Here

            final File propertyFile = new File(confDir, "jbossesb-properties.xml") ;
            final String absPropertyFile = propertyFile.getAbsolutePath() ;
           
            System.setProperty(Environment.PROPERTIES_FILE, "abs://" + absPropertyFile) ;
           
            servletContext.log("ESB Property configuration obtained from file: " + absPropertyFile);
           
            final File juddiPropertyFile = new File(confDir, "juddi.properties") ;
            final String absJuddiPropertyFile = juddiPropertyFile.getAbsolutePath() ;
            System.setProperty("juddi.propertiesFile", absJuddiPropertyFile) ;
           
View Full Code Here

           
            final File juddiPropertyFile = new File(confDir, "juddi.properties") ;
            final String absJuddiPropertyFile = juddiPropertyFile.getAbsolutePath() ;
            System.setProperty("juddi.propertiesFile", absJuddiPropertyFile) ;
           
            servletContext.log("ESB juddi configuration obtained from file: " + absJuddiPropertyFile) ;
           
            final File configFile = new File(confDir, "jboss-esb.xml") ;
            final String absConfigFile = configFile.getAbsolutePath() ;
           
            servletContext.log("ESB configuration obtained from file: " + absConfigFile) ;
View Full Code Here

            servletContext.log("ESB juddi configuration obtained from file: " + absJuddiPropertyFile) ;
           
            final File configFile = new File(confDir, "jboss-esb.xml") ;
            final String absConfigFile = configFile.getAbsolutePath() ;
           
            servletContext.log("ESB configuration obtained from file: " + absConfigFile) ;
           
            configurationController = new ConfigurationController(absConfigFile, null) ;
            new Thread(configurationController).start() ;
        }
    }
View Full Code Here

    {
        if (configurationController != null)
        {
            final ServletContext servletContext = servletContextEvent.getServletContext() ;
           
            servletContext.log("ESB starting termination") ;
           
            configurationController.requestEnd() ;
            configurationController.waitUntilEnded() ;
           
            servletContext.log("ESB terminated") ;
View Full Code Here

            servletContext.log("ESB starting termination") ;
           
            configurationController.requestEnd() ;
            configurationController.waitUntilEnded() ;
           
            servletContext.log("ESB terminated") ;
        }
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.