Skip to content

Implement synchronous request / response logic in JmsTemplate [SPR-3332] #8017

Closed
@spring-projects-issues

Description

@spring-projects-issues

David J. M. Karlsen opened SPR-3332 and commented

Add support for synchronous send and receive in JmsTemplate, something like this:

Object response = doSendAndReceive( String requestDestination, String responseDestination, Object value )
throws JmsException

which uses SimpleMessageConverter to convert value to message, destinationResolver to resolve response and request destinations, set's JmsReplyTo to responseDestination, and uses the generated messageId to select the responsemessage, waiting for getReceiveTimeout() milliseconds to receive.

This is a very common usecase - and I think it should be supported directly by the framework - without having to use Jencks or the likes.


Affects: 2.0.3

Attachments:

Issue Links:

21 votes, 25 watchers

Metadata

Metadata

Assignees

Labels

has: votes-jiraIssues migrated from JIRA with more than 10 votes at the time of importin: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions