ZK NB Plugin News

10 11 2009

As expected, as a matter of not even days, the Netbeans plugin for ZK 3.6.3 was released. Download it from sourceforge.net.

You might also notice they released a plugin for the release candidate of ZK5 (which you find in the same download section). Though the plugin creates a J2EE 1.4 web application, it might be worth installing to test the features of the upcoming version.





ZK 3.6.3 with Netbeans 6.8 Beta on Glassfish V3

6 11 2009

I am using Netbeans 6.8B for a few days and mainly testing if my existing JEE5 projects can be opened, deployed and executed on GF3. I am using ZK as Web/Ajax Framework. Usually the ZK team releases a new NB plugin to help you to create ZK based Java Web projects. Currently the plugin supports 3.6.2, some days back ZK 3.6.3 was released, so I guess in a few days time we will have a 3.6.3 plugin. The plugin creates a skeleton for a JEE5 webproject and I doubt they will support Java EE6 before EE6 is finally released (December?).

I was curious to see if I get the latest ZK running on GF V3 as a JEE6 application.

Part 1: ZK 3.6.2 with Netbeans 6.8B as EE5 Web Project

First, lets try first to add the 3.6.2. plugin to NB 6.8B

SVH20091105_001

ZK plugin 3.6.2

Read the rest of this entry »





Release Fever Update

5 11 2009

Quite a number of new releases (that bother me) hit us the last few days (weeks) and more to come.

  • Ubuntu 9.10 (the broken Koala) (link)
  • Netbeans 6.8 BETA (link)
  • Java EE6 in NB 6.8B (official release eventually in December) (link)
  • ZK 3.6.3 (link)




Tutorial: Getting started with Netbeans and JUnit plus Cobertura and Hudson (Part 3)

26 09 2009

Following part 1 and 2 which covered the JUnit test class creation and the coverage evaluation by Cobertura, we will add in part 3 another dimension: Automation. So far we run the tests manually, but we want to achieve a continuous integration and test environment.

Part 3 (Cobertura and Hudson)

Preparation:





Tutorial: Getting started with Netbeans and JUnit plus Cobertura (Part 2)

25 09 2009

Following part 1 which covered the class and JUnit class creation and ended in a suspected successful test.

Part 1 (covering Cobertura setup and execution)

Preparation:





Tutorial: Getting started with Netbeans and JUnit plus Cobertura (Part 1)

25 09 2009

I believe strongly in testing. I saw companies and products without any automatic test frameworks and the slightest change to the codebase (often in the urgent ‘we-need-to-fix-it-now-and-give-to-the-customer-in-1hr’ mode) made parts of the product or modules prone to crashes because no one could test the changes against the complete application. In my current endevour to create a new product we embrace testing, though we dont practice TDD (test-driven-development), but at least we maximize the amount of automatic testing with tools/frameworks like Netbeans, Hudson, Cobertura and others. If you dont practice TDD, how can you judge how much of your codebase is really tested, even you assume all you business testcases are covered ?

The other day Code Coverage crossed my way (Thanks Chris!). Eager to find out how to “do it” or to “use it” I found a few tools suitable for the Netbeans environment. It actually drilled down to only one tool: Cobertura. It fits exactly into our landscape using Netbeans and Hudson and it is opensource.
To get started with Cobertura you should be familiar (a bit) with Netbeans, JUnit and Ant. The Cobertura website offers sufficient reference for all functions and introduction to get you started. But what I missed is a tutorial the start from the scratch using Netbeans and Cobertura. I found 3 references (I will add them at the end,) which are not complete or just not working for me), so let me share the most basic getting-started steps with you.
Please note: This is how I get started, it might not be complete, foolproof or even correct in all details. Please feel free to comment, correct or give other feedback !

Read the rest of this entry »





Book Review: Java EE 5 Development with NetBeans 6

5 08 2009

Java EE 5 Development with NetBeans 6
David R. Heffelfinger
Packt Publishing
www.packtpub.com
ISBN 978-1-847195-46-3

The JAVA bookshelf offers a myriad of titles on almost any given topic, frameworks, tools, plugins or any available IDE. Most of the JAVA EE titles I know, are thick compendiums which go way beyond the level of knowledge you really need in practice, or are of a very theoretical nature. Often they are not pointing to specific products or versions (IDE, applicationserver or DB), eventually only giving some generic directions on how to use them. Someone who is not yet an expert in the EE environment, struggles to get the samples and sourcecode snippets in their choice of IDE and applicationserver up and running.

