You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by GitBox <gi...@apache.org> on 2021/09/04 21:17:49 UTC

[GitHub] [activemq] AlexejTimonin opened a new pull request #707: Allow custom delimiter when sending TextMessages via MBean

AlexejTimonin opened a new pull request #707:
URL: https://github.com/apache/activemq/pull/707


   ### Problem
   It is possible today through functionality of ```sendTextMessageWithProperties(...)``` to send a 
   ```TextMessage``` with jconsole containing properties. 
   
   Input ```body=Hello World!,JMSCorrelationID=MyCorrId``` will result in message:
   
   ![image](https://user-images.githubusercontent.com/8479582/132107802-2ff04722-c694-4967-aa12-22551ffad2f0.png)
   
   Given input of ```body=Hello, World!,JMSCorrelationID=MyCorrId``` we expect message body 
   to contain Hello, World! and correlation id be set. Instead it will result in message:
   
   ![image](https://user-images.githubusercontent.com/8479582/132107807-0e4e1f3d-fe53-45e4-866b-884aff854b52.png)
   
   ### Why
   I work with applications using in-memory brokers for development. It´s not uncommon for me to have to manually sned 
   a text message to trigger a listener. The messages I send often include comma in the body, for example a json or a csv.
   
   ### Proposed solution
   This PR enables possibility to provide own delimiter to the operation.
   Given input of ```body=Hello, World!;JMSCorrelationID=MyCorrId``` and delimiter ```;``` results in 
   expected message:
   
   ![image](https://user-images.githubusercontent.com/8479582/132107965-e559b83b-4831-4cbd-b2a0-b34d87500466.png)
   
   


-- 
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: gitbox-unsubscribe@activemq.apache.org

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



[GitHub] [activemq] jbonofre merged pull request #707: [AMQ-8372] Allow custom delimiter when sending TextMessages via MBean

Posted by GitBox <gi...@apache.org>.
jbonofre merged pull request #707:
URL: https://github.com/apache/activemq/pull/707


   


-- 
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: gitbox-unsubscribe@activemq.apache.org

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