Česky   |  Deutsch   |  English   |  Español   |  Français   |  Indonesia   |  日本語   |  한글   |  Polski   |  Português (BR)   |  Türkçe   |  中文   |  正體中文   |  Your Language  
PlanetNetbeans
Planet NetBeans is an aggregation of NetBeans related musings from all over the Blogosphere.
Feeds
[RSS 1.0 Feed] [RSS 2.0 Feed]
[FOAF Subscriptions] [OPML Subscriptions]
Do you blog about NetBeans ? Add your blog to PlanetNetBeans.
Feed Subscriptions
NetBeans Zone - The social network for developers (feed)
APIDesign - Blogs (feed)
Pandaconstantin (feed)
blogtrader - Blog (feed)
David R. Heffelfinger (feed)
Carsten Zerbst's Weblog (feed)
Winston Prakash's Weblog (feed)
markiewb's blog (feed)
Michael's blog » NetBeans (feed)
Gualtiero Testa » Netbeans (feed)
James Selvakumar's Blog » netbeans (feed)
nB gUru » NetBeans (feed)
Newsintegrator Blog » netbeans (feed)
Praxis LIVE » NetBeans (feed)
ProNetBeans (feed)
TechAshram » NetBeans (feed)
There's no place like 127.0.0.1 » Netbeans (feed)
Paulo Canedo » NetBeans English (feed)
Anchialas' Java Blog (feed)
Need to find a title (feed)
Category: NetBeans | Software and Science (feed)
Roger Searjeant's blog (feed)
Optonline Webmail (feed)
Allan Lykke Christensen » NetBeans (feed)
Inspiration and Expression » Netbeans (feed)
John O'Conner » NetBeans (feed)
Koberoi Oracle (feed)
Adam Bien (feed)
Ignacio Sánchez Ginés » NetBeans (feed)
Bernhard's Weblog (feed)
Michel Graciano's Weblog (feed)
Ramon.Ramos (feed)
Ozone and Programming » netbeans (feed)
NetBeans Ruminations » NetBeans (feed)
Tiplite » netbeans (feed)
Bistro! 2.0 (feed)
Arun Gupta, Miles to go ... (feed)
Geertjan's Blog (feed)
.JARa's Bilingual Weblog (feed)
JavaFX Composer (feed)
The Java Jungle (feed)
Jesse Glick (feed)
Martin Grebac (feed)
The NetBeans Community Podcast (feed)
NetBeans Profiler (feed)
NetBeans for PHP (feed)
NetBeans Web Client (feed)
Rechtacek's (feed)
Virtual Steve (feed)
My First Blog - Satyajit Tripathi (feed)
The Aquarium (feed)
Tinuola Awopetu (feed)
Insert Witty Irony Here (feed)
mkleint (feed)
Anuradha (feed)
Netbeans6/6.5 my best practices (feed)
Java Evangelist John Yeary's Blog (feed)
Neil's Dev Stuff (feed)
Computer says null; (feed)
NetBeans Adventures, Java and more (feed)
NetBeans Community Docs Blog (feed)
The Netbeans Experience (feed)
NbPython/ jpydbg / pymvs (feed)
Shanbag's Blog (ರಜತ ಲೋಕ) (feed)
Wade Chandler's Programming Blog (feed)
Big Al's Blog (feed)
Code Snakes (feed)
In perfect (spherical) shape (feed)
Van Couvering Is Not a Verb (feed)
Diego Torres Milano's blog (feed)
Vroom Framework (feed)
Messages from mrhaki (feed)
Jeff's Blog (feed)
Manikantan's Netbeans (feed)
Oliver Wahlen's Blog (feed)
Shuttle between Galaxies (feed)
Welcome to my live... (feed)
Netbeans IDE Blog by Tushar Joshi, Nagpur (feed)
Devel Blog (feed)
diamond-powder (feed)
Antonio's blog (feed)
Where's my Blog?!

Powered by:    Planet

Last updated:
September 14, 2014 10:06 PM
All times are UTC

Sponsored by
sponsored by Oracle

visit NetBeans website
Adam Bien - September 13, 2014 04:30 PM
Java EE Maven Archetype (BCE / ECB) v0.0.4 - EntityManager Mocking and System Test

The 0.0.4 version of Java EE Maven Archetype comes with JPA EntityManager mocking example and dedicated JAX-RS system tests.

