You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/09/20 12:29:30 UTC

[GitHub] [rocketmq] ShannonDing opened a new issue, #5131: The producer instance should be shutdown after sending namespacing messages.

ShannonDing opened a new issue, #5131:
URL: https://github.com/apache/rocketmq/issues/5131

   The producer instance should be shutdown after sending namespacing messages.
   
   ```
   public static void main(String[] args) throws Exception {
   
           DefaultMQProducer producer = new DefaultMQProducer(NAMESPACE, PRODUCER_GROUP);
   
           producer.setNamesrvAddr(DEFAULT_NAMESRVADDR);
           producer.start();
           for (int i = 0; i < MESSAGE_COUNT; i++) {
               Message message = new Message(TOPIC, TAG, "Hello world".getBytes(StandardCharsets.UTF_8));
               try {
                   SendResult result = producer.send(message);
                   System.out.printf("Topic:%s send success, misId is:%s%n", message.getTopic(), result.getMsgId());
               } catch (Exception e) {
                   e.printStackTrace();
               }
           }
       }
   ```
   
   https://github.com/apache/rocketmq/blob/develop/example/src/main/java/org/apache/rocketmq/example/namespace/ProducerWithNamespace.java


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] RongtongJin closed issue #5131: The producer instance should be shutdown after sending namespacing messages.

Posted by GitBox <gi...@apache.org>.
RongtongJin closed issue #5131: The producer instance should be shutdown after sending namespacing messages.
URL: https://github.com/apache/rocketmq/issues/5131


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] ShannonDing commented on issue #5131: The producer instance should be shutdown after sending namespacing messages.

Posted by GitBox <gi...@apache.org>.
ShannonDing commented on issue #5131:
URL: https://github.com/apache/rocketmq/issues/5131#issuecomment-1252338400

   > hi, @ShannonDing ,i want to fix it.
   
   welcome.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] totalo commented on issue #5131: The producer instance should be shutdown after sending namespacing messages.

Posted by GitBox <gi...@apache.org>.
totalo commented on issue #5131:
URL: https://github.com/apache/rocketmq/issues/5131#issuecomment-1252333808

   i want to fix it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org