Tuesday 6 December 2011

NetBeans Platform

During development of NetBeans Platform 6.5, an effort was made to improve the testing infrastructure provided for NetBeans Platform applications. Prior to that, many small magical build scripts and other configuration files were needed when setting up the test infrastructure for NetBeans Platform applications. Since then, however, there is inherent support for testing NetBeans Platform application within the NetBeans Platform's build harness scripts. Therefore, unit and functional tests for NetBeans Platform applications are now supported out of the box. This simplification of the testing infrastructure is sometimes referred to as "simpletests", since it greatly simplifies the work necessary to set up such tests for your application.


more

JavaFX 2.0.1 SDK

The JavaFX 2.0.1 release contains fixes for security vulnerabilities. For more information, please see Oracle Java SE Critical Patch Update advisory.

The JavaFX SDK includes the JavaFX libraries, the JavaFX Runtime and project files you need to get started. You may use the JavaFX SDK by itself, or with your favorite Java IDE to leverage debugging, profiling, and other IDE features. You must have the Java SE Development Kit (JDK) 6 Update 26 or higher installed on your system in order to use the JavaFX SDK.

Neural Networks on the NetBeans Platform

Learn about neural networks (computational models inspired by the way the human brain works) and how to use Neuroph Studio (a neural network development environment built on top of the NetBeans Platform) to create, test, and deploy Java components based on neural networks.

The NetBeans Platform is a generic Java Swing application framework that provides GUI components and a module system for the development of custom desktop applications. The best known application on the NetBeans Platform is, of course, the NetBeans IDE, but there are also many other examples that can be seen at the NetBeans Platform Showcase.


more

JVM Language Summit Video and Presentations

Watch session video and download presentations from the 2011 JVM Language Summit, an open technical collaboration among language designers, compiler writers, tool builders, runtime engineers, and VM architects.

In 2011, it convened at Oracle's Santa Clara, Calif., campus on July 18-20.

Speaker presentations are available on video below, along with slides in PDF format. Informal workshops were not captured on video, but some workshop slides are available. You may embed and share these presentations for noncommercial purposes as you like.

Friday 2 December 2011

Templating with JSF 2.0 Facelets

Learn how to develop a Facelets Web application in Oracle Enterprise Pack for Eclipse 11g and deploy the application to Oracle WebLogic Server 11g. In JavaServer Faces (JSF) 2.0, Facelets is the default view declaration language (VDL) instead of JavaServer Pages (JSP). With Facelets, you don’t need to configure a view handler as you used to do in JSF 1.2. Facelets is a JSF-centric view technology.

more

Tuesday 29 November 2011

JAVA Update


The Java Update is a feature that keeps your computer up-to-date automatically with the latest Java releases. Installing the Java Runtime Environment automatically installs the Java Update feature. 


The Java Update feature connects to java.com at a scheduled time and checks to see if there is an update available.

Vaadin - JAVA Framework


Vaadin is a web application framework for Rich Internet Applications (RIA). In contrast to Javascript libraries and browser-plugin based solutions, it features a server-side architecture, which means that the largest part of the logic runs on the server. Ajax technology is used on the browser side to ensure a rich and interactive user experience. Developers compose the application user interface from components such as the Button, Table and Tree. The components use events, listeners and data binding to communicate with each other and with business logic. The component-based architecture together with the data binding features help building applications that are easily modularized and refactored as needed.

Pandora - JAVA Framework

Pandora is an easy to use, fast and lightweight framework for creating web applications with Java. Pandora uses Velocity for templating and provides support for Hibernate as persistence layer. It has great support for handling formular input with validators etc. and for lists, tables and trees (filtering, sorting, searching for free).

SerfJ - JAVA Framework

SerfJ is the easiest way of developing Java REST web applications. It helps you to develop your application over an elegant MVC arquitecture, giving more importance to convention than configuration, so for example, you will not have to have configuration files or annotations in order to specify which view serves a controller's method. However, SerfJ is very flexible, so if you want to jump over those conventions, you can configure the behaviour of your applications as you like.

fleXive - JAVA Framework

