How to Create a Java EE 6 Application with JSF 2, EJB 3.1, JPA, and NetBeans IDE 6.8

There are many articles and tutorials out there that discuss how to use the individual technologies in Java EE 6, e.g., JSF 2, EJB 3.1, JPA, etc, to develop an application, but I haven’t seen one that puts together the said technologies and showcases them in one tutorial with an end-to-end demonstration. As such, I thought I would create one here for the benefit of those who are new to JEE6 and NetBeans IDE 6.8 and those who are seriously looking at NetBeans IDE 6.8 as a tool for developing their enterprise applications.

This article published on Netbeans Zone aims to provide detailed steps to develop a web-based application based on technologies in the JEE6 specs, i.e., JavaServer Faces 2.0 (JSF), Enterprise Java Beans 3.1 (Session Bean and Message-Driven Bean) and Java Persistence API (JPA) with the help of NetBeans IDE 6.8 as the development & deployment tool. The example in this tutorial creates a web application called “CustomerApp” that performs only the Retrieve and Update functions of CRUD on the customer records provided by the NetBeans Sample database served by the Glassfish built-in database server, JavaDB (Derby). In addition to the above-mentioned technologies from JEE6, PrimeFaces for JSF2 will also be used as the Ajax-based Framework for the Web UI portion which is lacking in the stack. So, this tutorial also discusses how PrimeFaces can be integrated into NetBeans IDE and to enable Ajax capabilities for Web projects.

The objective of the tutorial is to demonstrate the ease of using the various JEE6 technologies and putting them together to create an enterprise-ready web-based application. Although the application is developed for demo purposes, its architecture represents the best practices in developing an enterprise application, whereby modularity, scalability, and reusability are taken into consideration.

Read the rest of the article and tutorial >>

Liferay An Open Source Portal Development Platform

Liferay Portal has proved itself as the world’s leading open source portal platform in open source web development. Because of its reliability, cost effectiveness and capability to support the development of innovative internet-based applications, Liferay portal is increasingly being used globally across industries for their most challenging information technology needs. Liferay Portal is the only open source portal that is compatible with any application server, database server, or operating system. It also supports many different servlet containers.

Liferay Enterprise Edition Vs Liferay Professional Edition

Liferay Portal comes in two flavors: Professional and Enterprise editions. Below is a brief comparison between the two.

Liferay Portal Enterprise edition is based on Java Enterprise Beans whereas the Liferay Professional version is based on POJO and uses Spring framework. Thus building EJBs should only be done using Liferay Portal Enterprise. Liferay Portal Enterprise requires a complete J2EE application server whereas Liferay Professional can run on any simple servlet container. Liferay Portal Enterprise Edition (EE), being the most stable version of the product, serves�companies targeting to maintain one stable version of the product for an extended period of time.

Companies worldwide have been using Liferay Portal because of its high-end functionality, compatibility with most major application servers and database platforms, and scalability. One can consolidate, organize and access all the data and applications via a single point of access that the Liferay portal provides. Single sign-on allows end-users to log-in just once to access all their information needs. After signing in, it allows you to customize and gives controlled accessibility to users of sensitive information and add-on functionalities.

Following are some of noticeable benefits of the Liferay Portal solutions:

Liferay Portal is the world’s leading open source enterprise portal solution using the latest in Java and Web 2. 0 technologies. Liferay Portal offers dynamic, intuitive and time saving features:

It provides out-of-the-box tools offering over 60 portlets Liferay CMS and Liferay Collaboration offers�content management, web publishing, collaboration and social networking options. Based on SOA strategy for enterprise application integration of existing systems Role-based access granting varying levels of control and editing rights Users can be grouped together with each group having their own separate mini portal Offers drag & drop feature allowing users to move different elements around in the portal. Out of the box support for 22 languages Personal space for users that can be customized for accessibility and look and feel. Can run on all major application servers, databases and operating systems Benchmarked among the most secure portal platforms

Created for enterprise use, Liferay Portal provides a virtual space where you can centralize, share and collaborate. Built with the end user in mind, user interface developed using Liferay Portal is easy to understand even by the technically ignorant user.

