I am struggling to get Proton 0.7 to send any messages to a Qpid 0.26 broker. I 
have been able to send and receive message using the Qpid Messaging API for 
AMQP 1.0 but would rather use Proton if I can. I'm sure I'm "just" missing 
something but I haven't found it yet. Here is my code:

Messenger messenger = Proton.messenger( "proton" );
try {
      messenger.start();

      Message message = Proton.message();
      message.setAddress( "amqp://testuser@qpid/pocqueue" );
      message.setBody( new AmqpValue( "test message" ) );

      messenger.put( message );
      messenger.send();
}
catch( Throwable throwable ) {
      throwable.printStackTrace( System.err );
}
finally {
      messenger.stop();
}

Any suggestions?


 NOTICE: This email message is for the sole use of the intended recipient(s) 
and may contain confidential and privileged information. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email and destroy all 
copies of the original message.

Reply via email to