[fleXive] is a Java EE 5 open-source framework for the development of complex and evolving (web-)applications. It speeds up development by easing many tedious and repetitive programming tasks and helping to keep your application(s) flexible during the development-cycle and in production. [fleXive] concentrates on enterprise-scale content modeling, storage and retrieval, and includes comprehensive JSF support for displaying and manipulating these contents in (web) applications. The runtime environment can be included in existing Java EE applications, but you can also build new applications and package them into stand-alone Java EE applications. [fleXive] provides essential features for data-centric applications:

 * Secure EJB-based persistence engine
 * Web development JSF toolkit
 * Powerful administration interfaces
 * Based on the latest industry-standards like Java 6, EJB 3, JSF, etc.

Aurora - JAVA Framework

Aurora is an open-source MVC framework that is aimed at writing configurable, fully object-oriented form controllers using the Spring Framework. The code-base grew out of my experience using Spring's MVC module and slowly developed over several versions into a full-fledged framework that attempts at tackling the most common problems that I had when using Spring MVC and other J2EE web-related issues in general.

Hamlets (previously known as IBM Servlet-based Content Creation Framework)


Hamlets (previously known as IBM Servlet-based Content Creation Framework) is an open source system for generating dynamic web-pages originally developed by René Pawlitzek at IBM. A Hamlet is a servlet extension that reads XHTML template files containing presentation using SAX (the Simple API for XML) and dynamically adds content on the fly to those places in the template which are marked with special tags and IDs using a small set of callback functions. A template compiler can be used to accerate Hamlets. Hamlets provide an easy-to-use, easy-to-understand, lightweight, small-footprint, servlet-based content creation framework that facilitates the development of Web-based applications. The Hamlets framework not only supports but also enforces the complete separation of content and presentation.

RSF - JAVA Framework

RSF is an open source web programming framework, with roughly the scope of Sun's JSF. RSF is written in Java, and is built on the Spring framework. RSF features a pure-HTML templating engine named IKAT, which achieves the cleanest separation between presentation and logic yet made - build "components" using pure HTML and libraries of code rather than heavy framework base classes. RSF also features a lightweight request-scope Spring clone, RSAC, which brings the magic benefits of inversion of control into the request scope. RSF currently has integrations for Hibernate, JSR-168, Cocoon and Sakai.

ztemplates - JAVA Framework

ztemplates is a framework for creating web-applications based on Java 1.5. Features:

 * new and unique action processing module
 * clean, technology agnostic urls
 * fully JSP, Velocity and AJAX compatible
 * state-free
 * invisible to the web-client
 * convention over configuration
 * extensible
 * small and modular

Restlet - JAVA Framework

