On Sep 18, 2007, at 7:31 PM, [EMAIL PROTECTED] wrote:

+    private static void preprocessProperties(Properties props) {
+ String openejbHome = SystemInstance.get().getHome ().getDirectory().getAbsolutePath(); + String openejbBase = SystemInstance.get().getBase ().getDirectory().getAbsolutePath();
+        for (Map.Entry<Object, Object> entry : props.entrySet()) {
+            String value = (String) entry.getValue();
+            value = value.replace("${openejb.home}", openejbHome);
+            value = value.replace("${openejb.base}", openejbBase);
+            entry.setValue(value);
+        }
+    }

I ran into a strange problem in the Tomcat integration... the log files were appearing in ${user.dir}/logs instead of the server logs dir. I couldn't think of an easy way around the problem, so I hacked the above method into the Logger class. Basically, it replaces $ {openejb.home} and ${openejb.base} in the logging.properties file with their respective values. Is there some standard way we accomplish this? If so, I can remove this hack. Otherwise it we can leave it :)

-dain

Reply via email to