Examples of WebServiceEngineImpl


Examples of com.sun.enterprise.webservice.monitoring.WebServiceEngineImpl

    protected void doPost(HttpServletRequest request,
                          HttpServletResponse response)
        throws ServletException {
       
        WebServiceEngineImpl wsEngine_ = WebServiceEngineImpl.getInstance();
       
        if ("Tester".equalsIgnoreCase(request.getQueryString())) {           
            Endpoint endpt = wsEngine_.getEndpoint(request.getServletPath());
            if (endpt!=null && Boolean.parseBoolean(endpt.getDescriptor().getDebugging())) {
                WebServiceTesterServlet.invoke(request, response,
                        endpt.getDescriptor());
                return;
            }
        }       
               
        if (delegate_ != null) {
            // check if we need to trace this...       
            String messageId=null;
            if (wsEngine_.getGlobalMessageListener()!=null) {
                Endpoint endpt = wsEngine_.getEndpoint(request.getServletPath());               
                messageId = wsEngine_.preProcessRequest(endpt)
                if (messageId!=null) {
                    ThreadLocalInfo config = new ThreadLocalInfo(messageId, request);
                    wsEngine_.getThreadLocal().set(config);
                }
            }
           
            delegate_.doPost(request, response);
           
            if (messageId!=null) {
                HttpResponseInfoImpl info = new HttpResponseInfoImpl(response);
                wsEngine_.postProcessResponse(messageId, info);
            }
        }
    }
View Full Code Here

Examples of com.sun.enterprise.webservice.monitoring.WebServiceEngineImpl

                adapterListMap.put(ctxtRoot, list);
            }
        }
       
        // notify monitoring layers that a new endpoint is being created.
        WebServiceEngineImpl engine = (WebServiceEngineImpl) WebServiceEngineFactory.getInstance().getEngine();
        if (endpoint.getEndpoint().getWebService().getMappingFileUri()!=null) {
            engine.createHandler((com.sun.xml.rpc.spi.runtime.SystemHandlerDelegate)null, endpoint.getEndpoint());
        } else {
            engine.createHandler(endpoint.getEndpoint());
            // Safe to assume that it's a JAXWS endpoint
            endpoint.initRuntimeInfo((ServletAdapterList)adapterListMap.get(ctxtRoot));
        }
    }
View Full Code Here

Examples of com.sun.enterprise.webservice.monitoring.WebServiceEngineImpl

        if (endpoint==null) {
            return;
        }
       
        // notify the monitoring layers that an endpoint is destroyed
        WebServiceEngineImpl engine = (WebServiceEngineImpl) WebServiceEngineFactory.getInstance().getEngine();
        engine.removeHandler(endpoint.getEndpoint());
    }
View Full Code Here

Examples of com.sun.enterprise.webservice.monitoring.WebServiceEngineImpl

     * Registers this EjbWebServiceRegistryListener with the EJB webservice
     * registry.
     */
    public void register() {

        WebServiceEngineImpl wsEngine = WebServiceEngineImpl.getInstance();

        wsEngine.addLifecycleListener(this);

        /*
         * Process any webservice endpoints that had been added before we've
         * started listening for registration events.
         */
        Iterator<Endpoint> endpoints = wsEngine.getEndpoints();
        if (endpoints != null) {
            while (endpoints.hasNext()) {
                endpointAdded(endpoints.next());
            }
        }
View Full Code Here

Examples of org.glassfish.webservices.monitoring.WebServiceEngineImpl

            } else throw new WebServiceException(rb.getString("ejb.endpointuri.error"));
        }


        // notify monitoring layers that a new endpoint is being created.
        WebServiceEngineImpl engine = WebServiceEngineImpl.getInstance();
        if (endpoint.getEndpoint().getWebService().getMappingFileUri()!=null) {
            engine.createHandler((com.sun.xml.rpc.spi.runtime.SystemHandlerDelegate)null, endpoint.getEndpoint());
        } else {
            engine.createHandler(endpoint.getEndpoint());
            try {
                endpoint.initRuntimeInfo((ServletAdapterList)adapterListMap.get(uri));
            } catch (Exception e) {
                logger.log(Level.WARNING,
                       "Unexpected error in EJB WebService endpoint post processing", e);
View Full Code Here

Examples of org.glassfish.webservices.monitoring.WebServiceEngineImpl

        if (endpoint==null) {
            return;
        }

        // notify the monitoring layers that an endpoint is destroyed
        WebServiceEngineImpl engine = WebServiceEngineImpl.getInstance();

        engine.removeHandler(endpoint.getEndpoint());

    }
View Full Code Here

Examples of org.glassfish.webservices.monitoring.WebServiceEngineImpl

            } else throw new WebServiceException(logger.getResourceBundle().getString(LogUtils.EJB_ENDPOINTURI_ERROR));
        }


        // notify monitoring layers that a new endpoint is being created.
        WebServiceEngineImpl engine = WebServiceEngineImpl.getInstance();
        if (endpoint.getEndpoint().getWebService().getMappingFileUri()!=null) {
            engine.createHandler((com.sun.xml.rpc.spi.runtime.SystemHandlerDelegate)null, endpoint.getEndpoint());
        } else {
            engine.createHandler(endpoint.getEndpoint());
            try {
                endpoint.initRuntimeInfo(adapterListMap.get(uri));
            } catch (Exception e) {
                logger.log(Level.WARNING,LogUtils.EJB_POSTPROCESSING_ERROR, e);
            }
View Full Code Here

Examples of org.glassfish.webservices.monitoring.WebServiceEngineImpl

        if (endpoint==null) {
            return;
        }

        // notify the monitoring layers that an endpoint is destroyed
        WebServiceEngineImpl engine = WebServiceEngineImpl.getInstance();

        engine.removeHandler(endpoint.getEndpoint());

    }
View Full Code Here

Examples of org.glassfish.webservices.monitoring.WebServiceEngineImpl

            } else throw new WebServiceException(logger.getResourceBundle().getString(LogUtils.EJB_ENDPOINTURI_ERROR));
        }


        // notify monitoring layers that a new endpoint is being created.
        WebServiceEngineImpl engine = WebServiceEngineImpl.getInstance();
        if (endpoint.getEndpoint().getWebService().getMappingFileUri()!=null) {
            engine.createHandler((com.sun.xml.rpc.spi.runtime.SystemHandlerDelegate)null, endpoint.getEndpoint());
        } else {
            engine.createHandler(endpoint.getEndpoint());
            try {
                endpoint.initRuntimeInfo((ServletAdapterList)adapterListMap.get(uri));
            } catch (Exception e) {
                logger.log(Level.WARNING,LogUtils.EJB_POSTPROCESSING_ERROR, e);
            }
View Full Code Here

Examples of org.glassfish.webservices.monitoring.WebServiceEngineImpl

        if (endpoint==null) {
            return;
        }

        // notify the monitoring layers that an endpoint is destroyed
        WebServiceEngineImpl engine = WebServiceEngineImpl.getInstance();

        engine.removeHandler(endpoint.getEndpoint());

    }
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.