Friday Mar 30, 2012

Spring to Java EE, Part Three - new tech article on otn/java

In a new article up on otn/java, Java EE expert David Heffelfinger continues his series exploring the relative strengths and weaknesses of Java EE and Spring. Here, he demonstrates how easy it is to develop the data layer of an application using Java EE, JPA, and the NetBeans IDE instead of the Spring Framework.

In the first two parts of the series, he generated a complete Java EE application by using JavaServer Faces (JSF) 2.0, Enterprise JavaBeans (EJB) 3.1, and Java Persistence API (JPA) 2.0 from Spring’s Pet Clinic MySQL schema, thus showing how easy it is to develop an application whose functionality equaled that of the Spring sample application.

In his new article, Heffelfinger tweaks the application to make it more user friendly.

From the article:
“The generated application displays primary keys on some of the pages, and these keys are surrogate primary keys—meaning that they have no business value and are used strictly as a unique identifier—so there is no reason why they should be visible to the user. In addition, we will modify some of the generated labels to make them more user-friendly.”

He concludes the article with a summary:
“The Java EE version of the application is not a straight port of the Spring version. For example, the Java EE version enables us to create, update, and delete veterinarians as well as veterinary specialties, whereas the Spring version of the application enables us only to view veterinarians and specialties. Additionally, the Spring version has a single page for managing/viewing owners, pets, and visits, whereas the Java EE version of the application has separate pages for each of these entities.
The other thing we should keep in mind is that we didn’t actually write a lot of the code and markup for the Java EE version of the application, because the bulk of it was generated by the NetBeans wizard.”

Have a look at the complete article here.

Tuesday Mar 13, 2012

Key to the Java EE 6 Platform: NetBeans IDE 7.1

Oracle’s Geertjan Wielenga has a new article up on otn/java, titled “Key to the Java EE 6 Platform: NetBeans IDE 7.1,” in which he shows how the NetBeans IDE provides the tools, templates, and code generators to support Java EE 6 and its main specifications.

He initially observes that, “When you begin to grasp the breadth and ambition of the Java EE 6 Platform, which covers everything from the model (JPA and Bean Validation), to the controller (EJB and Servlets), to the view (JavaServer Faces), a simple entry point is difficult to find. Enter NetBeans IDE 7.1, which is Oracle’s IDE for the Java Platform, created by the same group of developers who created the Java EE 6 Platform. Here you find tools, templates, and code generators intended to be used in combination with the set of specifications that the Java EE 6 Platform encompasses.”

After offering a tour of the NetBeans IDE 7.1 tools that support Java EE 6, Wielenga ends on a cautionary note:

“While code generators and tools such as those described here are great to help you get your feet wet, a danger is that a lot of code is generated that you don't understand and that you therefore do not know how to debug and maintain. The good news is that far less code needs to be generated in Java EE 6 than before, making it far easier to understand and maintain.

Nevertheless, it is advisable to use tools of this kind intelligently. Start small, focusing on specific APIs. Get to know them via the generated code and then slowly extend the application as you become more familiar with the Java EE 6 Platform. Once you are comfortable with the spec, the tools aim to help you become more productive: combining the leanness of the Java EE 6 Platform with the tools in the IDE, you'll be rapidly creating the core of your application.”

Check out the article.

Thursday Mar 01, 2012

NetBeans IDE 7.1.1 Released, with Support for GlassFish 3.1.2

The NetBeans team had a leap day release with NetBeans IDE 7.1.1. An update to NetBeans IDE 7.1, the new release comes with support for GlassFish 3.1.2--another leap day delivery--and the Java ME SDK.

Additional changes in NetBeans IDE 7.1.1 include the integration of recent patches and minor performance improvements. The release is multilingual, with downloads available in English, Brazilian Portuguese, Japanese, Russian, and Simplified Chinese.

 There are two ways to get the new changes:

  • To get the integration of recent patches without GlassFish 3.1.2 or the Java ME SDK: Launch your current installation of NetBeans IDE 7.1, and an update alert will appear. Click the notification box to install the updates. OR to perform the update manually, select Tools-->Plugins-->Reload Catalog (Updates Tab).

 What's on your mind? Join the NetBeans team on Twitter, Facebook and Google+ and let's discuss!

Original news item

Thursday Jan 05, 2012

NetBeans 7.1

The NetBeans community is proud to announce the release of NetBeans IDE 7.1.

This release introduces support for JavaFX 2.0 by enabling the full compile/debug/profile development cycle for JavaFX 2.0 applications. NetBeans IDE 7.1 also provides significant Swing GUI Builder enhancements, CSS3 support, and tools for visual debugging of Swing and JavaFX user interfaces. Additional highlights include Git support integrated into the IDE, new PHP debugging features, various JavaEE and Maven improvements, and more.

"The latest NetBeans IDE release provides the Java developer community with many new features to help them create leading-edge Web, mobile and enterprise applications,” said Ted Farrell, chief architect and senior vice president, Tools and Middleware, Oracle. “As the first IDE to support JavaFX 2.0, NetBeans IDE 7.1 not only gives developers rich support for developing JavaFX 2.0 applications, but also ensures they have access to all of the advances delivered in the latest Java platform releases.”

