System.out.println("ManagedConnectionFactoryImpl ok");
ManagedConnectionImpl mci = (ManagedConnectionImpl) mcf.createManagedConnection(null,null);
System.out.println("ManagedConnectionImpl ok");
OutboundConnection oc = (OutboundConnection) mci.getConnection(null,null);
System.out.println("OutboundConnection ok");
final OutboundSession os =(OutboundSession) oc.createSession(false,1);
System.out.println("OutboundSession ok");
final OutboundProducer prod = (OutboundProducer) os.createProducer(queue);
final OutboundProducer prod1 = (OutboundProducer) os.createProducer(topic);
System.out.println("OutboundProducer ok");
OutboundConsumer cons = (OutboundConsumer) os.createConsumer(queue);
OutboundConsumer cons1 = (OutboundConsumer) os.createConsumer(topic);
System.out.println("OutboundConsumer ok");
oc.start();
System.out.println();
System.out.println("Without MessageListener");
TextMessage msg = os.createTextMessage("avec queue");
prod.send(msg);
TextMessage msg1 =(TextMessage) cons.receive();