JMS SingleConnectionFactory uses minimized number of start calls (for Oracle AQ; SPR-5987)
This commit is contained in:
parent
6b824d9af7
commit
83bd56c6de
|
|
@ -510,9 +510,11 @@ public class SingleConnectionFactory
|
||||||
else if (method.getName().equals("start")) {
|
else if (method.getName().equals("start")) {
|
||||||
// Handle start method: track started state.
|
// Handle start method: track started state.
|
||||||
synchronized (connectionMonitor) {
|
synchronized (connectionMonitor) {
|
||||||
|
if (!started) {
|
||||||
this.target.start();
|
this.target.start();
|
||||||
started = true;
|
started = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
else if (method.getName().equals("stop")) {
|
else if (method.getName().equals("stop")) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue