This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
It is a toolbox of code and components that seem to pop up in most applications. So, instead of writing this yourself, you can use the commons code which is open source and has been checked over for bugs. I'm hoping that you've already checked out: http://jakarta.apache.org/commons/
sunitha reghu
Ranch Hand
Joined: Dec 12, 2002
Posts: 937
posted
0
Basically collection of packages. One of best is FileUploader which is very handy. Please check this web page
Tony Williams
Greenhorn
Joined: Oct 26, 2003
Posts: 7
posted
0
The Commons Collections extends the available collections classes in Java. Some nice additions are the ordered maps and composite collections. The Collections also have methods for standard Set Theory stuff like unions, intersections, etc. Very nice functionality. Give them a try.
Commons looks quite useful. Is log4j part of commons?
sunitha reghu
Ranch Hand
Joined: Dec 12, 2002
Posts: 937
posted
0
Its not.
Karthik Guru
Ranch Hand
Joined: Mar 06, 2001
Posts: 1209
posted
0
Originally posted by Pradeep Bhat: Commons looks quite useful. Is log4j part of commons?
It does have Commons Logging though that allows you to configure the actual logger implementation that you wish to use. So looks like you can switch between log4j, then jdk1.4 logger etc. I have never tried it out though
It does have Commons Logging though that allows you to configure the actual logger implementation that you wish to use. So looks like you can switch between log4j, then jdk1.4 logger etc. I have never tried it out though
It is another abstract layer on top of the the JDK 1.4 logging api and log4j. Actually both JDK1.4 logging api and log4j contain factory class to creat logger object. common logger also defined his factory class.
Originally posted by Pradeep Bhat: Commons looks quite useful. Is log4j part of commons?
No. Log4j is a sub project of Logging Services Project @ Apache http://logging.apache.org/ commons contains another abstract logging framework common logging(http://jakarta.apache.org/commons/logging/). If you want your log not to depend on JDK1.4 logging or log4j. you can use this common logging
Harshad Oak
Author
Ranch Hand
Joined: Oct 21, 2002
Posts: 45
posted
0
Jakarta Commons is a set of components that I feel every Java developer at least should be aware of. Each component performs one task very well. XML Parsing > Digester HTTP communication > HttpClient Logging> Logging component Database Connection Pooling > DBCP Validator> Configurable validations ... there are many such components that can each save u precious time, effort and money.
Hi Harshad, Are you providing enough source code in your book to use the commons. Doc is not very good in in jakarta site.
Harshad Oak
Author
Ranch Hand
Joined: Oct 21, 2002
Posts: 45
posted
0
Yes. I think so. I and the tech reviewers for the book (Henri Yandell and John Zukowski) spent a lot of time trying to ensure that we had many code samples that can be easily understood and used by the reader.
frisode jonge
Ranch Hand
Joined: Dec 30, 2003
Posts: 34
posted
0
hi, in general i agree on the topic of jakarta site and documentation. (however there are some good ones) be aware that docs on the jakarta site can be adjusted if you provide the correct input. Therefore if you think if some items are not explicit enough, just ask them if you can send more info regarding that topic