public void publish(final String queueName,final String routingKey,final String message){
  if ((mChannel != null) && mChannel.isOpen()) {
    try {
      mChannel.basicPublish(queueName,routingKey,null,message.getBytes(HTTP.UTF_8));
    }
 catch (    final UnsupportedEncodingException e) {
      e.printStackTrace();
    }
catch (    final IOException e) {
      e.printStackTrace();
    }
  }
}

public void publish ( final String queueName , final String routingKey , final String message ) { if ( ( mChannel != null ) && mChannel . isOpen ( ) ) { try { mChannel . basicPublish ( queueName , routingKey , null , message . getBytes ( HTTP . UTF_8 ) ) ; } catch ( final UnsupportedEncodingException e ) { e . printStackTrace ( ) ; } catch ( final IOException e ) { e . printStackTrace ( ) ; } } }
publish a message to a queue
