Package com.sun.enterprise

Examples of com.sun.enterprise.ComponentInvocation


                tx = new J2EETransaction();
            transactions.set(tx);
            if (monitoringEnabled) {
              activeTransactions.addElement(tx);
                m_transInFlight++;
                ComponentInvocation inv = invMgr.getCurrentInvocation();
                if (inv != null && inv.getInstance() != null) {
                    tx.setComponentName(inv.getInstance().getClass().getName());
                }
            }
        }finally{
          if(acquiredlock){
              freezeLock.releaseReadLock();
View Full Code Here


    public QName[] getHeaders() {
        return new QName[0];
    }

    public boolean handleRequest(MessageContext context) {
        ComponentInvocation inv = null;

        try {
            Switch theSwitch = Switch.getSwitch();
            InvocationManager invManager = theSwitch.getInvocationManager();
            inv = invManager.getCurrentInvocation();

            Method webServiceMethodInPreHandler = inv.getWebServiceMethod();
            if( webServiceMethodInPreHandler != null ) {
                Method postHandlerMethod =
                    wsUtil.getInvMethod(inv.getWebServiceTie(), context);
           
                if( !webServiceMethodInPreHandler.equals(postHandlerMethod) ) {
                    throw new UnmarshalException
                        ("Original method " + webServiceMethodInPreHandler
                         + " does not match post-handler method " +
View Full Code Here

        if(facade == null)
            return null;

        InvocationManager invmgr =
           Switch.getSwitch().getInvocationManager();
        ComponentInvocation inv = invmgr.getCurrentInvocation();
        if (inv == null || inv.getInstance() == null) {
           return null;
        }

        // ServiceEngineUtil is used here because a package level variable of
        // WSClientContainer is used to get the portInfo
View Full Code Here

        injectionMgr = Switch.getSwitch().getInjectionManager();
    }

    public void injectResources(Object instance, Context context,
        SipBundleDescriptor sbd) {
        ComponentInvocation inv = new ComponentInvocation(instance, context);
        im.preInvoke(inv);
       
        try {
            injectionMgr.injectInstance(instance, sbd);
        } catch (InjectionException e) {
View Full Code Here

    }

    public static void preInvoke(Context ctx) {
        try {
            if (ctx != null) {
                ComponentInvocation inv = new ComponentInvocation();
                inv.instance = null;
                inv.container = ctx;

                Switch.getSwitch().getInvocationManager().preInvoke(inv);
            }
View Full Code Here

    }

    public static void postInvoke(Context ctx) {
        try {
            if (ctx != null) {
               ComponentInvocation inv = new ComponentInvocation();
               inv.instance = null;
               inv.container = ctx;

               Switch.getSwitch().getInvocationManager().postInvoke(inv);
            }
View Full Code Here

        InvocationManager im = Switch.getSwitch().getInvocationManager();
        if (im == null) {
            return null;
        }

        ComponentInvocation inv = null;

        inv = im.getCurrentInvocation();
        if (inv == null) {
            return null;
        }
        Object container = inv.getContainerContext();
        JndiNameEnvironment env = (JndiNameEnvironment) Switch.getSwitch().getDescriptorFor(container);
        // env can be null if it's CMP SQL generation
        if (env == null) {
            return null;
        }
View Full Code Here

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

    * 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);
            invmgr.preInvoke(ci);
View Full Code Here

        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();
        if(obj instanceof AppContainer) {
            context = getSecurityContextForAppClient(ci, sslUsed, clientAuthOccurred);
        } else {
            context = getSecurityContextForWebOrEJB(ci, sslUsed, clientAuthOccurred);
        }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.ComponentInvocation

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.