[SOLVED] For each call a new connection? Need only one when using RCP with Gemini or Swing [message #1243812] |
Tue, 11 February 2014 13:27 |
Jack Kilian Messages: 40 Registered: March 2012 |
Member |
|
|
[EL Fine]: sql: 2014-02-11 14:19:32.238--ServerSession(32763213)--Connection(12471488)--Thread(Thread[main,6,main])-- SELECT ... FROM ... WHERE ...
bind => [138]
[EL Fine]: sql: 2014-02-11 14:19:32.261--ServerSession(32763213)--Connection(21809008)--Thread(Thread[main,6,main])-- SELECT ... FROM ... WHERE ...
[EL Fine]: sql: 2014-02-11 14:19:32.287--ServerSession(32763213)--Connection(14435067)--Thread(Thread[main,6,main])-- SELECT ... FROM ... WHERE ...
[EL Fine]: sql: 2014-02-11 14:19:32.31--ServerSession(32763213)--Connection(11986356)--Thread(Thread[main,6,main]) -- SELECT ... FROM ... WHERE ...
[EL Fine]: sql: 2014-02-11 14:19:32.336--ServerSession(32763213)--Connection(27439281)--Thread(Thread[main,6,main])-- SELECT ... FROM ... WHERE ...
[EL Info]: 2014-02-11 14:19:32.351--ServerSession(32763213)--Thread(Thread[main,6,main])--Communication failure detected when attempting to perform read query outside of a transaction. Attempting to retry query. Error was: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.1.v20130824-981335c): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12519, TNS:no appropriate service handler found
The Connection descriptor used by the client was:
oracle:1234:XE
persistence.xml:
<properties>
<property name="eclipselink.jdbc.native-sql" value="false"/>
<property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@server:1234:XE"/>
<property name="javax.persistence.jdbc.user" value="user"/>
<property name="javax.persistence.jdbc.password" value="password"/>
<property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver"/>
<property name="eclipselink.weaving" value="true"/>
<property name="eclipselink.weaving.internal" value="true"/>
<property name="eclipselink.logging.level" value="FINE" />
</properties>
For each call a new connection is opened. I think anytime the amount of maximum connections is fully reached, then an error is raised. How can I configure that in the case I use EclipseLink in RCP or Swing only one or two connections a used and not changed for each call.
[Updated on: Wed, 12 February 2014 06:54] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.23474 seconds