Intend to write a series of articles on apache Jakarta Project Commons tools inside of the various component

  Intend to write a series of articles on apache Jakarta Project Commons tools inside of the various sub-projects.    Raokou somewhat, 

  Right?    Ha ha. 

  Apache's Jakarta Project there are many sub-projects.    The Commons is aimed at providing a common function / category, 

  We can kind in peacetime use their own projects.    These tools because very common, so no matter what framework you use, you 

  Can be used in part to save their own coding volumes, and its code quality is also very good. 

  Commons tools part of the starting point is to address the deficiencies in the JDK: 

  1. Exception not used to writing many try catch, and into the use of C / C + + used to return value judgement, can write a lot of substituting less 

  Yards.    Jdbc interface in this regard to the most notorious. 

  2. Compensate for the imperfections of local JDK libraries.    For example, String, Collection Framework, the regular expression, and so on. 

  Intend to write a few articles on which I think the more generic things: 

  Codec includes Hex, Base64, URL encoding and decoding against.    For web application useful. 

  Commons-jdk Collections enhance the Collection Framework function. 

  Commons-Configuration read and write configuration parameters.    Most programs have a place on the operating parameters, the tool can read and write various parameters format: databases, xml, Properties files, system variables, and so on.    Strong? 

  Commons DBCP-database connection pool, Oh, a lot of connection pool now has its own server.    But they also have many direct use of this.    If java application should write to the database, the use of a bar. 

  DbUtils procedures can reduce the write JDBC try catch and reduce code volume.    I wanted to write not a time to write things.    But did not imagine so good. 

  Email e-mail.    JDK standards for the e-mail support is not strong, it is people can not read. 

  FileUpload file upload.    J2EE standard for the file upload support is not strong, and people can not read.    For these two functions now j2ee application, it is the basic function.    Slightly larger systems will have. 

  Although jdk IO rewriting the so-called IO, and also used nio (new IO) of the package, but still not good enough.    This can be seen as the enhanced version. 

  Commons-Lang good thing.    Lang java package is the most basic package, the default automatic import, or do not have a strong function, landscape!    This package in other systems, including weblogic, websphere are in large use it.    Basically, all a little known java system will use it. 

  Commons-Logging good thing.    EJB server and the majority have used it tomcat.    Open source java project also most use it.    Log the abstraction layer.    Java log in the past there are many, if you choose a development process, would like to change after another relatively trouble.    Through this tool abstract one, it is easy to change.    But a recent dominance of log4j, JDK comes with the log with a few of them, it seems that no one will be for the other log, people do not know how to engage. 

  Math huh.    Math package in the Java barely enough, if a little partial to the mathematical function that should be their own writing.    Use it to save time. 

  Net Java enhanced networking capabilities.    Java class libraries than specialized network that C + + class library network, the difference is significant.    To enhance the point here is good. 

  Commons-Pool ordinary object pool.    EJB is not the target pool.    Pool this thing, it is difficult to write.    Fix special memory consumption, but the slow speed (such as EJB).    In any case, is a good idea, that we can draw on. 

  Validator this is a good thing.    Whether to write web applications or ordinary java applications, as long as a user input interface are useful.    A easy to write than their own.    Not written in xml, a little more than an alphabet letter it is very difficult investigation. 

  Below are Sandbox Commons project, including Cache, Clazz, Compress, Convert, I18n, Id, Mapper, SQL, ThreadPool, and so on, many of them useful.    Hey, good things really, how on the End? 

  Slowly, as an article, go slowly.    I hope you will support. 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Tags: , , , , , ,

Releated Java Articles

Comments

Leave a Reply