Changes between Version 10 and Version 11 of DatabaseConnectionsForThreadsAndNewPool
- Timestamp:
- 02/01/11 01:03:06 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DatabaseConnectionsForThreadsAndNewPool
v10 v11 16 16 Dbms dbms = (Dbms) context.getResourceManager().open(Geonet.Res.MAIN_DB); 17 17 18 This can be done any number of times bymethods called by the service. As each Dbms object is opened the !ResourceManager keeps a reference to it in an internal hashtable.18 This can often be done more than once by the service and/or methods called by the service. As each Dbms object is opened the !ResourceManager keeps a reference to it in an internal hashtable. 19 19 20 20 If the service completes without exception, all database connections are closed by Jeeves using context.getResourceManager().close() or if there is an exception raised context.getResourceManager().abort()