Re: eclipse and openamf
hank williams <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
Hmm... Thats interesting martin, and if I had to do it it would still be much better than what I was doing when I *wasnt* using eclipse. But I have been seduced by the idea of actually debugging in eclipse and getting the benefit of the eclipse debugger while debugging my server side code. I ***love*** the idea of setting breakpoints and being able to test code and observe and stop and start and all that stuff from within eclipse. So... I am really hoping that someone out there can tell me that what I want to do is possible (and not insanely difficult) to setup. Regards Hank On 8/23/05, Martin Wood <[email protected]> wrote: > Sure, > > Thats exactly the setup i have. Most of my debugging involves judicious > use of logging (and writing those unit tests i should have written in > the first place :) > > I dont use either the debugger in eclipse or the flash debugger. > > I'll describe my logging setup, but id like to hear how others handle > things. > > I use log4j to handle all my logging, but im still working with all the > different ways of configuring it. To be honest its quite confusing and > the documentation seems to stop short of dealing with going past a basic > setup. > > At the moment I have log4j in my common/lib and a log4j.properties in > common/classes to handle logging for tomcat, spring and openamf..even > though the spring and openamf .jar files are in the application WEB-INF/lib. > > Then i put the log4j jar in my WEB-INF/lib and use a log4j.properties in > WEB-INF/src to configure the application logging. > > Like i said im a bit confused still, but from a few hours of trial and > error this seems to be the way that works for me. > > so, my properties file in common/classes is > > ------------------- > log4j.rootLogger=DEBUG, stdout, R > > log4j.appender.R=org.apache.log4j.RollingFileAppender > log4j.appender.R.File=${catalina.home}/logs/tomcat.log > log4j.appender.R.MaxFileSize=10MB > log4j.appender.R.MaxBackupIndex=10 > log4j.appender.R.layout=org.apache.log4j.PatternLayout > log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n > > log4j.appender.stdout=org.apache.log4j.ConsoleAppender > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout > log4j.appender.stdout.layout.ConversionPattern=%p [%c] - <%m>%n > > # I give them their own line so i can > # control their log levels easily. > log4j.logger.org.apache=INFO > log4j.logger.org.springframework=INFO > log4j.logger.org.openamf=INFO > > ------------------- > > and my application log4j.properties is like this : > > ------------------- > > log4j.rootLogger=DEBUG, stdout, logfile > > # the console logger > log4j.appender.stdout=org.apache.log4j.ConsoleAppender > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout > > # dont show timestamp for app console, and trim category. > log4j.appender.stdout.layout.ConversionPattern=%p [%c{3}] - <%m>%n > > # for log files > log4j.appender.logfile=org.apache.log4j.RollingFileAppender > log4j.appender.logfile.File=D:/work/dev/logs/worldatlas.log > log4j.appender.logfile.MaxFileSize=512KB > # Keep three backup files. > log4j.appender.logfile.MaxBackupIndex=3 > log4j.appender.logfile.layout=org.apache.log4j.PatternLayout > log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n > > -------------------- > > Then to generate a lot of the logger declarations and statements i use > the free version of this plugin. > > http://log4e.jayefem.de/index.php/Main_Page > > Then on the flash side of things i use my own little logging tool which > is in desperate need of recoding, but lets me write similar statements > as that generated by log4e, but with a lot less configuration options > than log4j. > > Its probably wise to go with one of the nice logging libraries for the > AS side, like aslib or something. Whichever you use, it would be nice to > hear your views. > > thanks, > > Martin > > > hank williams wrote: > > I am trying to use openamf with tomcat and eclipse, usinging the > > tomcat plugin from sysdeo. > > > > I see how to create new tomcat projects using the plugin, but does > > anybody have any idea how to debug openamf remoting apps using the > > tool. > > > > Any experience would be greatly appreciated. > > > > Hank > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Openamf-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openamf-user > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf