Modified: src/stores/slidestore/j2ee J2EEDescriptorsStore.java
Log:
The logger information given out by the logger on the connection
to datasource was wrong
Displaying the message with null values.
Please see the patch attachment <<J2EEDescriptorsStorePatch.txt>>
Index: J2EEDescriptorsStore.java
===================================================================
RCS file:
/home/cvspublic/jakarta-slide/src/stores/slidestore/j2ee/J2EEDescriptorsStore.java,v
retrieving revision 1.2
diff -u -r1.2 J2EEDescriptorsStore.java
--- J2EEDescriptorsStore.java 5 Feb 2002 04:07:12 -0000 1.2
+++ J2EEDescriptorsStore.java 6 Feb 2002 15:37:36 -0000
@@ -87,7 +87,7 @@
import javax.naming.NamingException;
/**
- * JDBC 1.0 and 2.0 compliant store implementation.
+ * J2EE 2.0 compliant implementation of ContentStore.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Remy Maucherat</a>
* @author Ashok Kumar
@@ -286,11 +286,11 @@
*/
public synchronized void connect()
throws ServiceConnectionFailedException {
- getLogger().log("Connecting to \"" + url + "\" as user \"" + user +
"\"",LOG_CHANNEL,Logger.INFO);
+ getLogger().log("Connecting to datasource: " +
+datasource,LOG_CHANNEL,Logger.INFO);
try {
connection = ds.getConnection();
} catch (SQLException e) {
- getLogger().log("Connecting to \"" + url + "\" as user \"" + user + "\"
failed",LOG_CHANNEL,Logger.ERROR);
+ getLogger().log("Connecting to datasource: " + datasource +"
+failed",LOG_CHANNEL,Logger.ERROR);
getLogger().log(e.toString(),LOG_CHANNEL,Logger.ERROR);
throw new ServiceConnectionFailedException(this, e);
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>