Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jakarta commons

 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is Jakarta Commons all about? :roll:
 
brad balmer
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically collection of packages. One of best is FileUploader which is very handy. Please check this web page
 
Tony Williams
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Commons looks quite useful. Is log4j part of commons?
 
sunitha reghu
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its not.
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by karthik Guru:

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

Does Commons logging API act like a factory?
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good article on Jakarta Commons
http://www.onjava.com/lpt/a/3932
 
sunitha reghu
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is that same one I mentioned
 
Mike Wang
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

Does Commons logging API act like a factory?
 
Mike Wang
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Pro Jakarta Commons
Implementing DbUtils (An article based on the book's contents)
Jakarta Commons
 
sunitha reghu
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic