Package com.sun.enterprise

Examples of com.sun.enterprise.InvocationManager


     *         found.
     **/
    static EntityManagerFactory lookupEntityManagerFactory(String emfUnitName)
    {

        InvocationManager invMgr = Switch.getSwitch().getInvocationManager();
        ComponentInvocation inv  = invMgr.getCurrentInvocation();

        EntityManagerFactory emf = null;

        if( inv != null ) {

View Full Code Here


    Socket socket) {
       
        String alias = null;
       
        if(this.alias == null){
            InvocationManager im = Switch.getSwitch().getInvocationManager();
            if(im == null) {
                // standalone client
                alias = mgr.chooseClientAlias(keyType, issuers, socket);
            } else {
                ComponentInvocation ci = im.getCurrentInvocation();
               
                if (ci == null) {       // 4646060
                    throw new InvocationException();
                }
               
View Full Code Here

        Container container = null;

        try {

            Switch theSwitch = Switch.getSwitch();
            InvocationManager invManager = theSwitch.getInvocationManager();
            inv = (Invocation) invManager.getCurrentInvocation();
            container = (Container) inv.container;

            inv.method = wsUtil.getInvMethod(inv.getWebServiceTie(), context);

            // Result can be null for some error cases.  This will be
View Full Code Here

    if( fullName.equals(ORB_STRING) ) {
        // return the singleton ORB instance
        return ORBManager.getORB();
    }
    else if ( fullName.equals(USER_TX) ) {
        InvocationManager invMgr = Switch.getSwitch().getInvocationManager();
        ComponentInvocation inv = null;
        if (invMgr != null) {
            inv = invMgr.getCurrentInvocation();
        }
        if ((inv != null) && (inv.container != null)) {
            if (inv.container instanceof BaseContainer) {
          BaseContainer container = (BaseContainer) inv.container;
          container.checkUserTransactionLookup(inv);
View Full Code Here

        Invocation inv = null;
        boolean continueProcessing = true;

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

            Method webServiceMethodInPreHandler = inv.getWebServiceMethod();

            if( webServiceMethodInPreHandler != null ) {
View Full Code Here

    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);
View Full Code Here

    public static boolean socketServiceNotified(int port) {

        ASSocketService ss = ASSocketService.get(port);
        if (ss != null) {
            InvocationManager im = Switch.getSwitch().getInvocationManager();
            //System.out.println("Startup invocation :" + im.isStartupInvocation());
            ss._socketServiceNotified(port);
            return im.isStartupInvocation();
        } else {
            return true;
        }
    }
View Full Code Here

        ServiceEngineFacade facade =
                ServiceEngineRtObjectFactory.getInstance().getFacade();
        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
View Full Code Here

            throw new RuntimeException(ex);
        }
    }

    private String getTrustConfigIdentifier() {
        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);
View Full Code Here

    * is thrown during effort to get a connection
    * 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);
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.