Restlet is a framework that brings the simplicity and efficiency of the REST architectural style to Java developers. It is composed of two parts, a neutral API and a reference implementation (Noelios Restlet Engine). It supports all REST concepts (resource, representation, data, connector, components, etc.) and is suitable for both client and server REST applications. The server connectors provided are HTTP (via Mortbay's Jetty or an adapter Servlet) and the client connectors are HTTP, JDBC, and SMTP (via JavaMail).

caramba - JAVA Framework

The caramba framework is built from bottom to top with one main goal: creating Responsive, Rich Internet Applications. With the AJAX technology we could already achieve this, but it was hard to debug, error prone and time intensive to make it work. We are sure that simplicity can be achieved by following the event driven architecture: Caramba is 100% event driven, so very, very easy to use. Using Caramba makes it possible to make fancy, responsive web-applications without having to write a single line of JavaScript. You don't need to learn another language. Just the good old java syntax and JSP, that's all you need to know to get started.

OpenXava- JAVA Framework

XML / Java Framework to develop J2EE business applications rapidly and easily. It is based in business components defined with XML. Feature rich and flexible since is used for years to create real business applications.

JAT - JAVA Framework

JAT is a flexible Java base-framework which can be easily extended to improve projects start-up time. JAT allows to build Web applications (J2EE) or standalone application (server, batch, etc.). JAT supplies the main basic functionalities of any Java application, such as:

 * High Business Object abstraction
 * Integration facilities (provided for DBMS, LDAP and open to any software product)
 * Authentication and user privileges management
 * MVC pattern implementation (with privileges management and page flow control)
 * HTML layout structure management (header, footer, menu, etc.)
 * HTML dynamic contents and facilities (form, report, paging)
 * Logging feautures
 * Help on-line utility
 * High configuration of all described functionalities
 * Administration and configuration GUI

JSPWidget - JAVA Framework

JSPWidget is a JSP Framework that provides event-driven,view state retained,server-side GUI controls to make JSP development as intuitive as in traditional client forms or in client-based Web applications.

RIFE - JAVA Framework


RIFE offers an alternative approach to web application development and design. It builds upon the Java platform, but offers all required tools and APIs to implement and perform all common website related tasks in a fast, intuitive and consistent manner. RIFE has been designed for perfect separation of tasks during a development cycle. Every developer, dba and designer only has to focus on his own tasks. At any moment the work can be effortlessly integrated with the work of the rest of the team. This results in a loosely coupled and very robust system. One can make incremental improvements with little or no risk of unwanted side-effects elsewhere in the system. RIFE is composed out of a large collection of modular parts, which include:

 * web application engine,
 * integrated web continuations,
 * customizable multi-format template engine (html, xml, sql, java, txt, ...)
 * support for template content transforming through for example XSLT,
 * authentication framework,
 * database query builders,
 * simple persistance layer,
 * fault-tolerant JDBC wrappers and connection pooling,
 * web-oriented database utilities,
 * central data repository,
 * cron-like scheduler,
 * configuration framework. The central part is the engine which formalizes all aspects of dynamic web development. It graciously solves all doubt, confusion and maintenance problems of HTTP's statelessness and liberal CGI interface.

Barracuda - JAVA Framework


Barracuda is an open-source Presentation Framework designed to make it easier to build servlet based webapps by applying proven client-server patterns to the web development paradigm. It features a DOM based templating mechanism for better separation of code from content (default XMLC), a UI component model that provides a series of server side widgets (table, list, template, etc) that make it easy to manipulate DOM structures, and a strongly typed MVC interfaces just like in Swing. With support for multiple markup languages (HTML, WML, XML, etc). It has an event model that provides Model 2 style flow control and allows for true event driven programming on the server. You can add listeners to components and your server-side event handler code will automatically get notified when an action occurs on the client.

Macaw - JAVA Framework

Macaw is an object-publishing framework designed for local web applications. Freemarker is used for presentation, Jetty is used as the default web container, and there is a basic integration with Hibernate (but other persistence mechanisms can be used). The framework requires two layers over the top of "business logic" classes: a Java web layer where certain simple method and class naming conventions are used to facilitate easy mapping of data to and from HTML, and Freemarker page templates. A small number of Freemarker tags are defined to enable references to Macaw-based objects within the page templates.

TrimPath - JAVA Framework

TrimPath provides open-source (GPL & APL) web technologies, focused around JavaScript, synchronization, MVC, occasionally connected computing, and Google Gears. The open source Junction framework is a conventions-over-configuration, synchronizing web MVC framework for JavaScript. Features of Junction:

 * Junction is a riff of the Ruby on Rails framework into the world of JavaScript.
 * Junction makes your web application perform great.
 * Junction is a synchronizing MVC framework for building applications on top of Google Gears, but also does not require Google Gears if you don't want it.
 * Junction automatically synchronizes your client-side and server-side code and RDBMS's.
 * Junction still works even if the network is occasionally-connected or offline.
 * Junction can run your application in the web-browser or on a Rhino-based server, or both. It's your choice. And, you write your application code just once to support these different runtime options. No duplicate logic.

Swingweb - JAVA Framework

Swingweb is an implementation of AWT toolkit that enables AWT/Swing application to be operating inside a web container and presented as a web application to the web browser, purely in HTML/CSS/javascript. There's no code conversion required for the swing application to run in the SwingWeb environment. Some of the features of SwingWeb include the following:

 * Support web-environment with multiple concurrent application sessions
 * Component-oriented architecture that allows developer to enable existing swing component to web environment easily
 * Support common AWT/Swing components in java.awt.
 * and javax.swing.
 *
 * Support all component layouts in jdk
 * Highly configurable use of jxp template for component presentation

Wicket - JAVA Framework

Wicket is a Java web application framework that takes simplicity, separation of concerns and ease of development to a whole new level. Wicket pages can be mocked up, previewed and later revised using standard WYSIWYG HTML design tools. Dynamic content processing and form handling is all handled in Java code using a Swing-like component model backed by POJO data beans that can easily be persisted with Hibernate.

JPS & Servlets


Program your JPS & Servlets like you program your Swing components. Swinglets is a server side component library that uses an identical design to Swing. Swinglets has look and feels for HTML, Java Script and WML. The Components, Models, Renderers, and LookAndFeels are very similar. It has Swing event handling too. In fact Swinglets actually uses the Swing models (e.g. TableModel). This means you can take your existing models and start working with Servlets straight away. It's just about as close to a standard as you can get without it actually coming from Sun themselves.

Jucas - JAVA Framework

Jucas is a web-framework which brings together the pull MVC concept with component orientated design GUI programming.

Japple - JAVA Framework

Japple is a rapid application development environment for building web applications and services. Built on the JavaTM2 Platform and open-standards, Japple allows you to develop and deploy web applications faster, easier and more efficiently than traditional methods.

Jaffa (Java Application Framework For All) - JAVA Framework


Jaffa (Java Application Framework For All) is an enterprise-focused Java framework for rapid application development. It provides a complete Java Web application development stack, extending exsiting projects like Tomcat and Struts at the frontend with MVC-based web widgets, all the way through to a high-performance lightweight O/R persistence engine, with plenty of rich features in between including rules engines, declarative application, and data security.

Verge Framework

The Verge Framework is an open source J2EE application framework written entirely in Java using only the standard J2EE APIs. This project aims to develop and promote a highly flexible and extensible framework for building enterprise applications.

SOFIA - JAVA Framework

SOFIA is the Salmon Open Framework for Internet Applications. Conceptually, SOFIA is similar to other J2EE MVC open source frameworks, like Apache Struts. But SOFIA sets a new standard for Java development by delivering so much more in a framework matching best-of-breed tools integration with robust JSP class and tag libraries. SOFIA shortens application development time on the strength of its visual development capabilities and pre-built Java components that dramatically simplify coding.

Maverick Framework



Maverick is a Model-View-Controller (aka "Model 2") framework for web publishing using Java and J2EE. It is a minimalist framework which focuses solely on MVC logic, allowing you to generate presentation using a variety of templating and transformation technologies.

JVx Framework (or JVx - Enterprise Application Framework)

The JVx Framework (or JVx - Enterprise Application Framework) is a Full-Stack Application Framework for the Java platform. JVx facilitates the development of professional and efficient Database applications, in a short time and using little source code. The framework's architecture is based on the Multi-tier architecture model for the development of software systems. Building on a three-tier architecture and following the Dependency inversion principle JVx allows for easy development of efficiently maintained applications. The framework provides full support for all tiers. Because of the Single Sourcing principle, the application is coded once and used with different technologies (RIA, HTML/Ajax, Desktop).

AJAX framework

An AJAX framework to write database web applications with the target to edit and show the stored informations in different form windows. For this a simulated MDI-GUI gives the user the possibility to jumb between the form windows opened by himself. Tables has horizontal und vertical scrollbars. Between the server and the browser of the user the traffic is very small also in the case of very large tables because only the visible rows are transfered with AJAX. The tutorial is currently in german language but the API documentation is in english.

jZeno - JAVA Framework


jZeno is an open source java development framework that offers the ability to develop rich web applications. The main architectural goal of jZeno is to allow people to create web applications using pure java development as much as possible. Largely reducing the need to know technologies like javascript, HTML, CSS, database specific SQL, JSP, JSF, etc..

Chrysalis - JAVA Framework

Chrysalis is a Java web development framework. It has a different focus from most Model-View-Controller (MVC) web frameworks. Chrysalis controllers resemble normal Java classes with multiple methods. Client request URLs are mapped to each controller method.

Induction - JAVA Framework

Induction is a powerful, high performance, Java MVC web application framework. Induction supports dynamic application reloading, type-based dependency injection and dependency analysis between models, views and controllers. The goal of Induction is to simplify the task of building complex, high performance, maintainable web applications using Java technology.

Echo - JAVA Framework

Echo is a framework for developing object-oriented, event-driven Web applications. Echo removes the developer from having to think in terms of "page-based" applications and enables him/her to develop applications using the conventional object-oriented and event-driven paradigm for user interface development.

Vroom - JAVA Framework

Vroom is a framework for HTML/JSP and Java code binding. It's extremely simple to use and very powerful. It can control your HTML widgets on the fly. It can be applied independently as JSP/Servlet Model or can be integrated with Struts, JSF, YUI etc. No custom tags, no complex configurations, just simple binding configuration file and backing beans.

Pustefix - JAVA Framework

Pustefix is a framework that helps you to develop web based applications. The framework consists of two more or less independent parts: A machinery to apply recursive XSLT transformations that produces the UI of the web application. A Java framework that takes input from the UI to change the application data and supplies changes of the application data back to the UI. Together, the framework acts similar to the Model-View-Controller pattern (as far as this is possible in the context of a web application)

ThinWire - JAVA Framework

ThinWire is a development framework that allows you to easily build applications for the web that look and feel like the desktop applications you're familiar with. Responsive, expressive & interactive user interfaces in your web browser without the complexity of the alternatives.

WebOnSwing - JAVA Framework

WebOnSwing is a revolutionary multiple environment application framework that allows you to create web applications in the same way you develope a desktop one. You dont need to use JSP files, special tags, XML files, requests, posts, etc. Everything is Java and pure HTML files that comes directly from the graphic designer. This framework constructs and handles html pages with Swing components, allowing to use MVC architecture and all the facilities provided by Swing in the web.

Anvil - JAVA Framework


Anvil is a Java based server environment and object oriented programming language with templating support, being especially well-suited to for web applications.

Play framework - JAVA Framework

The Play framework makes it easier to build Web applications with Java: Quick overview

 * Fix the bug and hit reload! Edit your Java files, save, refresh your browser and see the results immediately! No need to compile, deploy or restart the server.
 * Stateless model Play is a real "Share nothing" system. Ready for REST, it is easily scaled by running multiple instances of the same application on several servers.
 * Efficient template system A clean template system based on Groovy as an expression language. It provides template inheritence, includes and tags.
 * Resolve errors quickly When an error occurs, play shows you the source code and the exact line containing the problem. Even in templates.
 * All you need to create a cool web application Provides integration with Hibernate, OpenID, Memcached... And a plugin system.
 * Pure Java Code with Java, use any Java library and develop with your preferred IDE. Integrates nicely with eclipse or netbeans.
 * Really fast Starts fast and runs fast!

AribaWeb - JAVA Framework



AribaWeb is the Open Source component-based web application development framework for creating rich, AJAX-enabled applications with the absolute minimum of code (and no hand-coded Javascript). Discover the difference that sets AribaWeb apart: Auto AJAX, Instant App, Live Edit & X-Ray,Proven Full Stack

Strecks - JAVA Framework

Strecks is a set of extensions to the Struts web development framework aimed at Java 5 users. The aim of Strecks is to enhance the capability of Struts in terms of productivity and maintainability. Strecks makes use of Java 5 language features, in particular JSR-175 annotations, to simplify the programming model for Struts applications.

wingS - JAVA Framework

wingS is a component based web framework resembling the Java Swing API with its MVC paradigm and event oriented design principles. It utilizes the models, events, and event listeners of Swing and organizes the components as a hierarchy of containers with layout managers. Version 2.0 comes with a completly rewritten rendering subsystem focusing on optimal stylability via CSS and new features like Drag & Drop support, context menus and Server-side code execution (AJAX). Selected features of wingS 2.0 are:

 * Comprehensive set of widgets including trees, tables, tabbed panes menus and more.
 * Highly flexible dynamic layout managers
 * Drag & Drop support
 * Component context menus and tooltips
 * Handling of browser back navigation
 * Improved styleability via CSS The distribution contains an extensive user documentation and various demo applications also available >>online. wingS is released under the LGPL licence. PermaLink

JOSSO (Java Open Single Sign-On) - JAVA Framework

JOSSO, or Java Open Single Sign-On, is an open source J2EE-based SSO infrastructure aimed to provide a solution for centralized platform neutral user authentication.

JPublish - JAVA Framework


JPublish is a powerful web publishing system designed to ensure a clean separation of developer roles. JPublish includes support for multiple templating engines, including Jakarta Apache's Velocity, FreeMarker and WebMacro. JPublish supports numerous scripting languages including Python, BeanShell, and JavaScript. JPublish is modular and provides for easy extensibility.

Stripes - JAVA Framework


Stripes is a Java web framework that makes web development as easy as it should be. It requires zero external configuration beyond the registration of one servlet and one filter. Stripes includes simple yet powerful solutions to common problems such as indexed properties, multi-event forms, localization and use of domain objects in the web tier. All of this in a compact framework with hardly any dependencies!

Makumba - JAVA Framework

Makumba is a query-centric MVC web framework designed to build database-driven without advanced knowledge of database systems or Java. It is simple to configure and eliminates all the overhead usually needed to get data from the database to the view. Its intuitive tag-library helps building complex sites in much less time than other frameworks. Its main features are:

 * Makumba List engine (using OQL/HQL as query language), to "loop" over records in the database and display them correctly according to their data type.
 * Makumba Forms, supporting nested forms and making it possible to build complex forms without having to worry about how the data will get stored.
 * Makumba Data Definitions (MDDs), an abstraction of the data model, making the model design very easy.

Turbine - JAVA Framework

Turbine is a servlet based framework that allows experienced Java developers to quickly build secure web applications. Turbine is an excellent choice for developing applications that make use of a services-oriented architecture. Some of the functionality provided with Turbine includes a security management system, a scheduling service, XML-defined form validation server, and an XML-RPC service for web services. It is a simple task to create new services particular to your application.

Google Web Toolkit (GWT) - JAVA Framework

Google Web Toolkit (GWT) is a Java software development framework that makes writing AJAX applications like Google Maps and Gmail easy for developers who don't speak browser quirks as a second language. Writing dynamic web applications today is a tedious and error-prone process; you spend 90% of your time working around subtle incompatibilities between web browsers and platforms, and JavaScript's lack of modularity makes sharing, testing, and reusing AJAX components difficult and fragile.

Spring - JAVA Framework

Spring is a lightweight container and framework to develope and deploy the enterprise application. It is an alternative for Enterprise Java Beans(EJB). It reduce the complexity behind developing EJB's, and it uses only Plain Old Java Objects(POJOs) as the componenets. It uses two types of programming techniques : Inversion of control (also called as Dependency Injection) and Aspect Oriented Programming(AOP).

Struts- JAVA Framework

Struts is the best implementation for Model View Controller(MVC) pattern and widely accepted by the developers. This framework is originated by the Apache Foundation, a famous open source commuinty in Java. Recent days the Struts framework lossing its popularity to other frameworks in the market Java Server Faces(JSF),Spring,etc. But still its mostly used in all the web applications. Currently this project developement is stopped and started a sub project called Shale. Which is more like Java Server Faces(JSF).

MyFaces - JAVA Framework

MyFaces is an implementation of JavaServer(tm) Faces (JSR 127), a new and upcoming web application framework that accomplishes the MVC paradigm. It is comparable to the well-known Struts Framework but has features and concepts that are beyond those of Struts.

Cocoon - JAVA Framework

Apache Cocoon is a web development framework built around the concepts of separation of concerns and component-based web development. Cocoon implements these concepts around the notion of 'component pipelines', each component on the pipeline specializing on a particular operation. This makes it possible to use a Lego(tm)-like approach in building web solutions, hooking together components into pipelines without any required programming.

Tapestry -JAVA Framework

Tapestry is a powerful, open-source, all-Java framework for creating leading edge web applications in Java. Tapestry reconceptualizes web application development in terms of objects, methods and properties instead of URLs and query parameters. Tapestry is an alternative to scripting environments such as JavaServer Pages or Velocity. Tapestry goes far further, providing a complete framework for creating extremely dynamic applications with minimal amounts of coding.

Monday 21 November 2011

JAVA comprehensive example

// OddEven.java
import javax.swing.JOptionPane;

public class OddEven {
    // "input" is the number that the user gives to the computer
    private int input; // a whole number("int" means integer)

    /*
     * This is the constructor method. It gets called when an object of the OddEven type
     * is being created.
     */
    public OddEven() {
    /*
     * In most Java programs constructors can initialize objects with default values, or create
     * other objects that this object might use to perform its functions. In some Java programs, the
     * constructor may simply be an empty function if nothing needs to be initialized prior to the
     * functioning of the object.  In this program's case, an empty constructor would suffice, even if
     * it is empty. A constructor must exist, however if the user doesn't put one in then the compiler
     * will create an empty one.
     */
    }

    // This is the main method. It gets called when this class is run through a Java interpreter.
    public static void main(String[] args) {
        /*
         * This line of code creates a new instance of this class called "number" (also known as an
         * Object) and initializes it by calling the constructor.  The next line of code calls
         * the "showDialog()" method, which brings up a prompt to ask you for a number
         */
        OddEven number = new OddEven();
        number.showDialog();
    }

more

JAVA Hello World Example

Hello world
The traditional Hello world program can be written in Java as:[34]
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Display the string.
    }
}



