You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/02/05 16:14:44 UTC
svn commit: r503718 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java
Author: dims
Date: Mon Feb 5 07:14:43 2007
New Revision: 503718
URL: http://svn.apache.org/viewvc?view=rev&rev=503718
Log:
create the correlation id, only when required
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java?view=diff&rev=503718&r1=503717&r2=503718
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java Mon Feb 5 07:14:43 2007
@@ -70,8 +70,7 @@
* An ID which can be used to correlate operations on an instance of
* this object in the log files
*/
- private String logCorrelationIDString = myClassName +"@"+ UUIDGenerator.getUUID();
-
+ private String logCorrelationIDString = null;
/**
* @serial The serialization version ID tracks the version of the class.
@@ -1028,6 +1027,8 @@
*/
public void writeExternal(ObjectOutput out) throws IOException
{
+ String logCorrelationIDString = getLogCorrelationIDString();
+
// write out contents of this object
// NOTES: For each item, where appropriate,
@@ -1414,6 +1415,7 @@
return;
}
+ String logCorrelationIDString = getLogCorrelationIDString();
// use the supplied configuration context
// get the axis configuration
@@ -1750,6 +1752,9 @@
*/
public String getLogCorrelationIDString()
{
+ if(logCorrelationIDString == null) {
+ logCorrelationIDString = myClassName +"@"+ UUIDGenerator.getUUID();
+ }
return logCorrelationIDString;
}
@@ -1763,7 +1768,7 @@
private void checkActivateWarning(String methodname)
{
if (needsToBeReconciled) {
- log.warn(logCorrelationIDString+":"+methodname+"(): ****WARNING**** "+myClassName+".activate(configurationContext) needs to be invoked.");
+ log.warn(getLogCorrelationIDString()+":"+methodname+"(): ****WARNING**** "+myClassName+".activate(configurationContext) needs to be invoked.");
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org