Examples of createFault()


Examples of javax.jbi.messaging.InOnly.createFault()

            fail("Out not supported");
        } catch (Exception e) {
            // ok
        }
        try {
            mec.setMessage(mec.createFault(), "fault");
            fail("Fault not supported");
        } catch (Exception e) {
            // ok
        }
        consumer.getChannel().send(mec);
View Full Code Here

Examples of javax.jbi.messaging.InOptionalOut.createFault()

        me.setService(new QName("wireTap"));
        me.getInMessage().setContent(createSource("<hello/>"));
        client.sendSync(me);
        assertEquals(ExchangeStatus.ACTIVE, me.getStatus());
        assertNotNull(me.getOutMessage());
        Fault fault = me.createFault();
        fault.setContent(createSource("<fault/>"));
        me.setFault(fault);
        client.sendSync(me);
        assertEquals(ExchangeStatus.DONE, me.getStatus());
       
View Full Code Here

Examples of javax.jbi.messaging.InOptionalOut.createFault()

        me.setService(new QName("wireTap"));
        me.getInMessage().setContent(createSource("<hello/>"));
        client.sendSync(me);
        assertEquals(ExchangeStatus.ACTIVE, me.getStatus());
        assertNotNull(me.getOutMessage());
        Fault fault = me.createFault();
        fault.setContent(createSource("<fault/>"));
        me.setFault(fault);
        client.sendSync(me);
        assertEquals(ExchangeStatus.ERROR, me.getStatus());
       
View Full Code Here

Examples of javax.jbi.messaging.InOptionalOut.createFault()

        me.setService(new QName("wireTap"));
        me.getInMessage().setContent(createSource("<hello/>"));
        client.sendSync(me);
        assertEquals(ExchangeStatus.ACTIVE, me.getStatus());
        assertNotNull(me.getOutMessage());
        Fault fault = me.createFault();
        fault.setContent(createSource("<fault/>"));
        me.setFault(fault);
        client.sendSync(me);
        assertEquals(ExchangeStatus.DONE, me.getStatus());
       
View Full Code Here

Examples of javax.jbi.messaging.InOptionalOut.createFault()

        me.setService(new QName("wireTap"));
        me.getInMessage().setContent(createSource("<hello/>"));
        client.sendSync(me);
        assertEquals(ExchangeStatus.ACTIVE, me.getStatus());
        assertNotNull(me.getOutMessage());
        Fault fault = me.createFault();
        fault.setContent(createSource("<fault/>"));
        me.setFault(fault);
        client.sendSync(me);
        assertEquals(ExchangeStatus.ERROR, me.getStatus());
       
View Full Code Here

Examples of javax.jbi.messaging.InOptionalOut.createFault()

        consumer.getChannel().send(mec);
        // Provider side
        InOptionalOut mep = (InOptionalOut) provider.getChannel().accept(100L);
        assertNotNull(mep);
        assertEquals(ExchangeStatus.ACTIVE, mep.getStatus());
        mep.setFault(mep.createFault());
        provider.getChannel().send(mep);
        // Consumer side
        mec = (InOptionalOut) consumer.getChannel().accept(100L);
        assertEquals(ExchangeStatus.ACTIVE, mec.getStatus());
        assertNotNull(mec.getFault());
View Full Code Here

Examples of javax.jbi.messaging.InOut.createFault()

            if (ssn == null || ssn.length() == 0) {
                fail(exchange, new NullPointerException());
                return;
            }
            if (!ssn.startsWith("1")) {
                Fault fault = inOut.createFault();
                fault.setContent(new StringSource(
                        "<invalidSSNFault xmlns=\"urn:logicblaze:soa:creditagency:types\"><ssn>"
                        + ssn + "</ssn></invalidSSNFault>"));
                fail(inOut, fault);
            } else {
View Full Code Here

Examples of javax.jbi.messaging.InOut.createFault()

    private void outResponseFault(MyRoleMessageExchange mex, javax.jbi.messaging.MessageExchange jbiMex) {

        InOut inout = (InOut) jbiMex;

        try {
            Fault flt = inout.createFault();
            String mapperName = mex.getProperty(Mapper.class.getName());
            Mapper mapper = _ode.getMapper(mapperName);
            if (mapper == null) {
                String errmsg = "Message-mapper " + mapperName + " used in ODE MEX " + mex.getMessageExchangeId()
                        + " is no longer available.";
View Full Code Here

Examples of javax.jbi.messaging.InOut.createFault()

    private void outResponseFault(MyRoleMessageExchange mex, javax.jbi.messaging.MessageExchange jbiMex) {

        InOut inout = (InOut) jbiMex;

        try {
            Fault flt = inout.createFault();
            String mapperName = mex.getProperty(Mapper.class.getName());
            Mapper mapper = _ode.getMapper(mapperName);
            if (mapper == null) {
                String errmsg = "Message-mapper " + mapperName + " used in ODE MEX " + mex.getMessageExchangeId()
                        + " is no longer available.";
View Full Code Here

Examples of javax.jbi.messaging.InOut.createFault()

    private void outResponseFault(MyRoleMessageExchange mex, javax.jbi.messaging.MessageExchange jbiMex) {

        InOut inout = (InOut) jbiMex;

        try {
            Fault flt = inout.createFault();
            String mapperName = mex.getProperty(Mapper.class.getName());
            Mapper mapper = _ode.getMapper(mapperName);
            if (mapper == null) {
                String errmsg = "Message-mapper " + mapperName + " used in ODE MEX " + mex.getMessageExchangeId()
                        + " is no longer available.";
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.