Bob Sturim

Greenhorn
+ Follow
since Sep 19, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bob Sturim

I'm using generics in a simple class. I'm getting a compile time error and for the life of me, I can't figure it out. Any held would be appreciated. My class is:



BaseDTO is a base class which, for the purposes of this discussions, contains a single property, Long id.

The compiler complains at the two put statements:



Thanks!
18 years ago
I have a particular requirement in log4j. I want the user to be able to define virtually all aspects of a file appender (in this case a RollingFileAppender), except for the name and location of the log file. Ideally, I'd like the application to read the configuration file as normal, and then retrieve the file appender and override the filename for that appender. My configuration file looks as follows:



Now, in my main class, if look at which appenders are defined, I only see the CONSOLE appender (even though the log file is being written). The code I use to retrieve the appenders looks as follows:



Any idea why I'm not able to programmatically retrieve the FileOutput appender? Is there another better/simpler way to do what I'm trying to do?

Thanks.