diff --git a/src/Spring/Spring.Services/Remoting/CaoFactoryObject.cs b/src/Spring/Spring.Services/Remoting/CaoFactoryObject.cs
index 122c1904..f40872ca 100644
--- a/src/Spring/Spring.Services/Remoting/CaoFactoryObject.cs
+++ b/src/Spring/Spring.Services/Remoting/CaoFactoryObject.cs
@@ -37,7 +37,13 @@ namespace Spring.Remoting
/// Mark Pollack
/// Bruno Baia
public class CaoFactoryObject : IFactoryObject, IInitializingObject
- {
+ {
+ #region Logging
+
+ private static readonly Common.Logging.ILog LOG = Common.Logging.LogManager.GetLogger(typeof(CaoFactoryObject));
+
+ #endregion
+
#region Fields
private string remoteTargetName;
@@ -132,8 +138,13 @@ namespace Spring.Remoting
///
/// the CAO proxy
public object GetObject()
- {
- ICaoRemoteFactory remoteFactory = (ICaoRemoteFactory) Activator.GetObject(typeof(ICaoRemoteFactory), serviceUrl.TrimEnd('/') + '/' + remoteTargetName);
+ {
+ string url = serviceUrl.TrimEnd('/') + '/' + remoteTargetName;
+ if (LOG.IsDebugEnabled)
+ {
+ LOG.Debug("Accessing CAO object of type ICaoRemoteFactory object at url = [" + url + "]");
+ }
+ ICaoRemoteFactory remoteFactory = (ICaoRemoteFactory) Activator.GetObject(typeof(ICaoRemoteFactory), url);
if (constructorArguments != null)
{