Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the most useful component among jakarta commons?

 
Kazuto Waga
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what is the least?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have gotten the most out of the HttpClient toolkit.
I used it to create a load tester for my on-line exam servlet.
The "codec" collection is pretty handy too - when people write asking for my phonetic encoding (Metaphone) source, I send them to the Codec collection too.
Bill
[ April 13, 2004: Message edited by: William Brogden ]
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont think it is possible to say which is more useful. Doesn't it depend on your project? Digester may be useful to me but not to another guy.
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, how about "What jakarta commons component have YOU found to be the most useful and WHY?"
 
Mike Wang
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Every common project is useful. How do you define the word "most"?
Originally posted by Kazuto Waga:
And what is the least?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have mainly used the Commons Net project and HttpClient, and once (for prototyping, didn't end up into the production branch) DBCP + Pool. I don't recall using any of the other Commons stuff directly (obviously there are certain dependencies which could be used to argue that I am, in fact, using "Commons Foo" because I'm using "Commons Bar").
 
Harshad Oak
Author
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would agree with Pradeep that 'most' useful is relative to the kind of Java development undertaken.
For a standard Java web application I would say Digester, HttpClient, Lang and Logging are useful.
If you are using Struts, Validator is a must have. The database connection pooling (DBCP) component can be easily integrated with Struts and is useful especially if you are using a app server that does not have DB connection pooling features.
If you are writing JDBC code, DbUtils is a simple yet useful tool to have.

Pro Jakarta Commons
Implementing DbUtils (An article based on the book's contents)
Jakarta Commons
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a big fan of BeanUtils and Digester.
 
Kazuto Waga
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I wanted to know what is really *common* and fits almost all projects, and what is decisive in particular needs.
I know every commons component is awesome, so was just kidding the
word 'least'. Forget about it please.
 
sunitha reghu
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please read this web page. Hope that helps.
 
vasu maj
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice article Sunita.

Thanks,
Vasu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic