Examples of InvocationManager


Examples of com.sun.enterprise.InvocationManager

    * is thrown during effort to get a connection
    * else will keep retrying until a connection is obtained
    */    
    protected Connection getConnectionFromPool(boolean autoCommit) throws IOException {
        Connection conn = null;
        InvocationManager invmgr = null;
        ComponentInvocation ci = null;
        try {
            /*
            invmgr = Switch.getSwitch().getInvocationManager();
            ci = new ComponentInvocation(this, container);
View Full Code Here

Examples of com.sun.enterprise.InvocationManager

        if(mechanism == null) {
            return null;
        }
        boolean sslUsed = cc.getSSLUsed();
        boolean clientAuthOccurred = cc.getSSLClientAuthenticationOccurred();
        InvocationManager im = Switch.getSwitch().getInvocationManager();
        if(im == null) {
            // Standalone client
            context = getSecurityContextForAppClient(null, sslUsed,
clientAuthOccurred);
            return context;
        }

        if (_logger.isLoggable(Level.FINE)) {
            _logger.log(Level.FINE, "SSL used:" + sslUsed + " SSL Mutual auth:" + clientAuthOccurred);
        }

        ComponentInvocation ci = null;
        // BEGIN IASRI# 4646060
        ci = im.getCurrentInvocation();
        if (ci == null) {
        // END IASRI# 4646060
            return null;
        }
        Object obj = ci.getContainerContext();
View Full Code Here

Examples of com.sun.enterprise.InvocationManager

    public static InitialContext initializeNaming(Properties iiopProperties) throws NamingException {
        InitialContext result = new InitialContext(iiopProperties);
       
        Switch sw = Switch.getSwitch();
       
  InvocationManager im = new InvocationManagerImpl();
  sw.setInvocationManager(im);

        /* Create the naming manager and set it in the switch before the xn svc. */
  sw.setNamingManager(new NamingManagerImpl(result));

View Full Code Here

Examples of com.sun.enterprise.InvocationManager

  // authorization check with a generic web service message check
  // and move the endpoint specific check down stream
  if (isEjbEndpoint) {

      Switch theSwitch = Switch.getSwitch();
      InvocationManager invManager= theSwitch.getInvocationManager();
      Invocation inv= (Invocation) invManager.getCurrentInvocation();
            // one need to copy message here, otherwise the message may be
            // consumed
            inv.setMessage(request.getMessage().copy());
      Exception ie = null;
            Method m = null;
View Full Code Here

Examples of com.sun.enterprise.InvocationManager

  }
  EJBRoleRefPermission ejbrr = new EJBRoleRefPermission(ejbName, role);

   SecurityContext sc;
  if (runAs != null) {
      InvocationManager im = theSwitch.getInvocationManager();
      ComponentInvocation ci = im.getCurrentInvocation();
      sc = ci.getOldSecurityContext();
  } else {
      sc = SecurityContext.getCurrent();
  }
   Set principalSet = null;
View Full Code Here

Examples of com.sun.enterprise.InvocationManager

  SecurityContext sc = null;
  if (runAs != null){ // Run As
      /* return the principal associated with the old security
       * context
       */
      InvocationManager im = theSwitch.getInvocationManager();
      ComponentInvocation ci =  im.getCurrentInvocation();

      if (ci == null) {
    throw new InvocationException(); // 4646060
      }
      sc = ci.getOldSecurityContext();
View Full Code Here

Examples of edu.isi.karma.rep.sources.InvocationManager

    return url;
  }
 
  private Table invokeWebAPI(String requestURLString) {
   
    InvocationManager invocatioManager;
    try {
      invocatioManager = new InvocationManager(null, requestURLString);
      logger.info("Requesting data with includeURL=" + true + ",includeInput=" + true + ",includeOutput=" + true);
      Table serviceTable = invocatioManager.getServiceData(false, false, true);
      logger.debug(serviceTable.getPrintInfo());
      logger.info("The service " + service.getUri() + " has been invoked successfully.");
      return serviceTable;

    } catch (MalformedURLException e) {
View Full Code Here

Examples of edu.isi.karma.rep.sources.InvocationManager

    for (int i = 0; i < rows.size(); i++) {
      requestIds.add(rows.get(i).getId());
      requestURLStrings.add(rows.get(i).getNode(hNodeId).getValue().asString());
    }

    InvocationManager invocatioManager;
    try {
      invocatioManager = new InvocationManager(getUrlColumnName(wk), requestIds, requestURLStrings, encoding);
      logger.info("Requesting data with includeURL=" + false + ",includeInput=" + true + ",includeOutput=" + true);
     
      // This generate a flat table of the json results
      Table serviceTable = invocatioManager.getServiceData(false, true, true);
      ServiceTableUtil.populateWorksheet(serviceTable, wk, workspace.getFactory(), selection);
     
      // FIXME
//      String json = invocatioManager.getServiceJson(true);
      invocatioManager.getServiceJson(true);
//      new JsonImport(json, wk, ws.getFactory());
//      logger.debug(json);


     
      WebService service = invocatioManager.getInitialServiceModel(null);
      MetadataContainer metaData = wk.getMetadataContainer();
      if (metaData == null) {
        metaData = new MetadataContainer();
        wk.setMetadataContainer(metaData);
      }
View Full Code Here

Examples of edu.isi.karma.rep.sources.InvocationManager

        List<String> urls = new ArrayList<String>();
        urls.add(serviceUrl);
        List<String> ids = new ArrayList<String>();
        ids.add("1");
        try {
            InvocationManager invocatioManager = new InvocationManager(null, ids, urls, encoding);
            String json = invocatioManager.getServiceJson(includeInputAttributes);
      logger.debug(json);
            Import imp = new JsonImport(json, worksheetName, workspace, encoding, -1);

            Worksheet wsht = imp.generateWorksheet();
            c.add(new ImportServiceCommandPreferencesUpdate(serviceUrl, worksheetName));
View Full Code Here

Examples of edu.isi.karma.rep.sources.InvocationManager

      logger.error("Data table does not have any row.");
      return new UpdateContainer(new ErrorUpdate("Data table does not have any row."))
    }
   
   
    InvocationManager invocatioManager;
    try {
      String encoding = wk.getEncoding();
      invocatioManager = new InvocationManager(getUrlColumnName(wk), requestIds, requestURLStrings, encoding);
      logger.info("Requesting data with includeURL=" + true + ",includeInput=" + true + ",includeOutput=" + true);
      Table serviceTable = invocatioManager.getServiceData(false, false, true);
//      logger.debug(serviceTable.getPrintInfo());
      ServiceTableUtil.populateWorksheet(serviceTable, wk, workspace.getFactory(), selection);
      logger.info("The service " + service.getUri() + " has been invoked successfully.");

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.