Execute the javaee-bce-archetype archetype from the command line and choose version v0.0.4 to create a sample Java EE project with Boundary / Control / Entity (BCE) structure, unit-, integration-, stress-, and system tested:


mvn archetype:generate -Dfilter=com.airhacks:javaee-bce-archetype

The sources of the sample project are also available directly: https://github.com/AdamBien/javaee-bce-pom.

Thanks Dirk Franssen for the pull request!

See you at Java EE / HTML 5 workshops at Airport Munich and each first Monday of the month at 6 P.M. (CET) airhacks.io


Real World Java EE Workshops [Airport Munich]>

Adam Bien - September 12, 2014 05:02 AM
WildFly, Bower, Karma, RequireJS or NetBeans 8.0.1

NetBeans IDE 8.0.1 is available for download and contains:

  1. Modularity and enterprise features for JavaScript via RequireJS
  2. Support for debugging JavaScript files with Karma
  3. Node.JS and Bower modules can be installed directly within the IDE
  4. Grunt tasks available in the popup menu for web projects
  5. Built-in support for: GlassFish 4.1, Tomcat 8.0.9, WildFly, and WebLogic 12.1.3
  6. Latest PrimeFaces framework bundled in the IDE
  7. GIT and Java tools improvement

All the features above are available without any additional plugin :-)

See the entire feature list.


Real World Java EE Workshops [Airport Munich]>

Michael's blog » NetBeans - September 11, 2014 08:29 PM
NetBeans 8.0.1 translated

Looking for a French, Spanish, German or other translation? Just a few days after its release, NetBeans 8.0.1 is available for a couple of different languages [1].   [1] http://bits.netbeans.org/netbeans/8.0.1/community/

Geertjan's Blog - September 11, 2014 08:10 PM
JerseyFaces, DukeScript, and NetBeans!

Think about names like 'DukeScript' and 'JerseyFaces'... and suddenly you understand the name 'NetBeans'. Jaroslav Tulach is the guy behind these technologies, as well as their names. I've known Yarda for about 10 years at this stage. His key contribution to the developer community is that he's very inspired in connecting and, even, rejuvenating one technology to and, in the light of, some other technology.

In the case of 'DukeScript', he wants to put the Java, i.e., 'Duke', into JavaScript, i.e., 'Script'. In the case of 'JerseyFaces', he wants to provide a 'Jersey' back-end to a front-end, i.e., 'Faces', consisting of HTML:

<span id="XinhaEditingPostion"></span><span id="XinhaEditingPostion"></span>

And what about 'NetBeans'? Here, Jaroslav Tulach, and those around him, wanted to put JavaBeans (i.e., 'Beans') onto the 'Internet', i.e., 'Network', i.e., 'Net'. Networked-JavaBeans. OK, how that relates to NetBeans IDE as we know it today, is a mystery, but who knows, maybe one day you'll find NetBeans in a browser, of some kind, and then the promise of 'NetBeans' will have been fulfilled!

In the meantime, wactch the movie above, and learn from the latest and greatest attempt to avoid JavaScript in the browser. Forget, for a moment, Vaadin's attempt to hide JavaScript from the programming model, as well as comparable attempts made by PrimeFaces and Wicket, and learn from the genius, yes, genius, behind NetBeans to see what the future can bring to your development efforts. And the future starts today, of course.

Adam Bien - September 11, 2014 04:06 AM
HTML5, WebSockets and Java EE 7 -- Screencast

A simplest possible example for HTML - Java EE 7 communication using WebSockets.

See also other screencasts at: http://tv.adam-bien.com or subscribe to http://www.youtube.com/user/bienadam.

See you at Java EE Workshops at Munich's Airport, particularly at the Java EE User Interfaces or / and Java EE 7 and HTML 5 workshops!


Real World Java EE Workshops [Airport Munich]>

APIDesign - Blogs - September 10, 2014 06:56 PM
JavaOne2014: Need Speakers for My Session!

JavaOne2014 is around the corner and my sessions have been scheduled. I start with a BOF on Monday evening called Virtually Inside-Out! - it is going to be discussion between authors of alternative JVMs. So far we are two: I have mine Bck2Brwsr and Niklas has RoboVM.

Don't you know a developer working on own JVM who will be at JavaOne2014? If so, please tell him to contact me and stop by! I plan to make the BOF a lively chat (how did you implemented lambdas?, how did you implemented defender methods?), but in case we don't have a topic to talk about, I am ready to explain why value classes should not be in JVM and why InvokeDynamic is a completely stupid idea. Anyone from JDK team to defend these proposals?

