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