// Do not edit directly!
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
[id="extensions-rabbitmq"]
= RabbitMQ
:page-aliases: extensions/rabbitmq.adoc
:linkattrs:
:cq-artifact-id: camel-quarkus-rabbitmq
:cq-native-supported: true
:cq-status: Stable
:cq-status-deprecation: Stable
:cq-description: Send and receive messages from RabbitMQ instances.
:cq-deprecated: false
:cq-jvm-since: 1.0.0
:cq-native-since: 1.1.0

ifeval::[{doc-show-badges} == true]
[.badges]
[.badge-key]##JVM since##[.badge-supported]##1.0.0## [.badge-key]##Native since##[.badge-supported]##1.1.0##
endif::[]

Send and receive messages from RabbitMQ instances.

[id="extensions-rabbitmq-whats-inside"]
== What's inside

* xref:{cq-camel-components}::rabbitmq-component.adoc[RabbitMQ component], URI syntax: `rabbitmq:exchangeName`

Please refer to the above link for usage and configuration details.

[id="extensions-rabbitmq-maven-coordinates"]
== Maven coordinates

https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-rabbitmq[Create a new project with this extension on {link-quarkus-code-generator}, window="_blank"]

Or add the coordinates to your existing project:

[source,xml]
----
<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-rabbitmq</artifactId>
</dependency>
----
ifeval::[{doc-show-user-guide-link} == true]
Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
endif::[]

[id="extensions-rabbitmq-transferexception-option-in-native-mode"]
== transferException option in native mode

To use the `transferException` option in native mode, you must enable support for object serialization. Refer to the xref:user-guide/native-mode.adoc#serialization[native mode user guide]
for more information.

You will also need to enable serialization for the exception classes that you intend to serialize. For example.
[source,java]
----
@RegisterForReflection(targets = { IllegalStateException.class, MyCustomException.class }, serialization = true)
----
