Skip to content

Use of non-existing JmsTemplate constructor in documentation's sample code [SPR-6789] #11455

@spring-projects-issues

Description

@spring-projects-issues

Igor Kolomiets opened SPR-6789 and commented

Section "21.3 Sending a Message" of "Spring Reference Documentation" has this sample code:

public class JmsQueueSender {

private JmsTemplate jmsTemplate;
private Queue queue;

public void setConnectionFactory(ConnectionFactory cf) {
    this.jmsTemplate = new JmsTemplate(cf, false);
}

...

it says: "... JmsTemplate is constructed by passing a reference to a ConnectionFactory and a boolean specifying the messaging domain."

But there's no two-args constructor in JmsTemplate class anymore. Documentation should be updated to reflect that.


Affects: 3.0 GA

Referenced from: commits a44ec9f

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions