We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43b3f88 commit 99202b2Copy full SHA for 99202b2
1 file changed
sdks/java/io/jms/src/main/java/org/apache/beam/sdk/io/jms/JmsIO.java
@@ -1020,7 +1020,8 @@ public void start() throws JMSException {
1020
} else if (spec.getTopic() != null) {
1021
this.destination = session.createTopic(spec.getTopic());
1022
}
1023
- this.producer = this.session.createProducer(this.destination);
+ // Create producer with null destination. Destination will be set with producer.send().
1024
+ this.producer = this.session.createProducer(null);
1025
this.isProducerNeedsToBeCreated = false;
1026
1027
0 commit comments