Este conteúdo não está disponível no idioma selecionado.

6.7. Idempotent Operations


A message is guaranteed to be persisted when the message sent to a persistent destination returns with no exception.
An exception does not guarantee the message was not persisted, because failure may have occurred between the message being persisted and a response being returned to the caller.
Applications must therefore be coded so that operations are idempotent — that is, operations can be repeated without causing the system to become inconsistent.
You can implement this behavior on the application level by checking for duplicate messages and discarding them if the original message has been sent successfully. This duplicate checking is a powerful technique that can remove the need for XA transactions.
JBoss Messaging is configured by default to perform duplicate checking in a clustered environment.
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2026 Red Hat