Package com.sun.enterprise.jbi.serviceengine.bridge.transport

Examples of com.sun.enterprise.jbi.serviceengine.bridge.transport.JBIAdapter


                        Document doc = getWSDLDocument(sdDocument);
                        endpt.setWsdlDocument(doc);
                    }
                }
            }
            return new JBIAdapter(endpt.getWsep(), endpt, me, endpt.getClassLoader(), ejbEndPtInfo);
           
        } catch (Exception e) {
            logger.log(Level.SEVERE,"Exception in creating JBIAdapter:"+e.getMessage(), e);
        }
        return null;
View Full Code Here


            if(dei != null) {
                service = dei.getServiceName();
                endpointName = dei.getEndpointName();
            }
            JBIAdapterBuilder builder = new JBIAdapterBuilder();
            JBIAdapter jbiAdapter = null;
           
            try {
                debug(Level.FINE,"serviceengine.process_incoming_request",
                        new Object[]{service.getLocalPart(), endpointName});
               
                jbiAdapter = builder.createAdapter(service,endpointName,me);
               
                Thread curThread = Thread.currentThread();
                if (jbiAdapter != null) {
                    ClassLoader currentLoader =
                            curThread.getContextClassLoader();
                    try {
                        // do we need to perform security checks here?
                        curThread.setContextClassLoader(jbiAdapter.getClassLoader());
                        // call to invoke the endpoint
                        jbiAdapter.handle();
                    } finally {
                        curThread.setContextClassLoader(currentLoader);
                    }
                } else
                    logger.log(Level.WARNING, "Endpoint ["+endpointName+"] not registered");
               
                debug(Level.FINE,"serviceengine.success_incoming_request",
                        new Object[]{service.getLocalPart(), endpointName});
               
            } catch(Throwable e) {
                logger.log(Level.SEVERE, "serviceengine.error_incoming_request", e);
                ServiceEngineException seException = new ServiceEngineException(e);
                if(jbiAdapter != null) {
                    jbiAdapter.handleException(seException);
                }
            }
        } catch(Exception e) {
            logger.log(Level.SEVERE, "JavaEEServiceEngine : Error processing request" + e  , e);
        }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.jbi.serviceengine.bridge.transport.JBIAdapter

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.