NetBeans IDE 7.1 is a free, open source IDE available for Windows, Mac, Solaris, and Linux that enables developers to rapidly create Web, enterprise, desktop, and mobile applications for the Java platform. Download.

Friday Dec 16, 2011

Spring to Java EE Migration, Part 2 (technical article)

In part two of a four-part article series on otn/java, “Spring to Java EE Migration, Part 2,” CTO and Java EE expert David Heffelfinger elaborates further on how easy it is to develop the data layer of an application using Java EE, JPA, and the NetBeans IDE instead of the Spring Framework.

Part 1 began with a Java EE rewrite of Spring's Pet Clinic sample application and developed the persistence layer of the application using Java Persistence API (JPA) 2.0, using NetBeans to generate most of the persistence layer from an existing database schema. Heffelfinger analyzed the generated code, which employed advanced JPA features.

In part 2, he continues this process by developing Enterprise JavaBeans (EJB) 3.1 session beans that act as Data Access Objects (DAOs), as well as JavaServer Faces (JSF) 2.0 managed beans and pages. Readers get to see the generated code in action and are given a look under the hood to see what’s going on.

Heffelfinger concludes Part 2 with a look ahead to Part 3:

“In the next installment of this series, we will modify the generated code to make it a bit more user friendly and we will compare the Java EE and Spring versions of the Pet Clinic application.”

Read the complete article here.

Wednesday Nov 30, 2011

The Home Stretch: NetBeans IDE 7.1 Release Candidate

NetBeans IDE 7.1 Release CandidateThe first release candidate build of NetBeans IDE 7.1 is live and available for download, which means the big release (GA) is expected any day soon.

NetBeans IDE 7.1 delivers support for JavaFX 2.0, enabling the full compile, debug and profile development cycle for JavaFX 2.0 applications and keeping developers in sync with the latest from the Java platform. Beyond JavaFX support, 7.1 also provides significant Swing GUI Builder enhancements, CSS3 support, and visual debugging tools for JavaFX and Swing user interfaces. And Git--a much anticipated featured--has been integrated into the IDE.

"The entire NetBeans team is tremendously excited about this release, which provides developers with more state-of-the-art tools for building front-end clients," says NetBeans Engineering Director John Jullion-Ceccarelli.

"Whether you are doing JavaFX, HTML5, Swing, or JSF, NetBeans 7.1 will let you quickly and easily develop great-looking and full-featured clients for your Java or PHP-based applications."

But there's one more task to check off before the general availability: The NetBeans team has launched a Community Acceptance Survey to get user feedback about the release candidate.

Download the RC build, test it and take the survey to let the team know if NetBeans IDE 7.1 is ready for its debut!

Monday Oct 03, 2011

Download NetBeans IDE 7.1 Beta with JavaFX 2.0 Support

NetBeans IDE 7.1 Beta debuts on the first day of JavaOne 2011 as the only IDE with support for JavaFX 2.0. Using 7.1 Beta and the JavaFX 2.0 SDK, developers can experience the full compile/debug/profile development cycle for JavaFX applications.

NetBeans IDE 7.1 Beta also features support for CSS3; improvements to the Swing GUI Builder; a Visual Debugger for Swing and JavaFX UIs; integrated Git support; PHP, Java EE and Maven enhancements, and more.


New Tutorials for NetBeans 7.1 Beta:

Setting Up NetBeans IDE With JavaFX 2.0

Git User Guide

The final release of NetBeans IDE 7.1 is planned for Fall 2011. The Beta release is is available in English, Brazilian Portuguese, Japanese, Russian, and Simplified Chinese. Visit the NetBeans IDE 7.1 New and Noteworthy page for additional information and development updates.

Wednesday Aug 24, 2011

Survey: NetBeans IDE 7 - Yea or Nay?

The headline says it all: The NetBeans team wants to know how the NetBeans IDE 7.0 or its recent update release 7.0.1 is working out for you.

Are you satisfied with the start up time? How would you sum up your coding experience with PHP, Maven, JDK7 and so on? What would you like to see in future releases? Let us hear it!

The survey should only take about 3-5 minutes to complete.

NetBeans IDE 7 Satisfaction Survey

Monday Aug 01, 2011

NetBeans IDE 7.0.1 Now Available for Download

The NetBeans Team has released NetBeans IDE 7.0.1, with full support for the official release of the Java SE 7 platform.

An update to NetBeans IDE 7.0, this release includes the following notable changes:

  • Full JDK 7 support: Running NetBeans IDE on top of JDK 7, and support for the final version of the JDK 7 language features
  • Integration of recent patches
  • Performance improvements
To get the recent changes:
  • Download NetBeans 7.0.1 OR
  • If you already have NetBeans IDE 7.0 installed, launch the IDE and an update notification will appear. Click the alert-box to install the updates.
NetBeans IDE 7.0.1 is available in English, Brazilian Portuguese, Japanese, Russian, and Simplified Chinese.

Wednesday Jul 27, 2011

NetBeans Active Users are One Million Strong!

NetBeans has come a long way since its start as a student project in 1996. Today, the NetBeans team announced a big milestone: 1 million active users regularly using the NetBeans IDE each month!

Read the official news: NetBeans Announces 1,000,000 Active Users


Insider News from the Java Team at Oracle!

javeone logo


« April 2014