Examples of Requestor


Examples of org.apache.camel.component.jms.requestor.Requestor

        getConfiguration().setDestinationResolver(destinationResolver);
    }

    public synchronized Requestor getRequestor() throws Exception {
        if (requestor == null) {
            requestor = new Requestor(getConfiguration(), getExecutorService());
            requestor.start();
        }
        return requestor;
    }
View Full Code Here

Examples of org.apache.camel.component.jms.requestor.Requestor

        return false;
    }

    public synchronized Requestor getRequestor() throws Exception {
        if (requestor == null) {
            requestor = new Requestor(getConfiguration(), getExecutorService());
            requestor.start();
        }
        return requestor;
    }
View Full Code Here

Examples of org.apache.camel.component.jms.requestor.Requestor

        getConfiguration().setDestinationResolver(destinationResolver);
    }

    public synchronized Requestor getRequestor() throws Exception {
        if (requestor == null) {
            requestor = new Requestor(getConfiguration(), getExecutorService());
            requestor.start();
        }
        return requestor;
    }
View Full Code Here

Examples of org.apache.camel.component.jms.requestor.Requestor

                        requestor = new PersistentReplyToRequestor(endpoint.getConfiguration(), endpoint
                            .getExecutorService());
                        requestor.start();
                    } else {
                        if (affinity == RequestorAffinity.PER_PRODUCER) {
                            requestor = new Requestor(endpoint.getConfiguration(), endpoint
                                .getExecutorService());
                            requestor.start();
                        } else if (affinity == RequestorAffinity.PER_ENDPOINT) {
                            requestor = endpoint.getRequestor();
                        } else if (affinity == RequestorAffinity.PER_COMPONENT) {
View Full Code Here

Examples of org.codehaus.activemq.bean.Requestor

    public void testRequestReply() throws Exception {
       
       
       
        Requestor requestor = new Requestor((QueueSession) session, queue);

        TextMessage message = session.createTextMessage("Hello! " + new Date());

        System.out.println("About to send: " + message);


        Message answer = requestor.request(message);

        assertTrue("Should have received an answer", answer != null);

        System.out.println("Received: " + answer);
    }
View Full Code Here

Examples of org.codehaus.activemq.bean.Requestor

*/
public class JCAContainerRequestReplyTest extends JCAContainerTestSupport {

    public void testRequestReply() throws Exception {
        Queue queue = session.createQueue(getClass().getName());
        Requestor requestor = new Requestor((QueueSession) session, queue);

        TextMessage message = session.createTextMessage("Hello! " + new Date());

        System.out.println("About to send: " + message);


        Message answer = requestor.request(message);

        assertTrue("Should have received an answer", answer != null);

        System.out.println("Received: " + answer);
    }
View Full Code Here

Examples of org.eclipse.e4.core.internal.di.Requestor

@SuppressWarnings("restriction")
public class LoggerSupplier extends ExtendedObjectSupplier {

  @Override
  public Object get(IObjectDescriptor descriptor, IRequestor requestor, boolean track, boolean group) {
    Requestor req = (Requestor) requestor;
    ContextObjectSupplier sub = (ContextObjectSupplier) req
        .getPrimarySupplier();
    final IEclipseContext context = sub.getContext();

    String loggerName = descriptor.getQualifier(Log.class).value();
   
View Full Code Here

Examples of org.eclipse.e4.core.internal.di.Requestor

@SuppressWarnings("restriction")
public class FXMLLoaderSupplier extends ExtendedObjectSupplier {

  @Override
  public Object get(IObjectDescriptor descriptor, IRequestor requestor, boolean track, boolean group) {
    Requestor req = (Requestor) requestor;
    ContextObjectSupplier sub = (ContextObjectSupplier) req
        .getPrimarySupplier();
    final IEclipseContext context = sub.getContext();
    final Class<?> requestingClass = requestor.getRequestingObject().getClass();
   
    return new FXMLLoaderFactory() {
View Full Code Here

Examples of org.logicblaze.lingo.jms.Requestor

*/
public class XStreamMarshallerTest extends JmsTestSupport {
    Marshaller marshaller = new XStreamMarshaller();

    public void testMarshall() throws Exception {
        Requestor requestor = createRequestor(getDestinationName());

        LingoInvocation invocation = new LingoInvocation("foo", new Class[0], new Object[0], new MethodMetadata(false));
        Message message = marshaller.createRequestMessage(requestor, invocation);

        assertTrue("Should have created a text message: " + message, message instanceof TextMessage);
View Full Code Here

Examples of org.objectweb.joram.client.jms.connection.Requestor

    this.ident = cnx.nextSessionId();
    this.cnx = cnx;
    this.transacted = transacted;
    this.acknowledgeMode = acknowledgeMode;
    this.mtpx = mtpx;
    requestor = new Requestor(mtpx);
    receiveRequestor = new Requestor(mtpx);

    autoAck = !transacted && acknowledgeMode != javax.jms.Session.CLIENT_ACKNOWLEDGE;

    consumers = new Vector();
    producers = new Vector();
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.