This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

jakarta commons

 
Ranch Hand
Posts: 8934
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is Jakarta Commons all about? :roll:
 
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/
 
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
 
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: 8934
Firefox Browser Spring Java
  • 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.
 
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: 8934
Firefox Browser Spring Java
  • 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: 8934
Firefox Browser Spring Java
  • 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
 
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
 
Author
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
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.
 
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
 
Not so fast naughty spawn! I want you to know about
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!