Skip to content

Tag: java

How to fetch data from http response entity?

I am using SpringBoot to fetch access Token from my client. I could not separate the Access Token from the responseEntity. Is there a way to Fetch the AccessToken data alone? Here is the code: public ResponseEntity generate_Access_token() { } } The response: Answer Make your life easier, not harder – us…

Why the rocketmq only consumes part of the queue

After send message to the RocketMQ 4.8, I found the consumer only consumed part of the queue. This is the RocketMQ consumer code looks like: When I access to the RocketMQ dashboard, I found the consumer only consumed part of the queue in the same broker: The queue 0 and 1’s message were not consumed by …

copy file to multiple folders with Camel SFTP

I have a situation where I pull a file from a folder via a Camel SFTP route. There are 3 other Camel routes which need to process the same file which I am pulling… the other routes monitor the same SFTP server. Currently, we are thinking that we should make that file which I pull, available to the 3 oth…