Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Feb 2, 2010 · 1 comment
Assignees
Labels
in: messaging Issues in messaging modules (jms, messaging) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

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

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Good catch!

Juergen

@spring-projects-issues spring-projects-issues added in: messaging Issues in messaging modules (jms, messaging) type: enhancement A general enhancement labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0.1 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: messaging Issues in messaging modules (jms, messaging) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants