Package com.sun.enterprise

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


        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

    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

  // 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

  }
  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

  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

TOP

Related Classes of com.sun.enterprise.InvocationManager

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.