Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ


Choose your language

InfoQ Homepage News Java Pattern Framework Jt 2.6 Supports JtWizard and Enhancements to Jt Components

Java Pattern Framework Jt 2.6 Supports JtWizard and Enhancements to Jt Components

This item in japanese

The latest version of Java pattern framework Jt supports JtWizard and enhancements to Jt Components. The Jt development team recently released version 2.6 of the open source pattern oriented framework. JtWizard, an automated wizard application built as a reference implementation on top of Jt framework, can be used for generating Java applications based on design patterns including Gang Of Four (GoF), Data Access Object (DAO), Model-View-Controller (MVC), and J2EE design patterns like Business Delegate, Session Facade, Service Locator and Value Object.

The framework architecture is based on a messaging design pattern where framework objects interchange information and perform computations by sending, receiving and processing messages. The messaging API provides encapsulation and loose coupling so the framework components can be easily plugged into applications using a "lego/messaging" architecture. Several GoF design patterns are supported by Jt framework which include Memento, Command, Composite, Decorator, Prototype, Iterator, Adapter, and Flyweight.

The current JtWizard implementation provides integration with Struts and Hibernate frameworks. The artifacts like Hibernate mapping files, Struts configuration files, Views (JSPs) and Java classes are automatically generated by JtWizard. The applications created by Jt framework are customized using resource files where object attributes can be automatically loaded from a resource file.

Jt framework provides several components (Jt Components) out of the box. Some of the main components in Jt component suite are JtThread, JtList, JtCollection, and JtHashTable. There are also other reusable framework components such as JtFile, JtDirectory, JtURL, JtInputStream, JtKeyboard, etc that can be plugged into new applications. Jt framework has good integration with different client and server technologies used in a J2EE application.


  • On the client tier, Jt has integration with JSP, MVC, and AJAX (JtAjaxServlet) technologies. Universal framework components and adapters provide a transparent interface between the framework and these technologies.
  • It also has data access (JDBC) integration using a JDBC adapter and JavaMail API integration via the implementation of a JavaMail adapter.


  • And on the server side JT framework supports J2EE design patterns, Enterprise Java Beans (EJB) and web services. The integration with EJBs is done by implementing design patterns like adapters, proxies, facades, etc which makes it easy for the EJB clients to transparently access remote framework objects.
  • Web Services integration was implemented using web services adapters and proxies. The messaging architecture of Jt framework helped in the development of web services module.
  • There is also integration with JNDI using JNDI adapter (JtJNDIAdapter) and Java Message Service (JMS) integration where framework messages can be sent and received via JMS adapters.

Jt uses the Command pattern implementation to provide a request log, a queuing mechanism and undo operations. The framework also has support for XML integration, logging, exception management, testing and debugging. Testing support includes the capabilities for testing components independently (each component as a unit) by sending messages and verifying the reply (output) messages.

J2EE applications with business process management (BPM) requirements can use Jt's integration with jBPM, a business process modeling framework from JBoss. A jBPM adapter is provided within the Jt framework to support jBPM. Framework applications can be modeled using a process graph which gives the users a graphical way of modeling business processes.

In terms of future roadmap of the project, Jt development team plans to continue working on automated Jt Wizards and BPM integration. One of the goals is to make the framework components to be easily added to BPM process diagrams. Another goal is to integrate UML design diagrams and the framework messaging based applications and components needed for the implementation so that it's possible for the applications to be generated directly from UML design diagrams.

Jt framework has integration with Eclipse IDE environment and runs on any J2EE compatible application server. It is hosted as a project and the latest version is available for download on Jt web site. The users can also read the online documentation and subscribe to their mailing list by providing an e-mail address and user name.

Rate this Article