jakartaee / messaging

Jakarta Messaging
https://eclipse.org/ee4j/messaging
Other
39 stars 32 forks source link

context.send(...) should be context.createProducer().send(...) in "Example using the simplified API and injection" #337

Open coursar opened 3 months ago

coursar commented 3 months ago

https://github.com/jakartaee/messaging/blob/9f7fde2838fd9ebb8e366ce116890728b7f3c1ff/spec/src/main/asciidoc/messaging-spec.adoc?plain=1#L5830-L5832

Should be:

public void sendMessageNew(String body) {
    context.createProducer().send(dataQueue, body);
}