Does anyone know why Spring Integration (AMQP 1.3.5) requires the correlation-id to be a byte array? Rabbit's AMQP-Client 3.3.5 takes a String for the correlation-id in the AMQP.BasicProperties class. Doesn't Spring need to convert the byte array to this String at some point? We're finding that the correlation-id in the message Rabbit sends is still a byte array, and is never converted to a String. Any insight?
Spring AMQP 1.3.5 correlation id
379 Views Asked by aatuc210 At
1
There are 1 best solutions below
Related Questions in RABBITMQ
- How to handle RabbitMQ with mobile apps
- Is there a size limit on a RabbitMQ message header?
- ECONNRESET on node.js RabbitMQ consumer in Azure
- How to use RabbitMQ http api to see what queue had a messages in a ready state
- Using same channel for RPC call in RabbitMQ
- Unable to install RabbitMQ using puppet due to curl error
- Spring amqp RPC request to rabbitmq getting timeouts
- Camel rabbitmq + convertSendAndReceive() : Could not convert incoming message with content-type [null]
- How to add initial users when starting a RabbitMQ Docker container?
- Rabbitmq 3.5.1 slow publish rate
- Message Queues: Per Message Guarantees
- RabbitMQ pika error
- Pika with RabbitMQ: Message distribution accross multiple consumer Applications from a single Queue
- Masstransit temporary queue
- spring boot rabbitmq MappingJackson2MessageConverter custom object conversion
Related Questions in SPRING-INTEGRATION
- Custom XML Validator Factory
- spring-integration-dsl-groovy-http return null when i use httpGet method
- having spring integration tcpserver to manage clients and send them messages
- Syntax error on tokens, delete these tokens - kafka spring integration demo application
- how to respond from plain tcp client to MessagingTemplate's sendAndReceive
- How to send basicAck to inbound adapter after publisher confirm from outbound adapter
- Maximum simultaneous connection when using ftp adapter
- Spring Integration: SMTP server
- Spring Integration and returning schema validation errors
- Error handling using poller
- spring-integration Aggregator annontation attributes
- spring-integration end point
- Spring integration FileTailingMessageProducer: Remember current line when restarting
- Send Excel or xls file to remote directory using spring integration
- Which Spring Integration Channel should be used for MQTT
Related Questions in AMQP
- ECONNRESET on node.js RabbitMQ consumer in Azure
- Trying to use Java Message Service (JMS) API with Service Bus and AMQP
- RabbitMQ creates a temporary queue but don't know how or when
- Mule AMQP connector fails trying to requeue message
- Spring AMQP 1.3.5 correlation id
- Adding an item in a microservice, with reference to another one
- Embedded AMQP Java Broker
- How many tcp connection created on a queuing protocol such as ZeroMQ
- Multithreading consumption of an ordered queue
- Simple example writing to the Qpid Java broker with Qpid Proton not working
- N-Tier Application Authentication (RabbitMQ as Broker and C# as Business Tier) - WIF possible?
- Best way handle partitioned data with AMQP?
- Camel AMQP transactions issue (with Qpid client)
- Microservices service registry registration and discovery
- spring-amqp not work correctly when connections are blocked
Related Questions in SPRING-AMQP
- Is there a size limit on a RabbitMQ message header?
- Spring amqp RPC request to rabbitmq getting timeouts
- Camel rabbitmq + convertSendAndReceive() : Could not convert incoming message with content-type [null]
- How to send basicAck to inbound adapter after publisher confirm from outbound adapter
- spring boot rabbitmq MappingJackson2MessageConverter custom object conversion
- Is JsonMessageConverter thread-safe?
- RabbitMQ messages arriving 3 hours late?
- Getting "java.lang.NoClassDefFoundError: com/rabbitmq/client/impl/LongString" while retrieving messages from reply Q
- Auto-delete queue not recreated after broker outage
- Spring AMQP 1.3.5 correlation id
- Spring-Amqp-NET libraries for RabbitMQ - SSL support
- Confirming Deliveries with Spring AMQP
- Spring AMQP Notification/Events on SimpleMessageListenerContainer, when queue gets deleted
- Spring AMQP Project with 2 queue's
- Retaining MDC with Spring AMQP Request/Reply
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Good question, I have no insight; it was before my time on the project and it's a day one issue.
Spring AMQP converts the
byte[]to a String inDefaultMessagePropertiesConverter(outbound); invoked by theRabbitTemplateusingUTF-8by default. The resulting string is added to theBasicProperties.On the listener container (inbound) side, UTF-8 is used unconditionally.
The rabbit client converts to
byte[]when writing to the wire (inValueWriter.writeShortStr()), unconditionally using charsetUTF-8.So, unless you change the charset in
RabbitTemplate(which would be bad), it's a no-op (but unnecessary if you already have aString).I can only speculate that, since
MessagePropertiesis an abstraction (and not tied to RabbitMQ), some other client had it as abyte[]when the abstraction was being designed.Since we only have a rabbitmq implementation, I wouldn't be averse to adding an optimization to the abstraction to avoid the unnecessary conversion.
Feel free to open an Improvement JIRA Issue and we'll take a look at it for the upcoming 1.5 release.