Questo contenuto non è disponibile nella lingua selezionata.

2.4. Message Encoding


Message body type

JMS defines five message body types:
  • StreamMessage
  • MapMessage
  • TextMessage
  • ObjectMessage
  • BytesMessage
Of these message types, BytesMessage (a stream of uninterpreted bytes) is the fastest, while ObjectMessage (serialization of a Java object) is the slowest.

Encoding recommendation

For best performance, therefore, it is recommended that you use BytesMessage whenever possible. We suggest that you use Google's Protobuf, which has excellent performance characteristics.
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni sulla documentazione di Red Hat

Legal Notice

Theme

© 2026 Red Hat
Torna in cima