Functions of hibernate jar packages

Source: Internet
Author: User
Tags xml parser apache log ibm developerworks

 

Functions of hibernate jar packages

 

(1) hibernate3.jar:

There is nothing to say about the core library of hibernate. The jar package must be used.

(2) cglib-asm.jar:

Cglib library. hibernate uses it to dynamically generate Po bytecode. It is a very core library and must use jar packages.

(3) dom4j. jar:

Dom4j is a Java xml api, similar to JDOM, used to read and write XML files. Dom4j is a very good Java

The xml api features excellent performance, powerful functionality, and extreme ease of use. It is also an open source software that can

To find it on SourceForge. I can find an article on IBM developerworks to address mainstream Java XML APIs.

Dom4j provides excellent performance, functions, and ease of use evaluation. As early as nearly two years ago

Start using dom4j until now. Now you can see that more and more Java software are using dom4j to read and write XML, especially

It is worth mentioning that Sun's jaxm is also using dom4j. This is a required jar package. hibernate uses it to read and write configuration files.

(4) ODMG. jar:

ODMG Is An ORM specification, and hibernate implements the ODMG specification. It is a core library and a jar package must be used.

(5) commons-collections.jar:

One of the Apache commons packages contains some collection classes developed by Apache, which are more powerful than Java. util. Required jar package.

(6) commons-beanutils.jar:

One of the Apache commons packages contains some bean tool classes. Required jar package.

(7) commons-lang.jar:

One of the Apache commons packages contains some data type tool classes and is an extension of Java. Lang. Required jar package.

(8) commons-logging.jar:

One of the Apache commons packages contains the log function, which must be a jar package. This package contains a simple logger, but it has poor functionality. At runtime, it will first find log4j in classpath. If yes, it will use log4j. If not, find the java. util. logging. If not found, use simple logger. The emergence of commons-logging.jar is a legacy regret, the original Apache strongly urged sun to add log4j to jdk1.4, but the jdk1.4 project team is close to the release of jdk1.4 product time, therefore, Apache's requirements are rejected and Java is used. util. logging, this package
The function is far worse than log4j, and the performance is average. Later Apache developed a commons-logging.jar to be compatible with two logger. Therefore, the underlying logger can be switched with the log program written in the commons-logging.jar. You can choose log4j, java. util. logging or its own simple logger. However, I strongly recommend that you use log4j because log4j has high performance and the log output time is almost the same as system. Out. On average, you only need 5 us to process a log. You can find the log4j configuration file that hibernate has prepared for you in the src directory of hibernate. You only need to go to Apache
Download log4j from the website. The commons-logging.jar is also a required jar package.

The jar packages required by hibernate are the above, and the rest are optional.

Ant. jar:

Ant compilation tool jar package, used to compile the hibernate source code. If you do not want to modify or compile the hibernate source code,

The jar package is optional.

Optional. jar:

Ant.

C3p0. jar:

C3PO is a database connection pool, and hibernate can be configured to use C3PO connection pool. If you want to use this connection pool, you need this jar package.

Proxool. jar:

It is also a connection pool, same as above.

Commons-pool.jar, commons-dbcp.jar:

DBCP database connection pool, developed by Apache Jakarta, and the tomcat4 connection pool is also DBCP.

In fact, Hibernate also implements a very simple database connection pool. With the above three connections, you can select four different database connection pools on hibernate, which one to choose depends on your personal preferences, but DBCP may be more common. In addition, if you use hibernate in EJB, you must use the connection pool of the app server. Do not use the above four connection pools. Otherwise, container management transactions do not work.

Connector. jar:

JCA specification. If you configure hibernate as connector on the app server, you need this jar. But in fact, the app server will definitely carry this package, so it is actually a redundant package.

JAAS. jar:

JAAS is used for permission verification and is already included in jdk1.4. So it is actually a redundant package.

JCs. jar:

If you want to use JCs in hibernate, you must include it; otherwise, you will not need it.

Jdbc2_0-stdext.jar:

The extension package of jdbc2.0 is generally used by the database connection pool. However, the app server is always included, so it is redundant.

JTA. jar:

The JTA specification is required when hibernate uses JTA, but the app server will carry it, so it is redundant.

JUnit. jar:

The JUnit package is required when you run the test code that comes with hibernate. Otherwise, you do not need to use it.

Xalan. jar, xerces. jar, xml-apis.jar:

Xerces is the XML parser, xalan is the formatter, and XML-APIS is actually JAXP. Generally, app server will be taken, and jdk1.4 also contains a parser, but it is not xerces, but crimson, which is less efficient. However, Hibernate uses XML to only read configuration files, and the performance does not matter, so it is redundant.

Ant-1.63.jar ant core package, used in hibernate Construction

Antlr-2.7.5H3.jar language converter, Hibernate uses it to achieve hql to SQL Conversion

ASM. Jar/asm-attrs.jar ASM byte conversion Library

C3p0-0.8.5.2.jar C3PO JDBC connection pool Tool

Cglib-2.1.jar efficient code generation tool, Hibernate uses it at runtime to expand Java class and implement Java Interface

Commons-collections-2.1.1.jar Apache toolset, used to enhance Java's ability to process collections

Commons-logging-1.0.4.jar Apache Software-my group provides log tools

Concurrent-1.3.2.jar thread synchronization tool, used in the use of JBoss tree Cache

Connector. jar is a standard connector used to connect multiple application servers.

Dom4j-1.6.jar dom4j XML Parser

Ehcache-1.1.jar cache tool. This cache tool is essential when no other cache tool is provided

JAAS. Jar standard Java permission and authentication service package

XPath processing engine for jaxen-1.1-beta-4.jar

A tree caching tool for jboss-cache.jar JBoss

Jboss-common.jar JBoss Basic Package, must have this package when using the JBoss tree Cache

Jboss-jmx.jar JBoss JMX Implementation Package

The core of jboss-system.jar JBoss, including servers and deployment Engines

Jdbc2_0-stdext.jar standard JDBC 2.0 extended API

Jgroups2.2.7.jar Network Communication Toolkit

JTA. Jar standard Java transaction processing interface

Junit-3.8.1.jar JUnit testing framework

Log4.j-1.2.9.jar log4j library, Apache Log Tool

Cache tool for oscache-2.1.jar Java objects

Proxool-0.8.3.jar proxool JDBC connection pool Tool

A Caching tool available for swarmcache-1.0rc2.jar hibernate

Versioncheck. Jar version check toolkit, used to check the version of the auxiliary jar package file when building hibernate

Xerces-2.6.2.jar sax XML Parser

Standard XML parser in xml-apis.jar Java language

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.