Examples of InOut


Examples of javax.jbi.messaging.InOut

        component.getServiceUnitManager().deploy("proxy", getServiceUnitPath("proxy"));
        component.getServiceUnitManager().init("proxy", getServiceUnitPath("proxy"));
        component.getServiceUnitManager().start("proxy");
       
        DefaultServiceMixClient client = new DefaultServiceMixClient(container);
        InOut me = client.createInOutExchange(new QName("http://test", "Echo"), null, null);
        me.setInMessage(me.createMessage());
        me.getInMessage().setContent(new StringSource("<echo xmlns='http://test'><msg>world</msg></echo>"));
        client.sendSync(me);
        assertEquals(ExchangeStatus.ACTIVE, me.getStatus());
        assertNotNull(me.getOutMessage());
        client.done(me);
    }
View Full Code Here

Examples of javax.jbi.messaging.InOut

        http.setEndpoints(new HttpEndpoint[] {ep0, ep1});
        jbi.activateComponent(http, "http");

        DefaultServiceMixClient client = new DefaultServiceMixClient(jbi);
        Destination d = client.createDestination("service:urn:test:s0");
        InOut me = d.createInOutExchange();
        me.getInMessage().setContent(new StringSource("<hello>world</hello>"));
       
        tm.begin();
        boolean ok = client.sendSync(me);
        assertTrue(ok);
        client.done(me);
View Full Code Here

Examples of jodd.madvoc.meta.InOut

      In in = field.getAnnotation(In.class);
      ScopeData.In ii = inspectIn(in, scopeType, field.getName(), fieldType);
      if (ii != null) {
        listIn.add(ii);
      }
      InOut inout = field.getAnnotation(InOut.class);
      if (inout != null) {
        if (in != null) {
          throw new MadvocException("@InOut can not be used with @In: " + field.getDeclaringClass() + '#' + field.getName());
        }
        ii = inspectIn(inout, scopeType, field.getName(), field.getType());
        if (ii != null) {
          listIn.add(ii);
        }
      }

      Out out = field.getAnnotation(Out.class);
      ScopeData.Out oi = inspectOut(out, scopeType, field.getName(), fieldType);
      if (oi != null) {
        listOut.add(oi);
      }
      inout = field.getAnnotation(InOut.class);
      if (inout != null) {
        if (out != null) {
          throw new MadvocException("@InOut can not be used with @Out: " + field.getDeclaringClass() + '#' + field.getName());
        }
        oi = inspectOut(inout, scopeType, field.getName(), field.getType());
        if (oi != null) {
          listOut.add(oi);
        }
      }
    }

    // methods
    for (MethodDescriptor methodDescriptor : methods) {
      Method method = methodDescriptor.getMethod();

      String propertyName = ReflectUtil.getBeanPropertySetterName(method);
      if (propertyName != null) {
        In in = method.getAnnotation(In.class);
        ScopeData.In ii = inspectIn(in, scopeType, propertyName, method.getParameterTypes()[0]);
        if (ii != null) {
          listIn.add(ii);
        }
        InOut inout = method.getAnnotation(InOut.class);
        if (inout != null) {
          if (in != null) {
            throw new MadvocException("@InOut can not be used with @In: " + method.getDeclaringClass() + '#' + method.getName());
          }
          ii = inspectIn(inout, scopeType, propertyName, method.getParameterTypes()[0]);
          if (ii != null) {
            listIn.add(ii);
          }
        }
      }

      propertyName = ReflectUtil.getBeanPropertyGetterName(method);
      if (propertyName != null) {
        Out out = method.getAnnotation(Out.class);
        ScopeData.Out oi = inspectOut(out, scopeType, propertyName, method.getReturnType());
        if (oi != null) {
          listOut.add(oi);
        }
        InOut inout = method.getAnnotation(InOut.class);
        if (inout != null) {
          if (out != null) {
            throw new MadvocException("@InOut can not be used with @Out: " + method.getDeclaringClass() + '#' + method.getName());
          }
          oi = inspectOut(inout, scopeType, propertyName, method.getReturnType());
View Full Code Here

Examples of org.apache.cxf.jibx.doclitbare.types.Inout

        In data = new In();
        data.setTickerPrice(12.33F);
        data.setTickerSymbol("CXF");
        port.putLastTradedPrice(data);
       
        Inout dataio = new Inout();
        dataio.setTickerPrice(12.33F);
        dataio.setTickerSymbol("CXF");
        Holder<Inout> holder = new Holder<Inout>(dataio);
        port.sayHi(holder);
        assertEquals("Get a wrong response", "BAK", holder.value.getTickerSymbol());
    }
View Full Code Here

Examples of org.eclipse.persistence.tools.dbws.Util.InOut

                    }
                    else {
                        dbStoredArgument = new PLSQLStoredArgument(argName);
                    }
                    int mode = m.getParamModes()[i];
                    InOut inOut = IN;
                    if (mode == ProcedureMethod.OUT) {
                        inOut = OUT;
                    }
                    else if (mode == ProcedureMethod.INOUT) {
                        inOut = INOUT;
View Full Code Here

Examples of org.fusesource.ide.camel.model.generated.InOut

      return "finally";
    } else if (this instanceof InOnly) {
      InOnly node = (InOnly) this;
      return "inOnly " + Strings.getOrElse(node.getUri());
    } else if (this instanceof InOut) {
      InOut node = (InOut) this;
      return "inOut " + Strings.getOrElse(node.getUri());
    } else if (this instanceof InterceptSendToEndpoint) {
      InterceptSendToEndpoint node = (InterceptSendToEndpoint) this;
      return "intercept " + Strings.getOrElse(node.getUri());
    } else if (this instanceof Log) {
      Log node = (Log) this;
      return "log " + Strings.getOrElse(node.getLogName());
    } else if (this instanceof Marshal) {
      return "marshal";
    } else if (this instanceof OnException) {
      OnException node = (OnException) this;
      return "on exception " + Strings.getOrElse(node.getExceptions());
    } else if (this instanceof Otherwise) {
      return "otherwise";
    } else if (this instanceof PollEnrich) {
      PollEnrich node = (PollEnrich) this;
      return "poll enrich " + Strings.getOrElse(node.getResourceUri());
    } else if (this instanceof RemoveHeader) {
      RemoveHeader node = (RemoveHeader) this;
      return "remove header " + Strings.getOrElse(node.getHeaderName());
    } else if (this instanceof RemoveProperty) {
      RemoveProperty node = (RemoveProperty) this;
      return "remove property " + Strings.getOrElse(node.getPropertyName());
    } else if (this instanceof Rollback) {
      Rollback node = (Rollback) this;
      return "rollback " + Strings.getOrElse(node.getMessage());
    } else if (this instanceof SetExchangePattern) {
      SetExchangePattern node = (SetExchangePattern) this;
      ExchangePattern pattern = node.getPattern();
      if (pattern == null) {
        return "setExchangePattern";
      } else {
        return "set " + pattern;
      }
    } else if (this instanceof Sort) {
      Sort node = (Sort) this;
      return "sort " + Expressions.getExpressionOrElse(node.getExpression());
    } else if (this instanceof When) {
      When node = (When) this;
      return "when " + Expressions.getExpressionOrElse(node.getExpression());
    } else if (this instanceof Unmarshal) {
      return "unmarshal";
    } else if (this instanceof Try) {
      return "try";
    } else if (this instanceof LoadBalance) {
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.