more

java language syntax

The syntax of Java is largely derived from C++. Unlike C++, which combines the syntax for structured, generic, and object-oriented programming, Java was built almost exclusively as an object-oriented language. All code is written inside a class, and everything is an object, with the exception of the primitive data types (integers, floating-point numbers, boolean values, and characters), which are not classes for performance reasons

more

java platform

One characteristic of Java is portability, which means that computer programs written in the Java language must run similarly on any hardware/operating-system platform. This is achieved by compiling the Java language code to an intermediate representation called Java bytecode, instead of directly to platform-specific machine code. Java bytecode instructions are analogous to machine code, but are intended to be interpreted by a virtual machine (VM) written specifically for the host hardware. End-users commonly use a Java Runtime Environment (JRE) installed on their own machine for standalone Java applications, or in a Web browser for Java applets.
Standardized libraries provide a generic way to access host-specific features such as graphics, threading, and networking.

more

About Java Language

"Java language" redirects here. For the natural language from the Indonesian island of Java, see Javanese language.
Not to be confused with JavaScript.
   

Java is a programming language originally developed by James Gosling at Sun Microsystems (now part of Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewerlow-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture. Java is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere." Java is currently one of the most popular programming languages in use, particularly for client-server web applications.[10][11]

more

Friday 18 November 2011

Spring Batch Example

JDBC Template Batch update example, In the tutorial we have discussed about batchUpdate()  method of classJdbcTemplate in Spring framework. The Batch update methods are used to executes multiple SQL updates query on a single JDBC Statement. The example given below consists of the code to delete and update data of the table Simultaneously.

source code

Spring Injection Example

Core package is the most fundamental part of the framework and provides the IoC and Dependency Injection features. The basic concept here is the BeanFactory, which provides a sophisticated implementation of the factory pattern which removes the need for programmatic singletons and allows you to decouple the configuration and specification of dependencies from your actual program logic.BeanFactory create object for you based on XML configuration.

The org.springframework.beans and org.springframework.context packages provide the basis for the Spring Framework's IoC container. The BeanFactory interface provides an advanced configuration mechanism capable of managing objects of any nature. The ApplicationContext interface builds on top of the BeanFactory (it is a sub-interface) and adds other functionality such as easier integration with Spring's AOP features, message resource handling (for use in internationalization), event propagation, and application-layer specific contexts such as the WebApplicationContext for use in web applications.

BeanFactory provides the configuration framework and basic functionality, while the ApplicationContextadds more enterprise-centric functionality to it. The ApplicationContext is a complete superset of the BeanFactory, and any description of BeanFactory capabilities and behavior is to be considered to apply to the ApplicationContext as well.

Souce Code

Downloading and Installing Spring Framework

Spring Framework is available for download from its official website. The latest version of the spring framework at the time of writing this tutorial is Spring 2.5.1, which available for download at from its official website.
Spring 2.5.1 is one the most advance light weight framework for develop enterprise applications. The most exiting feature is Custom components. Spring ships with few namespaces such as jee, aop, util, and etc, now you can write your own custom namespaces.
So, let's start experimenting with the spring framework.
Download Spring Framework 2.5.1
Visit the Spring official website at http://www.springframework.org/download

Spring Framework Architacture

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More