On Tuesday morning Toni and me will continue with DukeScript tutorial. In case you use Java and want to learn how to code for iOS, Android, JavaFX and browsers, stop by. We will help you create your first application that is written once and displayed anywhere!

I'll finish on Tuesday noon talking about API Design checklist. I'd like to name at least ten things one should check for, but so far I have about two. Don't you have any idea what could be in such checklist? If so, please talkback!

--JaroslavTulach 18:56, 10 September 2014 (UTC)

NetBeans Zone - The social network for developers - September 10, 2014 12:24 PM
NetBeans IDE 8.0.1 Now Available for Download

The NetBeans Team has released NetBeans IDE 8.0.1, with significant enhancements to features relating to HTML5, JavaScript, and CSS3.An update to NetBeans IDE 8.0, this release includes the following notable changes: Preview Text:  NetBeans IDE 8.0.1 has been released! Legacy Sponsored:  ...

Adam Bien - September 10, 2014 10:58 AM
GlassFish 4.1 Is Ready For Download

GlassFish 4.1 is available for download.

Checkout the release notes for fixes / features.

See you at Java EE Workshops at MUC Airport or on demand and in a location very near you: airhacks.io!


Real World Java EE Workshops [Airport Munich]>

Geertjan's Blog - September 10, 2014 07:00 AM
NetBeans IDE 8.0.1 Now Available for Download

NetBeans IDE 8.0.1 is here!

Michael's blog » NetBeans - September 09, 2014 09:52 PM
NetBeans 8.0.1 available

The latest version of NetBeans is available for download now [1]. For more information read the New and Noteworthy page [2].   [1] https://netbeans.org/downloads/ [2] http://wiki.netbeans.org/NewAndNoteworthyNB801

Geertjan's Blog - September 09, 2014 08:23 PM
JCrete -- the Movie

I ranted and raved about JCrete recently... and here's the evidence by Maxi, Heinz's son:

Click to see the movie above!