Other for this title, it guides the reader through the whole lifecycle of Java EE development, inclusive of the basic installation and configuration of Netbeans (6.5B, the actual version at the time of writing the book) and Glassfish in an illustrated step-by-step fashion. What I really like about his book, is the coverage of the most important aspects of the Java EE development in this sample-driven approach. You dont need necessary all the knowledge you gain from the book, as some frameworks abstract away a lot of the details, but is more than viable to to know whats going on under the hood and even more as some of the modern frameworks are only sitting on top of it. The book won’t teach you all details either, but it serves as a good starting point.

A short overview over the chapters and covered topics:

Chapter 1 supports the reader in getting Netbeans with Glassfish installed and running.
Chapter 2 starts with plain JSP development, it runs you through the creation of JSP pages and Servlets, JSP fragments, basic security and introduce you to the HTTP Monitor.
Chapter 3 looks at enhancing JSP pages with JSTL tags (for, choose, foreach), JSTL SQL tags (in case you require some hardcoded quick and dirty db-linked pages) and custom JSP tags. Basic understanding of tag libraries helps in more complex environments is essential.
Chapter 4 introduces into the more visual creation of JSF pages, also covering page flow and validation.
Chapter 5 gives a glance at JPA as a major improvement compared with the old way of creating entity beans and riding on additional relational mapping API’s. The chapter also covers Named queries, JPQL, table relationships and the various ways to creating JPA entity from the database and vice versa using the various little wizards that Netbeans has to offer. A complete sample rounds up the chapter with the automatic creation of JSF pages.
Chapter 6 is an extension to chapter 4 and servers more sophisticated samples for the visual creation of JSF pages including database binding and ajax functionality.
Chapter 7 pushes forward right into the heart of Java enterprise applications, the EJB’s. Even impossible to give a comprehensive overview though, this chapter offers a fairly good start into the complex topic with session beans and DAO design patterns provided by Netbeans.
Chapter 8 gives a quick glance at JMS, Java’s messaging service, which is hardly covered by any book with runnable samples but theoretical descriptions. Key to understand this for any communication to the outside world.
Chapter 9 get us started with Webservices as an core engine of web technology, interoperability and the cloudspace.
Chapter 10 summarize all the previous chapters by assembling a complete enterprise application with EJB module and web application.

I recommend the book as a starting point into the world of Web and Enterprise Applications with Netbeans. Even newer versions of the IDE are available now and Java EE 6 is around the corner, the basics, as you setup your knowledge foundation with this book, wont change. With the tools of the trade you learn to use here, you can continue your reading journey with other more detailed books. I wish I had the book while I was picking up Java EE, instead of wading through compendiums and dry theory material.

The sourcecode is available for download at the publishers website, ready for you to open in Netbeans. I still prefer sometimes hacking code from books line by line, it teaches you more while doing it, other than just blindly looking at code and run it.

Having a nice budget for books, I accumulated a collection of books touching a variety of IT topics, from coding to IT project management.
The development related books usually have 2 problems:
- They are (sometimes) outdated the moment you read them due to the cycle between the time the author writing the title and the versions of a product he refers to, it gets reviewed, edited and published and the time you hold in your hands.
- They are expensive. Sometimes you find information of similar quality, maybe not as combined as a book, in the web, as long you can find the right website or blog.

I recommend looking at the packt books, most of them are available as pdf at a reasonable price (cheaper than the paperversoin of the same). They come with the big advantage that you can carry as many pdf books along as you want. And if you feel the urge to, you can print (parts of) it to read – sometimes reading from paperware is more relaxing than staring at a screen though.





News: Netbeans, Groovy

5 08 2009
  • Netbeans 6.8 M1
    The first stable milestone is available for download. The first version being more EE6′ish with JSF 2.0, JPA 2.0 and finally a build-in browser. Of course there is more stuff in the box, so find infos on feature and download at Netbeans.org.
  • Groovy 1.7
    We can look forward to get our hands on 1.7 soon, beta version is available for download. For production a stable 1.6.4 is released with minor bug fixing. Find info and downloads at codehaus.org




News: Netbeans 6.7, ZK

30 06 2009
  • Netbeans 6.7
    Finally the production version was released. With some great new features like Hudson,Kenai Integration  and Load-on-demand, Fullscreen-mode and many more, a major step forward for the Netbeans community. More infos and download at netbeans.org (link)
  • ZK 3.6.2
    With a few days delay after releasing the latest version 3.6.2, the newest Netbeans plugin is available as well. Download at sourceforge.net (link).




News: Netbeans, Glassfish, EE6

13 06 2009
  • Netbeans RC2
    The second release candidate is available for download. Download at Netbeans.org (link) We should he seeing the final release soon in June.
  • EE6 Preview SDK
    Glassfish V3 preview comes together with samples and tutorials giving a preview on the upcoming EE6. Still most of it is based on JSR’s that are not final yet.
    Some feedback from JavaOne regarding release dates on Jim Whites’s Blog (link)