JMS SingleConnectionFactory uses minimized number of start calls (for Oracle AQ; SPR-5987)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1716 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
26afab07f9
commit
33e1eacf57
|
|
@ -510,8 +510,10 @@ 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) {
|
||||||
this.target.start();
|
if (!started) {
|
||||||
started = true;
|
this.target.start();
|
||||||
|
started = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue