Package org.objectweb.joram.client.connector

Examples of org.objectweb.joram.client.connector.ActivationSpecImpl


      System.out.println("msg receive :"+msg1.getText());
      System.out.println();

      System.out.println("With MessageListener");
      MessagePointFactory  mep = new MessagePointFactory();
      ActivationSpecImpl spec = new ActivationSpecImpl();
      spec.setResourceAdapter(ja);
      spec.setDestinationType("javax.jms.Queue");
      spec.setDestination("queue");

      MessagePointFactory mep2 = new MessagePointFactory();
      ActivationSpecImpl spec2 = new ActivationSpecImpl();
      spec2.setResourceAdapter(ja);
      spec2.setDestinationType("javax.jms.Topic");
      spec2.setDestination("topic");
     
     
      ja.endpointActivation(mep , spec); // listener on queue
      ja.endpointActivation(mep2 , spec2);// listener on topic
    
View Full Code Here


        } catch (JoramException e) {
            throw new EZBComponentException("Cannot create initial queues", e);
        }

        // Create and bind ActivationSpec
        ActivationSpec activationSpec = new ActivationSpecImpl();
        try {
            activationSpec.setResourceAdapter(this.joramAdapter);
        } catch (ResourceException e) {
            throw new EZBComponentException("Cannot set resource adapter on activation spec object", e);
        }
        try {
            this.ictx.rebind("joramActivationSpec", activationSpec);
View Full Code Here

TOP

Related Classes of org.objectweb.joram.client.connector.ActivationSpecImpl

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.