NetBeans Zone - The social network for developers - September 09, 2014 10:25 AM
NetBeans Weekly News (Issue #656 - Sep 9, 2014)

Community YouTube Interviews on NetBeans Day 2014 NetBeans Day 2014 is around the corner, it will be held on Sunday, September 28th in San Francisco. Find out who will be speaking there, via a series of very short YouTube clips introducing you to key speakers who you can meet at NetBeans Day. Preview Text:  In this issue: An introduction to the...

Geertjan's Blog - September 08, 2014 07:00 AM
Knockout Client Generator for RESTful Web Services

NetBeans IDE has heaps of wizards. One of the ones I like the most is "RESTful JavaScript Client", which generates a JavaScript front-end for a RESTful Web Service you select in the IDE. Unfortunately, the client code is based on Backbone.js, which was popular a year or two ago, while right now Knockout and Angular appear to be more popular. I created an issue to make this wizard pluggable, so that the data could be exposed in some way, enabling anyone to create templates using the framework of their choosing. There should be a drop-down where anyone should be able to plug in the name of their framework and then, when the user chooses the name, a set of templates provided by the plug in should be used to generate the JavaScript front-end.

Until that issue is evaluated and fixed, I created my own RESTful JavaScript client generator, which is based on the standard one in the IDE. It is called "RESTful Knockout Client" and you can see it below:

Right now, it is hardcoded for Knockout, though I want to make it generic and pluggable, as described above. When it is selected and Next is clicked, you can type in the name of the JavaScript file that will be generated, while you can also specify that the Knockout.js libraries should be added to the sources of your project.

When Browse, next to "REST Project Resource", is clicked above, you can browse the RESTful Web Services available in the IDE, as shown below.

When you have selected a RESTful Web Service, you'll see it named in the dialog, together with the related database table name, as shown below.

Click Next and then you can specify that an HTML file should be created, which will contain references to the various JavaScript files, as well as HTML tags for rendering the data provided via Knockout.

Click Finish and then your project structure will be as follows. In other words, everything is exactly the same as "RESTful JavaScript Client", except that different files are generated at the end, i.e., the wizard and all its steps are identical to "RESTful JavaScript Client".

At the start of this sequence, there were no files in the project. Now, the jQuery and and Knockout libraries are added, as well as the customers.js and customers.html file, as defined above. 

The customers.js file has this content, all generated, nothing tweaked afterwards:

MyCustomerViewModel = function() {
    var self = this;
    self.items = ko.observableArray();
    $.getJSON("http://localhost:58844/CustomerManager/webresources/customers/").
            then(function(customers) {
                $.each(customers, function() {
                    self.items.push({
                        city: ko.observable(this.city),
                        phone: ko.observable(this.phone),
                        name: ko.observable(this.name),
                        addressline2: ko.observable(this.addressline2),
                        creditLimit: ko.observable(this.creditLimit),
                        addressline1: ko.observable(this.addressline1),
                        state: ko.observable(this.state),
                        fax: ko.observable(this.fax),
                        email: ko.observable(this.email),
                    });
                });
            }); 
};
ko.applyBindings(new MyCustomerViewModel());

And here's the customers.html file, again, nothing tweaked, everything exactly as generated:

<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <table border="1">
            <thead>
                <tr>
                    <th>CITY</th>
                    <th>PHONE</th>
                    <th>NAME</th>
                    <th>ADDRESSLINE2</th>
                    <th>CREDITLIMIT</th>
                    <th>ADDRESSLINE1</th>
                    <th>STATE</th>
                    <th>FAX</th>
                    <th>EMAIL</th>
                </tr>
            </thead>
            <tbody data-bind="foreach: items">
                <tr>
                    <td data-bind="text: city"/>
                    <td data-bind="text: phone"/>
                    <td data-bind="text: name"/>
                    <td data-bind="text: addressline2"/>
                    <td data-bind="text: creditLimit"/>
                    <td data-bind="text: addressline1"/>
                    <td data-bind="text: state"/>
                    <td data-bind="text: fax"/>
                    <td data-bind="text: email"/>
                </tr>
            </tbody>
        </table>
        <script src='js/libs/jquery/jquery.min.js'></script>
        <script src='js/libs/knockout/knockout-min.js'></script>
        <script src='customers.js'></script>
    </body>
</html>

I don't know enough about Knockout yet to turn the generated code into a CRUD application. If someone can help me with that, that would be great.

Ultimately, though, this will be a cool way to quickly bootstrap a new Knockout codebase that needs to interact with a RESTful backend. Anyone interested in this plugin, or in working with me on it, let me know.

Adam Bien - September 06, 2014 05:27 PM
Recordings Of The 6th Airhacks Q&A

Thanks for watching live (79 attendees), all the interactions, particularly from the IRC #airacks channel and twitter.

Any questions left? Then join the conversation at each first Monday of the month at 6 P.M. live. No registration or any other commitment required.

Also checkout: "Timisoara JUG Session: Hacking Opinionated JavaFX / Java 8 Apps" at 16th October, 5.30 P.M CET: http://www.ustream.tv/channel/adambien.

See also other screencasts at: http://tv.adam-bien.com or subscribe to http://www.youtube.com/user/bienadam.

See you at Java EE Workshops at MUC Airport or on demand and in a location very near you: airhacks.io!


Real World Java EE Workshops [Airport Munich]>

Geertjan's Blog - September 06, 2014 11:00 AM
Trancestris: Translation Tool on the NetBeans Platform

Very interesting. The team behind Ancestris, the genealogy app I highlighted yesterday, have developed a tool named Trancestris to help translate the resource files used by Ancestris.

Trancestris is, itself, a NetBeans Platform application too. Apparently, it is very easy to use it, and it is available for Windows, Mac OSX, and Linux users. 

Read all about it here.

Would be extremely interesting to find out whether this tool could be used generically, e.g., to translate NetBeans IDE, for example, or any other application created on the NetBeans Platform. From the screenshot, it would appear that one registers a ZIP file containing sources of a NetBeans Platform application and that then all the bundle files are exposed. A nice task for someone to investigate would be to take a look at this and try it out with a ZIP containing the NetBeans sources! 

NetBeans Zone - The social network for developers - September 05, 2014 09:00 AM
Bilal Kathrada: Why NetBeans IDE is Great for Teaching Java

We've now met several teachers using NetBeans IDE in the classroom: Michiel Noback (Netherlands), Zoran Sevarac (Serbia), 

Geertjan's Blog - September 05, 2014 07:00 AM
Ancestris: Parallel NetBeans Universe

What I find really cool about NetBeans Platform applications is that, when I first discover them–with their familiar-ish looking application, community, and plugin ecosystem–it feels like stepping into a parallel universe. All along, there's been a constellation of stars that have been blinking quietly in very similar fashion to my own, in a different galaxy, with a set of aliens that look very similar to me. That's especially the case when it hasn't happened in a while and when the application in question is as interesting as the one I came across today:

Never heard of it before! And only 'discovered' it because someone sent an e-mail to ask about helping to translate it further and needing the location of some string keys deep inside NetBeans to do so. 

Go here to find out about this amazing genealogy application:

http://www.ancestris.org

It has its own community, plugin ecosystem, and friendly development team. Amazing, this parallel universe that's existed all this time and I never knew about it. There are many similar ones to be read about here.

NetBeans Zone - The social network for developers - September 05, 2014 05:00 AM
I Would Like Better AppServer Support in Intellij IDEA

Believe it or not, but I’ve been using Intellij IDEA for more than 10 years (I think it was back in 2003) and I love it ! Because of that, at each conference I go, I usually pay a visit to the JetBrains booth and chat with the guys. Mostly to tell them how good their products are, but also to give them some ideas about possible improvements (I’ve already told them that using...

Adam Bien - September 05, 2014 04:24 AM
Java 8 + Java EE 7: POJO to JsonObject Conversion

With Java 8 a java.util.List of domain objects can be easily converted into a javax.json.JsonArray using a Collector created by the Collectors utility. javax.json.JsonObject and javax.json.JsonArray have to be created with the corresponding builder, what makes a Collector implementation necessary:


 public JsonArray allAsJson() {
		
        Collector<JsonObject, ?, JsonArrayBuilder> jsonCollector
                = Collector.of(Json::createArrayBuilder, JsonArrayBuilder::add,
                        (left, right) -> {
                            left.add(right);
                            return left;
                        });
        return all().stream().map(Registrations::convert).
                collect(jsonCollector).build();

    }
	
    static JsonObject convert(Registration registration) {
        return Json.createObjectBuilder().
                add("price", registration.getTotalPrice()).
                add(CONFIRMATION_ID, registration.getId()).build();
    }


The snippet above is a part of the https://github.com/AdamBien/javaee-bce-archetype Java EE 7 / Java 8 sample project and can be easily installed using: mvn archetype:generate -Dfilter=com.airhacks:javaee-bce-archetype.

See you at Java EE Workshops at Munich Airport or on demand and in a location very near you: airhacks.io!


Real World Java EE Workshops [Airport Munich]>

NetBeans Zone - The social network for developers - September 04, 2014 10:59 PM
NSF Fund Awarded to Blind Programming Environment on NetBeans IDE

The University of Washington's Department of Computer Science and Engineering and Disabilities, Opportunities, Internetworking, and Technology (DO-IT) Center in collaboration with the UNLV Department of Computer Science have been funded by the National Science Foundation to undertake AccessCS10K: Including Students with Disabilities in Computing Education for the Twenty-First Century. ...

NetBeans Zone - The social network for developers - September 04, 2014 06:10 PM
Knockout.js Client for Java EE RESTful Web Service

Once a RESTful web service has been published, multiple approaches can be taken to consume the data exposed by the service. Let's take Knockout as a JavaScript framework for consuming a RESTful web service. Here's all that's needed, in a file named 'app.js', to consume a RESTful web service via Knockout. In this case, the RESTful web service provides a 'name' and a 'city' which, below, via...

Geertjan's Blog - September 04, 2014 12:25 PM
JaCoCo, Maven, and NetBeans

I met Marc Hoffmann, the author of the JaCoCo project, at JCrete. I probably asked him the dumbest question ever, so embarrassing that I can only document it here within braces. ("What does 'JaCoCo' actually stand for?"). Putting that awkward moment aside can best be done by showing how awesome JaCoCo support is in NetBeans IDE.

Simply open your POM and stick the below into it:

<build>
    <plugins>
        <plugin>
            <groupId>org.jacoco</groupId>
            <artifactId>jacoco-maven-plugin</artifactId>
            <version>0.7.1.201405082137</version>
            <executions>
                <execution>
                    <goals>
                        <goal>prepare-agent</goal>
                    </goals>
                </execution>
                <execution>
                    <id>report</id>
                    <phase>prepare-package</phase>
                    <goals>
                        <goal>report</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

By the way, notice how helpful code completion is in the POM:

And not only for the version number:

Done the above? Good. While thinking that you've added some tags to your POM file... what you have also done is caused the following menu item to be made visible when you right-click your Maven project:

That "Code Coverage" menu that you see above will only be visible once you have added the JaCoCo plugin to the POM of your project, i.e., by sticking the XML shown about into your POM. Choose "Show Report" above and then the window below opens (click to enlarge it below). Then run your tests, which you can do directly from the window below, and see the results, i.e., the percentage of your code that's covered by your tests:

Next, open your files, and notice the green/red in your code (click to enlarge the image below), as well as the editor bar, if you have "Show Editor Bar" selected.

Now, let's say you want to move from doing code coverage for your Java code to doing it for your JavaScript. That's what the Karma Istanbul project is all about, which is integrated in exactly the same way, minus the Maven, into NetBeans IDE as the above, as described in Karma Istanbul Code Coverage in NetBeans IDE.

That's what's cool about having an integrated development environment, i.e., you can transfer your skills from one technology to the next without changing your toolset.

markiewb's blog - September 03, 2014 09:44 PM
Improved Maven-based NetBeans Platform Application Development using JRebel

Some months ago I already blogged about how to tweak the pom.xml of your Maven-based NetBeans platform application so that you can use JRebel to reload your changes. [1]

This process has been simplified in the meantime. Thanks to Peter Hansson for letting me know.

Steps:

  • Install the JRebel NetBeans IDE Plugin (from the Plugin Center or from your IDE)
  • Make sure “Compile on Save” is enabled for your project.
  • Make sure the “Enable/Disable JRebel” toolbar button is checked.
  • Generate a rebel.xml file: In the context menu of the project choose “Open JRebel panel” and check the checkbox next to your project in the JRebel Panel.
  • Alter the properties section of the pom.xml like this
        <!-- for JRebel 5.x -->
        <properties>
            <!--...-->
            <netbeans.run.params.ide/>
            <netbeans.run.params>-J-javaagent:"${current.jrebel.agent.path}" -J-Drebel.log=true ${netbeans.run.params.ide}</netbeans.run.params>
        </properties>
    
        <!-- for JRebel 6.x -->
        <properties>
            <!--...-->
            <netbeans.run.params.ide/>
            <netbeans.run.params>-J-Xbootclasspath/p:C:\temp\rebelboot.jar -J-javaagent:"${current.jrebel.agent.path}" -J-Drebel.log=true ${netbeans.run.params.ide}</netbeans.run.params>
        </properties>
    

    The NEW and COOL thing is that you do not have to bother yourself with the path of the JRebel jar file anymore. The JRebel NetBeans IDE plugin sets the path to the JRebel jar from your IDE into the Maven property “current.jrebel.agent.path” and you can reuse it in your pom.xml. Now there will be no hardcoded paths anymore, when you check-in your pom.xml to SCM – except the JRebel6 bootclasspath edge-case.

  • run the module – the application with your module and JRebel should start up
  • make changes to your classes and JRebel will pick them up

Here a screenshot to illustrate the previous steps:
2014-09-03_23h34_17

Tested with NetBeans 8.0, JRebel NetBeans IDE Plugin 5.6.2

[1] https://benkiew.wordpress.com/2013/10/27/maven-based-netbeans-platform-development-with-jrebel-6-minor-update/


Geertjan's Blog - September 03, 2014 11:05 AM
Mirah: Statically Typed Ruby

I'd always vaguely heard about Mirah, formerly known as Duby. But nothing like a quick movie to make a new technology crystal clear. As technology movies go, this one is pretty awesome in its clarity and relevance. It was uploaded during the last 24 hours and is really well done. All the key features explained and you also see how and why to mix/match Mirah with Java.

&amp;amp;amp;lt;span id=&amp;amp;amp;quot;XinhaEditingPostion&amp;amp;amp;quot;&amp;amp;amp;gt;&amp;amp;amp;lt;/span&amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;span id=&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;XinhaEditingPostion&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/span&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;

The movie also refers to Codename One and about converting Java code by its lead developer Shai Almog to Mirah. 

The NetBeans plugin for Mirah is here: https://github.com/shannah/mirah-nbm

Read the story behind the NetBeans Mirah plugin here: http://sjhannah.com/blog/?p=331.

Adam Bien - September 03, 2014 06:04 AM
Building Nanoservices with Java 8 and JavaEE 7

Microservices were yesterday. Now talk about nanoservices:

Stay tuned: Picoservices are around the corner! :-)

Thanks to foocafe.org for the invitation and perfect organization!

See you at Java EE Workshops at Munich Airport or on demand and in a location very near you: airhacks.io!


Real World Java EE Workshops [Airport Munich]>

NetBeans Zone - The social network for developers - September 03, 2014 05:00 AM
Java EE Batch Applications in NetBeans IDE

This article demonstrates how to define a simple job (JSR 352) using the jBatch Suite in NetBeans  IDE and how to implement the corresponding batch artifacts.                 Download: http://plugins.netbeans.org/plugin/55031/jbatch-suite  Preview Text:  Batch processing is execution of...

Geertjan's Blog - September 02, 2014 07:20 PM
Lombok, Maven, and NetBeans

Here's a POM that incorporates Lombok:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
  http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.mycompany</groupId>
    <artifactId>BookManager</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.14.4</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
</project>

For adding the Lombok dependency above, you're able to add the @Data annotation from Lombok. The Navigator in NetBeans automatically shows all the getters and setters made available by Lombok, which you don't need to code and maintain yourself because they're not in your code. Click to enlarge the image below.

Now you can use all those getters and setters without ever having coded them, for example:

public class Main {

    public static void main(String[] args) {
        MyBooks mb = new MyBooks(1850, "Tale of Two Cities", "Dickens");
        String title = mb.getTitle();
        String author = mb.getAuthor();
        int year = mb.getYear();
        System.out.println("title = " + title);
        System.out.println("author = " + author);
        System.out.println("year = " + year);
    }

}

Use code completion in the version element of the POM to check what the latest Lombok JAR version is:

In the Services window, you can explore the Maven repo:

In "Local" above, after building the project which downloads the dependencies you've declared, you'll find the Lombok JAR declared in the POM:

In "Central Repository", you'll find all the Lombok JARs, which explains the code completion results, i.e., that's where they come from:


Simple, smooth, intuitive integration of Maven, and from Maven to Lombok, in NetBeans IDE.

Adam Bien - September 02, 2014 05:55 PM
The Perfect JavaEE Microservice

Microservices are a self-contained and easily understandable realization of domain logic, highly independent of each other.

The definition above could be shortened as: "Maximal Cohesion, Minimal Coupling" (MC/MC), which in turn defines a Java EE business component. A Java EE component is an ordinary Java package organized with the MC/MC idea in mind, ideally with predefined internal structure like e.g. BCE / ECB.

According to the above definition, a perfect JavaEE microservice is single ECB component within a WAR deployed on a single server/domain. In such a case you could release and redeploy individual components (aka microservices) independently. Direct method invocations between WARs are not possible, so the WARs are forced to use e.g. JAX-RS to communicate with each other.

Monolithic deployment of multiple components within a single WAR still remains the simplest possible solution for a mainstream project without any additional requirements. Unfortunately, simplest possible solutions are usually not buzzword-compatible :-).

