Revision 38188 branches/v2_0_0_prep/extensions/org.gvsig.oracle/src/org/gvsig/fmap/dal/store/oracle/OracleResource.java

View differences:

OracleResource.java
103 103
		return ods;
104 104
	}
105 105
	
106
	public static int CONN_COUNT = 0;
106
	public static int CONN__COUNT = 0;
107 107
	
108 108
	protected synchronized Object getTheConnection() throws DataException {
109 109
		
110 110
		if (conn == null) {
111 111
			conn = (Connection) super.getTheConnection();
112
			CONN_COUNT++;
113
			logger.debug("ORACLE CONN_COUNT +- = " + CONN_COUNT);
112
			CONN__COUNT++;
113
			if (CONN__COUNT > 5) {
114
				logger.info("ORACLE CONN_COUNT +- = " + CONN__COUNT);
115
			}
116
			
114 117
		}
115 118
		return conn;
116 119

  

Also available in: Unified diff