Package org.apache.geronimo.kernel

Examples of org.apache.geronimo.kernel.StoredObject


            // TODO: add support for handlers defined in the webservice.xml
           
            /*List<Handler> handlers =*/ buildHandlerChain(portInfo);
           
            CeltixWebServiceContainer container = new CeltixWebServiceContainer(portInfo);          
            targetGBean.setAttribute(WEB_SERVICE_CONTAINER_ATTR, new StoredObject(container));
           
        } catch (IOException ex) {
            throw new DeploymentException("unable to store CeltixWebServiceContainer", ex);
        } finally {
            Thread.currentThread().setContextClassLoader(orig);
View Full Code Here


        classLoader = new ClassLoaderReference(classLoader);
        AxisWebServiceContainer axisWebServiceContainer = new AxisWebServiceContainer(location, wsdlURI, service, serviceInfo.getWsdlMap(), classLoader);
        //targetGBean.setAttribute("webServiceContainer", axisWebServiceContainer);
        try {
            targetGBean.setAttribute("webServiceContainer", new StoredObject(axisWebServiceContainer)); // Hack!
        } catch (IOException e) {
            throw new DeploymentException("Unable to serialize the AxisWebServiceContainer", e);
        }
    }
View Full Code Here

                        Object portInfo = portMap.get(servletName);
                        if (portInfo == null) {
                            throw new DeploymentException("No web service deployment info for servlet name " + servletName);
                        }

                        StoredObject wsContainer = configurePOJO(webModule.getModuleFile(), portInfo, servletClassName, webClassLoader);
                        webServices.put(servletName, wsContainer);
                    }
                }
            }
View Full Code Here

            servletClass = cl.loadClass(servletClassName);
            //Check if the servlet is of type Servlet class
            if (!baseServletClass.isAssignableFrom(servletClass)){
                //Nope - its probably a webservice, so lets see...
                if (webServiceMap != null){
                    StoredObject storedObject = (StoredObject)webServiceMap.get(wrapper.getName());

                    if (storedObject != null){
                        WebServiceContainer webServiceContainer = null;
                        try{
                            webServiceContainer = (WebServiceContainer)storedObject.getObject(cl);
                        } catch(IOException io){
                            throw new RuntimeException(io);
                        }
                        //Yep its a web service
                        //So swap it out with a POJOWebServiceServlet
View Full Code Here

                        Object portInfo = portMap.get(servletName);
                        if (portInfo == null) {
                            throw new DeploymentException("No web service deployment info for servlet name " + servletName);
                        }

                        StoredObject wsContainer = configurePOJO(webModule.getModuleFile(), portInfo, servletClassName, webClassLoader);
                        webServices.put(servletName, wsContainer);
                    }
                }
            }
View Full Code Here

        classLoader = new ClassLoaderReference(classLoader);
        AxisWebServiceContainer axisWebServiceContainer = new AxisWebServiceContainer(location, wsdlURI, service, serviceInfo.getWsdlMap(), classLoader);
        //targetGBean.setAttribute("webServiceContainer", axisWebServiceContainer);
        try {
            targetGBean.setAttribute("webServiceContainer", new StoredObject(axisWebServiceContainer)); // Hack!
        } catch (IOException e) {
            throw new DeploymentException("Unable to serialize the AxisWebServiceContainer", e);
        }
    }
View Full Code Here

            servletClass = cl.loadClass(servletClassName);
            //Check if the servlet is of type Servlet class
            if (!baseServletClass.isAssignableFrom(servletClass)) {
                //Nope - its probably a webservice, so lets see...
                if (webServiceMap != null) {
                    StoredObject storedObject = (StoredObject) webServiceMap.get(wrapper.getName());

                    if (storedObject != null) {
                        WebServiceContainer webServiceContainer = null;
                        try {
                            webServiceContainer = (WebServiceContainer) storedObject.getObject(cl);
                        } catch (IOException io) {
                            throw new RuntimeException(io);
                        }
                        //Yep its a web service
                        //So swap it out with a POJOWebServiceServlet
View Full Code Here

            servletClass = cl.loadClass(servletClassName);
            //Check if the servlet is of type Servlet class
            if (!baseServletClass.isAssignableFrom(servletClass)){
                //Nope - its probably a webservice, so lets see...
                if (webServiceMap != null){
                    StoredObject storedObject = (StoredObject)webServiceMap.get(wrapper.getName());
                       
                    if (storedObject != null){
                        WebServiceContainer webServiceContainer = null;
                        try{
                            webServiceContainer = (WebServiceContainer)storedObject.getObject(cl);
                        } catch(IOException io){
                            throw new RuntimeException(io);
                        }
                        //Yep its a web service
                        //So swap it out with a POJOWebServiceServlet
View Full Code Here

                        Object portInfo = portMap.get(servletName);
                        if (portInfo == null) {
                            throw new DeploymentException("No web service deployment info for servlet name " + servletName);
                        }

                        StoredObject wsContainer = configurePOJO(webModule.getModuleFile(), portInfo, servletClassName, webClassLoader);
                        webServices.put(servletName, wsContainer);
                    }
                }
            }
            webModuleData.setAttribute("webServices", webServices);
View Full Code Here

        }

        classLoader = new ClassLoaderReference(classLoader);
        AxisWebServiceContainer axisWebServiceContainer = new AxisWebServiceContainer(location, wsdlURI, service, serviceInfo.getWsdlMap(), classLoader);

        return new StoredObject(axisWebServiceContainer);
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.kernel.StoredObject

Copyright © 2018 www.massapicom. 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.