Author: johnny

  • GWT MVP Development with Activities and Places

    There is amazing tutorial for MVP on Google pages it is called: GWT MVP Development with Activities and Places. There is also zip file with code to download. I use Linux Mint, Eclipse 3.6 Helios and GWT 2.2 and those files could not be easily imported into my workspace. That is why I took those classes and copied them into new project Hellomvp2 for mine environment. You can get that code below. I really recommend this tut. You will learn about features of GWT since GWT 2.1:

    • GWT activities
    • GWT places
    • GWT eventBus
    • GWT clientFactory
    • GWT browser history support

    hellomvp2.tar
    PS. Another amazing place to read about MVP is gwt-presenter examples and David Chandler’s blog
    PS2. Another amazing gwt-mvp-sample to check.
    PS3. And of course the most obvious one Large scale application development and MVP
    PS4. GWT examples

  • Oracle’s Glassfish Building Web Applications with Java EE 6

    Here is interesting video from January 2011 Building Web Applications with Java EE 6 recorded by oracle’s employee. This look like oracle is doing fine with glassfish. Except Arun Gupta, Alexis Moussine-Pouchkine did fine job with this vid. The most interesting thins from this example are :

    • RESTful resources with JAX-RS 1.1
    • CDI 1.0 (context dependency injection)
  • Simple panel for maintain department

    Hi. This time I’ve got the mission to make a simple panel for our maintain department. Guys would test some process if is working fine on a few different machines. Simple as that. I’ve choose a JSF 2.0 as it is the most obvious choice. I gave myself  15 minutes each tut to sneak peek on

    I’ve started my pomodoro and fired up!
     

  • Unit testing EJB 3.1 in Netbeans 6.9.1


    Unit testing EJB 3.1
    I was talking to one of my friends (spring is always better then anything – type) and he was laughing that there is a serious problem with testing EJB. So I found a tutorial on you tube that is simply obvious feature and all you need to do is to import glassfish embedded ejb container to the project to make use of some ejb container libraries I suppose. After that it is *as normal* easy to write junit test. I’ve created example screencast of this tutorial on my mint linux distribution. I hope it will be visible for you. (doint this with netbeans 6.9.1 and glassfish 3.0.1 is even easier because you have already already Glassfish 3 server embedded container already in your testing libraries)

  • Java maven and cobertura

    Cobertura is test code coverage tool. It’s free and it does job well. I tried it with projects compiled with Ant. There a few good tuts on web how to do it. And I tried it with maven. It’s even easier, you just need to put a simple entry into your pom.xml file. Something like

        <reporting>
            <plugins>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>cobertura-maven-plugin</artifactId>
                    <version>2.4</version>
                </plugin>
            </plugins>
        </reporting>

    And there is a worth tip to remember (because I had problem with cobertura it simply didn’t count and raport, coverage was always zero)
    Uncheck option for maven “skip test ” in your favorite IDE – mine is netbeans. (For developing without testing as I did I’ve turned it off. Then I wrote junits and was firing test by hand without unchecking the box)