[See also an in-depth discussion in the "Real World Java EE Patterns--Rethinking Best Practices" book (Second Iteration, "Green Book"), page 419 in, chapter "Entity Control Boundary (ECB)—The Lean Way"]

See you at Java EE Workshops at MUC Airport, particularly at the Java EE User Architectures workshop!


Real World Java EE Workshops [Airport Munich]>

NetBeans Zone - The social network for developers - September 02, 2014 10:20 AM
NetBeans Weekly News (Issue #655 - Sep 2, 2014)

Project News Sunday, 28 September: NetBeans Day 2014 Join the NetBeans team at NetBeans Day at JavaOne 2014 in San Francisco! We'll share highlights of how NetBeans has evolved; what's new and noteworthy today, and explore what's up ahead for NetBeans IDE. Many international speakers are scheduled to be involved. Preview Text:  In this issue:...

NetBeans Zone - The social network for developers - September 02, 2014 03:31 AM
Bilal Kathrada: Why NetBeans IDE is Great for Teaching Java

We've now met several teachers using NetBeans IDE in the classroom: Michiel Noback (Netherlands), Zoran Sevarac (Serbia),  Preview Text:  Bilal Kathrada from South Africa shares the reasons why NetBeans is well suited to teaching Java to students who have never programmed before. Legacy ...