Ajax Tags : Simple JSP tags for Ajax

The AJAX Tag Library is a set of JSP tags that simplify the use of Asynchronous JavaScript and XML (AJAX) technology in JavaServer Pages.This tag library fills that need by not forcing J2EE developers to write the necessary JavaScript to implement an AJAX-capable web form. The tag library provides support for live form updates for the following use cases: autocomplete based on character input to an input field, select box population based on selections made from another field, callout or balloon popups for highlighting content, refreshing form fields, and toggling images and form field states on/off.Links:

Project Home : HereDownload Latest : Click HereDownload the demo application : Click Here

Technorati Tags: , , , ,

Google Collections Library

Google Collections Library is the extension of Java 1.5 Collection Framework. As we all know the collection framework is mostly used to handle objects in the Java Programming. So I think an extension API to this Its a very interesting as well as useful development to the Java world. Now Google is released its ALPHA version. This API includes so many new types, utility classes and some other helper implementations.The major new types are:

  • BiMap. A Map that guarantees unique values, and supports an inverse view.
  • Multiset. A Collection that may contain duplicate values like a List, yet has order-independent equality like a Set. Often used to represent a histogram.
  • Multimap. Similar to Map, but may contain duplicate keys. Has subtypes SetMultimap and ListMultimap providing more specific behavior.

Static utility classes include:

  • Comparators. Natural order, compound, null-friendly, ad-hoc . . .
  • Iterators and Iterables. Element-based equality, cycle, concat, partition, filter with predicate, transform with function . . .
  • Lists, Sets and Maps. A plethora of convenient factory methods and much more.
  • PrimitiveArrays: “boxing”/”unboxing” of primitive arrays

Please find the API documentaion here.Google Collection API Project home you can find here.To find Geertjan’s Blog about this API and Interview with its creators, please click here.

Technorati Tags: , , ,

Spring 2.5 is released :)

At last Spring 2.1 is changed into Spring 2.5. The new version of Spring is released. With lots of new features… Actually Mr.Juergen Hoeller already wrote about this before one month in the Spring Team Blog. And Please see this Link to find one previous post in my blog itself :)The Features added in Spring 2.5 are…

  • full Java 6 and Java EE 5 support (JDBC 4.0, JTA 1.1, JavaMail 1.4, JAX-WS 2.0, etc)
  • full-featured annotation-driven dependency injection (including support for ‘qualifiers’)
  • support for component scanning in the classpath (autodetecting annotated classes)
  • bean name pointcut element in AspectJ pointcut expressions
  • built-in support for for AspectJ load-time weaving (based on the LoadTimeWeaver abstraction)
  • further XML configuration namespaces (”context”, “jms”) for maximum convenience
  • completely revised framework for integration tests (with support for JUnit 4 and TestNG)
  • new annotation-based controller style for Servlet MVC and Portlet MVC
  • extended SimpleJdbcTemplate functionality (support for named parameters etc)
  • officially certified WebSphere support (support for the WebSphere 6 UOWManager facility)
  • Spring framework jars are shipped as OSGi-compliant bundles out of the box
  • Spring ApplicationContext can be deployed as JCA RAR file (for headless application modules)
  • JCA 1.5 message endpoint management (for Spring-managed JMS and CCI message listeners)

From which the main points are annotation-based MVC controller style, the JAX-WS support and the TestNG support. Spring 2.5 is still compatible with JDK 1.4.2+ and J2EE 1.3+ also.Download Spring 2.5 From here.

Technorati Tags: , ,

Advantages of Hibernate

  • Caching objects. The session is a transaction-level cache of persistent objects. You may also enable a JVM-level/cluster cache to memory and/or local disk.
  • Executing SQL statements later, when needed. The session never issues an INSERT or UPDATE until it is actually needed. So if an exception occurs and you need to abort the transaction, some statements will never actually be issued. Furthermore, this keeps lock times in the database as short as possible (from the late UPDATE to the transaction end).
  • Never updating unmodified objects. It is very common in hand-coded JDBC to see the persistent state of an object updated, just in case it changed…..for example, the user pressed the save button but may not have edited any fields. Hibernate always knows if an object’s state actually changed, as long as you are inside the same (possibly very long) unit of work.
  • Efficient Collection Handling. Likewise, Hibernate only ever inserts/updates/deletes collection rows that actually changed.
  • Rolling two updates into one. As a corollary to (1) and (3), Hibernate can roll two seemingly unrelated updates of the same object into one UPDATE statement.
  • Updating only the modified columns. Hibernate knows exactly which columns need updating and, if you choose, will update only those columns.
  • Outer join fetching. Hibernate implements a very efficient outer-join fetching algorithm! In addition, you can use subselect and batch pre-fetch optimizations.
  • Lazy collection initialization.
  • Lazy object initialization. Hibernate can use runtime-generated proxies (CGLIB) or interception injected through bytecode instrumentation at build-time.

A few more (optional) features of Hibernate that your handcoded JDBC may or may not currently benefit from

  • second-level caching of arbitrary query results, from HQL, Criteria, and even native SQL queries
  • efficient ‘PreparedStatement’ caching (Hibernate always uses ‘PreparedStatement’ for calls to the database)
  • JDBC 2 style batch updates
  • Pluggable connection pooling

For more information please follow this link Click here

Technorati Tags: ,

Design a site like this with WordPress.com
Get started