JBoss Seam: Simplicity and Power Beyond Java? EE

Product Description
This is the eBook version of the printed book. A new edition of this title is available, ISBN-10: 0137129394 ISBN-13: 9780137129393

Discover JBoss Seam: the Unified Framework for Simpler, More Powerful Web Development � JBoss Seam integrates EJB 3. 0 and JSF components under a unified framework that simplifies and accelerates Java EE web development. Now, JBoss Seam?s project leader and technology evangelist take you inside this powerful new technology, showing exactly how to put it to work. � � Michael Yuan and Thomas Heute show how JBoss Seam enables you to create web applications that would have been difficult or impossible with previous Java frameworks. Through hands-on examples and a complete case study application, you?ll learn how to leverage JBoss Seam?s breakthrough state management capabilities; integrate business processes and rules; use AJAX with Seam; and deploy your application into production, one step at a . . . More >>

JBoss Seam: Simplicity and Power Beyond Java? EE

JSP + Servlets + EJB: Java EE 6 & GlassFish 3 using NetBeans 6.9 (Part 1 of 5)


This multi-part screencast series shows how NetBeans 6.9 provides comprehensive tooling for Java EE 6 & GlassFish 3. The different parts show: 1. A simple Java EE 6 application (JSP, Servlets, EJB) 2. Reading database table using Java Persistence API 2 3. Using Facelets with Java Server Faces 2 4. Contexts & Dependency Injection with JSF 2 5. RESTful Web services using JAX-RS This is part #1 and all screencasts are hosted at blogs.sun.com

Native Seam Support Wanted for NetBeans & Glassfish

Jboss Seam logoJboss SEAM is by far the best programming framework for Java EE development as it solves most of the problems which arose for achieving a true MVC 2 implementation. All of the other frameworks like Struts and Spring MVC when used with presentation layer specifications like JSP and JSF 1.x while almost succeeding in the arena, when it came to agile development, they created at least as many other problems – if not more - as the ones they solved. Enter Jboss Seam which uses JSF 2 for the presentation layer which is truely a Java EE specification and for the rest of the MVC paradigm which consists of the business logic and the data persistence layer achieved respectively by EJB and JPA.

Joesph Faisal Nusairat had this to say in his book Beginning Jboss Seam from Novice to Professional. 

For years developers realized that the JavaServer Pages (JSP)/servlets paradigm was not enough to create enterprise-level web pages. That model provided the capability for a web tier that could pass objects from the client to the server, but essentially that was it. For most developers, this simple paradigm was not enough; more-complex operations were needed, and developers found themselves writing infrastructure code to deal with the shortcomings of the Servlet specification. Eventually, all the ideas learned from creating custom infrastructure code resulted in the web frameworks we know today, such as Apache’s Struts and Tapestry, OpenSymphony’s WebWork, and so forth. The Java community also got together and through the Java Community Process (JCP) created the JSF specification to tackle some of the issues raised and deal with the shortcomings of the Servlet specification.

Even though we now have web and business tiers with improved functionality, we have still been forced to create the plumbing code needed to connect them together. With Seam, however, these two areas can now focus more exclusively on what they do best—presentation and business logic.

Continue reading “Native Seam Support Wanted for NetBeans & Glassfish”

Techniques For Integrating Hibernate Into Legacy Java Code – Part 1

If you’re like me, you spend a lot of time dealing with legacy code that, for whatever reason, does not take advantage of modern methodologies and libraries. I’ve taken over Java projects that contain hundreds of thousands of lines of code and not a single third-party jar other than a JDBC driver! One of the most common examples of this is the implementation of the data access layer. These days, the de facto methodology involves Hibernate and DAOs, usually managed by Spring.

This article will detail the steps I recently took to covert a large application from custom-written data access to Hibernate and Spring using the refactoring facilities in Eclipse. The key with this refactorization is to get the existing business logic code (Struts Actions, JSPs, Delegate classes, Business Service classes, etc. ) to access the datastore using Hibernate, managed by Spring, without manually changing any of that code directly. Part 1 will include creating the Hibernate data object classes, DAOs, and refactoring the existing code to work with these newly created types. Part 2 will conclude the project with integration of the Hibernate DAOs and wiring everything up with Spring.

