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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to