Examples of invoke()


Examples of org.apache.ode.bpel.iapi.MyRoleMessageExchange.invoke()

                mex = odeServer.getBpelServer().getEngine().createMessageExchange(new GUID().toString(),
                        new QName("http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl", "HelloService"), "hello");

                Message request = mex.createMessage(new QName("", ""));
                request.setMessage(DOMUtils.stringToDOM("<message><TestPart><hello xmlns=\"http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl\">Hello</hello></TestPart></message>"));
                onhold = mex.invoke(request);
                txMgr.commit();
            } catch (Exception e) {
                e.printStackTrace();
                txMgr.rollback();
            }
View Full Code Here

Examples of org.apache.openejb.RpcContainer.invoke()

    protected void doEjbObject_BUSINESS_METHOD(EJBRequest req, EJBResponse res) throws Exception {

        CallContext call = CallContext.getCallContext();
        RpcContainer c = (RpcContainer) call.getDeploymentInfo().getContainer();

        Object result = c.invoke(req.getDeploymentId(),
                req.getInterfaceClass(), req.getMethodInstance(),
                req.getMethodParameters(),
                req.getPrimaryKey()
        );
View Full Code Here

Examples of org.apache.openejb.async.AsynchronousPool.invoke()

            }
            final Object securityState = stateTmp;
            final ThreadContext currentCtx = ThreadContext.getThreadContext();
            final AsynchronousPool asynchronousPool = beanContext.getModuleContext().getAppContext().getAsynchronousPool();

            return asynchronousPool.invoke(new Callable<Object>() {
                @Override
                public Object call() throws Exception {
                    final Object threadState;
                    if (associate) {
                        //noinspection unchecked
View Full Code Here

Examples of org.apache.openejb.core.interceptor.InterceptorStack.invoke()

                transactionType = isBeanManagedTransaction()? TransactionType.BeanManaged: TransactionType.NotSupported;
            }
            TransactionPolicy transactionPolicy = EjbTransactionUtil.createTransactionPolicy(transactionType, callContext);
            try{
                //Call the chain
                postConstruct.invoke();               
            } catch(Throwable e) {
                //RollBack Transaction
                EjbTransactionUtil.handleSystemException(transactionPolicy, e, callContext);
            }
            finally{
View Full Code Here

Examples of org.apache.qpid.proton.amqp.security.SaslFrameBody.invoke()

                        }

                        if(val instanceof SaslFrameBody)
                        {
                            SaslFrameBody frameBody = (SaslFrameBody) val;
                            frameBody.invoke(_sasl, payload,null);

                        }
                        else
                        {
                            // TODO - error
View Full Code Here

Examples of org.apache.qpid.proton.type.security.SaslFrameBody.invoke()

                        }

                        if(val instanceof SaslFrameBody)
                        {
                            SaslFrameBody frameBody = (SaslFrameBody) val;
                            frameBody.invoke(_sasl, payload,null);

                        }
                        else
                        {
                            // TODO - error
View Full Code Here

Examples of org.apache.qpid.transport.Session.invoke()

            conn.registerSession(ssn);
        }
        else
        {
            ssn = getSession(conn, atc);
            ssn.invoke(new SessionDetached(atc.getName(), SessionDetachCode.SESSION_BUSY));
            ssn.closed();
        }
    }

    private boolean isSessionNameUnique(final byte[] name, final Connection conn)
View Full Code Here

Examples of org.apache.servicemix.components.util.ComponentSupport.invoke()

        MessageExchange exchange = getExchange(context, element);
        NormalizedMessage in = getInMessage(context, element);

        // TODO we should allow nested setOutProperty tags

        component.invoke(exchange, in, service, interfaceName, operation);
    }

    /**
     * Invokes the service with the XML content included in the XML element
     */
 
View Full Code Here

Examples of org.apache.shiro.aop.MethodInterceptor.invoke()

public class AopAllianceMethodInterceptorAdapterTest {
    @Test
    public void testInvoke() throws Throwable {
        MethodInvocation allianceInvocation = createMock(MethodInvocation.class);
        MethodInterceptor mockShiroInterceptor = createMock(MethodInterceptor.class);
        expect(mockShiroInterceptor.invoke(anyObject(AopAllianceMethodInvocationAdapter.class))).andAnswer(new IAnswer<Object>() {
            public Object answer() throws Throwable {
                return getCurrentArguments()[0];
            }
        });
        final Object expectedValue = new Object();
View Full Code Here

Examples of org.apache.sirona.reporting.web.handler.internal.Invoker.invoke()

            if (bytes == null) {
                final InputStream is;
                if (!skipFiltering && invoker != defaultInvoker) { // resource is filtered so filtering it before caching it
                    final StringWriter writer = new StringWriter();
                    final PrintWriter printWriter = new PrintWriter(writer);
                    invoker.invoke(httpRequest, HttpServletResponse.class.cast(Proxy.newProxyInstance(classloader, new Class<?>[]{HttpServletResponse.class}, new InvocationHandler() {
                        @Override
                        public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {
                            if ("getWriter".equals(method.getName())) {
                                return printWriter;
                            }
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.