Continue reading “Techniques For Integrating Hibernate Into Legacy Java Code – Part 1”

NetBeans IDE 6.7 Conexión y consulta de BBDD MySql (Java EE 6)


Veamos como preparar NetBeans para que detecte nuestro SGBD MySQL donde tenemos las tablas con las que vamos a trabajar en nuestraa aplicación distribuida Java EE 6. En otros videotutoriales veremos como recuperar información desde esas tablas mediante técnicas avanzadas de mapeo Objeto-Relacional aprovechando las ayudas incluidas en el IDE. La idea es ir construyendo los componentes necesarios para crear aplicaciones empresariales multicapa, distribuibles y altamente escalables.

What is the average first year raise for a software developer?

I work as a software developer in Austin, TX. I just graduated last December from Univ. of Texas and started at my current job at the beginning of this year, making 55k/yr, which is about average. I am going to be up for a raise in a couple months and I’m wondering what sort of raise I should expect? I know Java EE, CSS, AJAX, SQL, Struts, etc.

Powered by Y! Answers

Spring in Practice

Product Description
Spring lets developers build complex applications from loosely-coupled POJOs. A set of simple abstractions simplifies construction, testing, and deployment which makes Spring both powerful and easy-to-use. With this power comes the potential for a wide range of uses in both common and not-so-common scenarios. That’s where Spring in Practice comes in. Spring in Practice is a problem/solution book in the Manning “In Practice” series. It shows how to tackle the challen… More >>

Spring in Practice

Java EE – Hello world EJB3 in Netbeans


This is an introduction to Java EE Enterprise Java Bean (EJB 3) technology. It’s just an hello world example and this is part1. This series of posts will cover: How to create a simple ejb, How to write an standalone client application for that bean, How to deploy it on a real server etc. And there will be a screencast of every tutorial. darq.weboder.com

Java EE 5 for Elvis

Product Description
Traditionally, Enterprise Java (J2EE, now Java EE) has been viewed as a complex, high performance technology. As a result average developers (Elvis) have looked to alternatives like Spring and Hibernate. This has lead to exaggerated reports that Java EE is dead. Java EE 5 will change the game. Difficult boilerplate code is gone, replaced by simple annotations. The best ideas of Hibernate and Spring are part of EE 5. For the first time, large parts of the Java EE tec… More >>

Java EE 5 for Elvis

Deploy Top-Performing Java or SQL Code with J Optimizer and DB Optimizer


www.embarcadero.com

Yikes! Your application just failed three performance requirements in QA. Is it your database? Is it your application? What is it? Before you begin the usual hair on fire drills tuning the parameters, rebuilding the indexes, removing them, and throwing more hardware at the problem attend this webinar: Deploy Top-Performing Java or SQL Code with J Optimizer and DB Optimizer Free Webinar Wednesday, April 8, 2009 11:00 AM PDT / 2:00 PM EDT Register Now! At this Webinar you will learn how to: • Find and fix performance problems in your Java code earlier in the development process. • Quickly pinpoint, down to the line of code, memory and CPU bottlenecks in your Java application. • Profile the performance behavior of your Java EE application and identify performance bottlenecks across Java EE protocols and components. • Uncover inefficiencies in your SQL queries to prevent poor-performing SQL from reaching the production environment. Learn how you can more easily and quickly prevent, find, and fix problems that impact Java application and database performance throughout the development cycle and even post-deployment.

Struts 2 in Action

  • ISBN13: 9781933988078
  • Condition: NEW
  • Notes: Brand New from Publisher. No Remainder Mark.

Product Description
The original Struts project revolutionized Java web development and its rapid adoption resulted in the thousands of Struts-based applications deployed worldwide. Keeping pace with new ideas and trends, Apache Struts 2 has emerged as the product of a merger between the Apache Struts and OpenSymphony WebWork projects, united in their goal to develop an easy-to-use yet feature-rich framework. Struts 2 represents a revolution in design and ease of use when compared to c… More >>

Struts 2 in Action