Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting JMS headers on Spring Integration

How do I get JMS headers on my spring integration jms inbound channel ? I have not found much information on the reference.

Thanks and regards.

like image 669
Mikhas Avatar asked Feb 02 '26 06:02

Mikhas


1 Answers

Take a look at the DefaultJmsHeaderMapper class. It is responsible (by default) for mapping to and from JMS messages into Spring Integration messages. Once you define appropriate rules, JMS message headers will be visible as any other SI message headers (message.getHeaders()).

like image 91
omnomnom Avatar answered Feb 04 '26 00:02

omnomnom