Examples of Adapter


Examples of com.sun.xml.ws.api.server.Adapter

            EjbRuntimeEndpointInfo ejbEndPtInfo=null;
            if(endpt.isImplementedByEJB()) {
               
                ejbEndPtInfo = WebServiceEjbEndpointRegistry.
                        getRegistry().getEjbWebServiceEndpoint(endpt.getURI(), "POST", null);
                Adapter adapter = (Adapter) ejbEndPtInfo.prepareInvocation(true);
                endpt.setWsep(adapter.getEndpoint());
            }else {
               
                String url = endpt.getURI();
                String contextRoot = endpt.getContextRoot();
                Adapter adapter =
                        JAXWSAdapterRegistry.getInstance().getAdapter(contextRoot, url, url);
                if(adapter != null)
                    endpt.setWsep(adapter.getEndpoint());
                //for null adapter endpt is already set during comp app deployment
            }
           
            logger.log(Level.FINE,"Successfully created JBIAdapter for endpoint:"
                    + endpt.getWsep());
View Full Code Here

Examples of com.sun.xml.ws.api.server.Adapter

                }
            }
        }

        Adapter getAdapter(String path, String urlPattern) {
            Adapter result = fixedUrlPatternEndpoints.get(path);
            if (result == null) {               
                // This loop is unnecessary.Essentially what it is doing to always
                // return the first element from pathUrlPatternEndpoints
                // TO DO clean up after SCF required
                synchronized (pathUrlPatternEndpoints) {
                    for (Iterator<Adapter> iter = pathUrlPatternEndpoints.iterator(); iter.hasNext();) {
                        Adapter candidate = iter.next();
                        if (path.startsWith(getValidPathForEndpoint(urlPattern))) {
                            result = candidate;
                            break;
                        }
                    }
View Full Code Here

Examples of com.sun.xml.ws.api.server.Adapter

                }
            }
        }

        Adapter getAdapter(String path, String urlPattern) {
            Adapter result = fixedUrlPatternEndpoints.get(path);
            if (result == null) {               
                // This loop is unnecessary.Essentially what it is doing to always
                // return the first element from pathUrlPatternEndpoints
                // TO DO clean up after SCF required
                synchronized (pathUrlPatternEndpoints) {
                    for (Iterator<Adapter> iter = pathUrlPatternEndpoints.iterator(); iter.hasNext();) {
                        Adapter candidate = iter.next();
                        if (path.startsWith(getValidPathForEndpoint(urlPattern))) {
                            result = candidate;
                            break;
                        }
                    }
View Full Code Here

Examples of gcc.adapter.Adapter

            }
            */

            if (object instanceof Adapter)
            {
                Adapter a = (Adapter)object;
                RemoteInterface remote = a.getRemoteInterface();
                return remote.$getObjectRef();
            }
            else
            {
                NameServiceLog.getInstance().warnObjectHasNoRemoteInterface(nameString, object.getClass().getName());
View Full Code Here

Examples of gcc.adapter.Adapter

//            Adapter a = AdapterManager.getInstance().getAdapter(objectName);
//            if (a != null)
            if (object != null && object instanceof Adapter)
            {
                Adapter a = (Adapter)object;
                //RemoteInterface skeleton = a.getRemoteInterface();
                a.invoke(request.operation, objectKey, objectIn, objectOut);

                if (objectOut.hasException())
                {
                    reply.reply_status = ReplyStatusType_1_2.USER_EXCEPTION;
                }
View Full Code Here

Examples of gcc.adapter.Adapter

        AdapterManager am = AdapterManager.getInstance();

        //
        // NameService
        //
        Adapter a = new Adapter();
        a.setBindName( "NameService" );
        a.setRemoteClassName( "gcc.rmi.iiop.server.ServerNamingContext" );
        a.setRemoteInterfaceName( "gcc.rmi.iiop.NameServiceOperations" );
        a.setShared( true );
        a.addId( "IDL:gcc/rmi/iiop/NameService:1.0" );
        a.addId( "IDL:omg.org/CosNaming/NamingContext:1.0" );
        a.addId( "IDL:omg.org/CosNaming/NamingContextExt:1.0" );
        a.addId( "NameService" ); // this gets passed in by the J2SE 1.4 ORB
        a.setClassLoader( id.getClass().getClassLoader() );
        //a.generateSkels();
        //a.compileSkels();

        am.registerAdapter( a );
        ns.bindAdapter( a );

        //
        // Component
        //
        a = new Adapter();
        a.setBindName( "mark.comps.Add" );
        a.setRemoteClassName( "mark.comps.AddImpl" );
        a.setRemoteInterfaceName( "mark.comps.Add" );
        a.addId( "RMI:mark.comps.Add:0000000000000000" );
        a.setClassLoader( id.getClass().getClassLoader() );

        am.registerAdapter( a );
        ns.bindAdapter( a );

        //
        // Component
        //
        a = new Adapter();
        a.setBindName( "mark.comps.Add2" );
        a.setRemoteClassName( "mark.comps.Add2Impl" );
        a.setRemoteInterfaceName( "mark.comps.Add2" );
        a.addId( "RMI:mark.comps.Add2:0000000000000000" );
        a.setClassLoader( id.getClass().getClassLoader() );

        am.registerAdapter( a );
        ns.bindAdapter( a );
    }
View Full Code Here

Examples of net.sf.xbus.application.Adapter

              } // The content of the request.
              // Subclasses may define their own request content.
              Object requestContent = getRequestContent();

              // call application layer
              Adapter adapter = new Adapter();
              adapter.callApplication(xbusSystem, requestContent,
                  getType());
              // check the Adapter return code
              // in case of "not success" throw new XException
              if (Constants.RC_OK.equals(adapter.getReturncode()))
              {
                TAManager.getInstance().commit();

                PostProcessor.start(xbusSystem, adapter
                    .getResponse(),
                    Constants.POSTPROCESSING_PERSYSTEM);

                Trace.info("End processing "
                    + xbusSystem.getCompleteName());
                Trace
                    .info("----------------------------------------");
                successful = true;
              } // then
              // (Constants.RC_OK.equals(adapter.getReturncode()))
              else
              {
                TAManager.getInstance().rollback();

                NotifyError.notifyError(this, xbusSystem,
                    adapter.getErrormessage(),
                    requestContent, null);

                Trace.info("Error while processing "
                    + xbusSystem.getCompleteName());
                Trace
View Full Code Here

Examples of net.sf.xbus.application.Adapter

      if (requestContent != null)
      {
        Trace.info("Receiving data from " + getAddress());

        // call application layer
        Adapter adapter = new Adapter();
        adapter.callApplication(xbusSystem, requestContent, getType());
        mReturncode = adapter.getReturncode();

        // check the Adapter return code
        // in case of "not success" throw new XException
        if (Constants.RC_OK.equals(adapter.getReturncode()))
        {
          mailReceived = true;
          taManager.commit();
          PostProcessor.start(xbusSystem, adapter.getResponse(),
              Constants.POSTPROCESSING_PERSYSTEM);
          Trace
              .info("End processing "
                  + xbusSystem.getCompleteName());
          Trace.info("----------------------------------------");
View Full Code Here

Examples of net.sf.xbus.application.Adapter

        textString.append(line);
        textString.append(Constants.LINE_SEPERATOR);
      }
      String requestText = textString.toString();

      Adapter adapter = new Adapter();
      adapter.callApplication(mSource, requestText, getType());
      String responseText = (String) adapter.getResponse();

      if (Constants.RC_OK.equals(adapter.getReturncode()))
      {
        TAManager.getInstance().commit();

        initializeAmountErrors();

        PostProcessor.start(mSource, responseText,
            Constants.POSTPROCESSING_PERSYSTEM);

        res.setStatus(HttpServletResponse.SC_OK);
        if ((responseText != null) && (responseText.length() > 0))
        {
          res.setContentType(contentType);
          PrintWriter writer = res.getWriter();
          writer.print(responseText);
          writer.close();
        }
      }
      else
      {
        TAManager.getInstance().rollback();
        handleError(res, null, requestText, adapter.getErrormessage());
      }
    }
    catch (Exception e)
    {
      if (e instanceof XException)
View Full Code Here

Examples of net.sf.xbus.application.Adapter

    {
      throw new XException(Constants.LOCATION_INTERN,
          Constants.LAYER_TECHNICAL,
          Constants.PACKAGE_TECHNICAL_HTTP, "0", e);
    }
    Adapter adapter = new Adapter();
    adapter.callApplication(mSource, inStream, getType());

    if (Constants.RC_OK.equals(adapter.getReturncode()))
    {
      TAManager.getInstance().commit();

      initializeAmountErrors();

      PostProcessor.start(mSource, adapter.getResponse(),
          Constants.POSTPROCESSING_PERSYSTEM);

      res.setStatus(HttpServletResponse.SC_OK);
    }
    else
    {
      TAManager.getInstance().rollback();
      handleError(res, null, null, adapter.getErrormessage());
    }
  }
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.