|
1 | 1 | /*
|
2 | 2 | ** TxEventQ Support for Spring Cloud Stream
|
3 |
| - ** Copyright (c) 2023, 2024 Oracle and/or its affiliates. |
| 3 | + ** Copyright (c) 2023, 2025 Oracle and/or its affiliates. |
4 | 4 | **
|
5 | 5 | ** This file has been modified by Oracle Corporation.
|
6 | 6 | */
|
|
24 | 24 |
|
25 | 25 | package com.oracle.database.spring.cloud.stream.binder;
|
26 | 26 |
|
| 27 | +import java.sql.SQLException; |
| 28 | + |
27 | 29 | import com.oracle.database.spring.cloud.stream.binder.config.JmsConsumerProperties;
|
28 | 30 | import com.oracle.database.spring.cloud.stream.binder.config.JmsProducerProperties;
|
29 | 31 | import com.oracle.database.spring.cloud.stream.binder.plsql.OracleDBUtils;
|
|
34 | 36 | import jakarta.jms.JMSException;
|
35 | 37 | import jakarta.jms.Session;
|
36 | 38 | import jakarta.jms.Topic;
|
37 |
| - |
38 |
| -import java.sql.SQLException; |
39 |
| - |
40 | 39 | import oracle.jakarta.jms.AQjmsException;
|
41 | 40 | import org.slf4j.Logger;
|
42 | 41 | import org.slf4j.LoggerFactory;
|
@@ -137,7 +136,7 @@ private Topic provisionProducerTopic(String topicName,
|
137 | 136 | ExtendedProducerProperties<JmsProducerProperties> properties) {
|
138 | 137 | Connection aQConnection = null;
|
139 | 138 | Session session = null;
|
140 |
| - Topic topic = null; |
| 139 | + Topic topic; |
141 | 140 | try {
|
142 | 141 | aQConnection = connectionFactory.createConnection();
|
143 | 142 | session = aQConnection.createSession(true, Session.CLIENT_ACKNOWLEDGE);
|
@@ -177,7 +176,7 @@ private Topic provisionConsumerTopic(String topicName,
|
177 | 176 | ExtendedConsumerProperties<JmsConsumerProperties> properties) {
|
178 | 177 | Connection aQConnection = null;
|
179 | 178 | Session session = null;
|
180 |
| - Topic topic = null; |
| 179 | + Topic topic; |
181 | 180 | try {
|
182 | 181 | aQConnection = connectionFactory.createConnection();
|
183 | 182 | session = aQConnection.createSession(true, Session.CLIENT_ACKNOWLEDGE);
|
|
0 commit comments