Sunday May 29, 2011

Maven, EJB and Java EE 6 Webinar - The Replay

Last week's webinar on Maven, Java EE 6 and GlassFish 3.1 is now available for replay on our YouTube Channel.

This new 30-minute session is another one done by Adam Leftik, Oracle GlassFish Server product manager.

ALT_DESCR

The session starts with an intro to Maven, which you may choose to skip to get to the demo. It covers creating Maven projects, authoring and testing EJBs using the EJBContainer API, JPA code as well as Maven-driven deployment to GlassFish using its Maven plugin.

Note that the Java EE 6 platform API's (javaee-api:6.0 and javaee-web-api:6.0) are now in Maven Central.

Sunday May 22, 2011

The week ahead - JavaOne CfP, OTN developer days and a webinar

This is going to be a busy week. First, you have less than 24 hours to submit your paper for this year's JavaOne (SF, Oct. 2-6, 2011). The list looks great already but it's not going to be perfect until you add your proposal.

JavaOne 2011

• Tuesday is OTN Developer Day in Bucharest, Romania, with Java SE, Java ME, Java FX and of course Java EE in the agenda.
• Wednesday is OTN Developer Day in Brisbane, Australia with a similar agenda.
• Thursday is Oracle Java Developer Conference in Brno, Czech Republic with Dalibor Topic keynoting on the future of Java SE (agenda).
• Friday is OTN Developer Day in Perth, Australia, again with an agenda loaded with recent and exciting Java content.

All these are free events, just make sure you register. And don't forget that this Tuesday (tomorrow), we're running the Maven, EJB and Java EE 6 with GlassFish Server 3.1 webinar : Tuesday, May 24, 2011 - 10:00 am PT / 1:00 pm ET / 19.00 CT. Again, make sure you register.

Thursday May 19, 2011

Next Webinar - Maven, EJB and Java EE 6 with GlassFish Server 3.1

(Updated registration URL for those that had issues...)

EJB 3.1 brings its share of new features (EJBContainer certainly streamlines testing) and GlassFish has had a Maven plugin for a little while but things only got better for developers with the recent release of GlassFish 3.1.

ALT_DESCR

This is the topic of our next webinar scheduled for this coming Tuesday :
Maven, EJB and Java EE 6 with GlassFish Server 3.1
• Tuesday, May 24, 2011 - 10:00 am PT / 1:00 pm ET / 19.00 CT - Register!

Wednesday Apr 20, 2011

NetBeans 7 final is out!

The NetBeans team has just delivered NetBeans 7, a new major IDE release. Congratulations to the folks in Prague (and elsewhere)!

One of the main new features is support for the draft Java SE 7 specification and in particular the Project Coin languages changes (diamond operator, multi-catch, ARM blocks, etc) including hints to refactor existing code to take advantage of them.

ALT DESCR

The tool still offers great out-of-the-box experience and now has improved Java EE 6 support over 6.9.1. NetBeans 7.0 is now the stable NetBeans release you want to be using with GlassFish 3.1 (see new features). It also supports recent versions of Oracle WebLogic Server.

Maven 3, better Oracle DB integration, Git and enhanced PHP support are other new features in this release. Get the full list from this page.
Next stop: 7.0.1 (still early days).

Monday Apr 04, 2011

It's all about embedded (and testing)

In his recent "Test Coverage for your Enterprise Beans" blog post Markus Eisele starts by discussing the differences between the GlassFish Embedded API, the standard EJB 3.1 API, and the Maven GlassFish Plugin. He then goes on to describe his Eclipse + Eclemma plugin + GlassFish Embedded 3.1 + Maven configuration. He also discusses Global JNDI names (new in EJB 3.1) and the use of ANT with cases when you'll need in-place instrumentation of your code for proper code coverage execution.

Test Coverage for your Enterprise Beans. Running Eclemma with GlassFish 3.1
Embedded GlassFish with installation-less MySQL

In "Embedded GlassFish with installation-less MySQL", Bhavani discusses how to run tests using Embedded GlassFish with MySQL as the database (already running or not). This approach uses @DataSourceDefinition (new in Java EE 6 and placed here on servlets) with either the default JDBC driver or the Connector/MXJ utility. It also provides a sample persistence.xml for code using JPA.

In all the cases above, Embedded GlassFish is used via its Maven artifact: org.glassfish.extras:glassfish-embedded-[all|web]:3.1

Monday Nov 22, 2010

NetBeans 7.0 Beta is here!

ALT DESCR

With the recent JSR announcement you may have missed the release of NetBeans 7.0 Beta. Adding to the long list of server-side enhancements (Java EE 6, GlassFish, WebLogic, JBoss) described in this earlier post, support for JDK 7 and for Maven 3 are probably the two main features in this release.

Once you've installed and configured a recent build of OpenJDK, you can now select "JDK 7" as a target platform in the IDE. This will cause the NetBeans built-in parser to start using the new javac compiler and thus support new language constructs such as Strings in switch, the diamond operator, multi-catch, etc... NetBeans also integrates a number of hints to help you refactor existing code into something more terse. More details on this page. Update: Arun has pushed out a screencast to illustrate this all.

This interview will NetBeans developer Jesse Glick goes into interesting details about the full support of Maven 3 in this new release. Similar to the JDK 7 case above, the IDE does not reinvent the wheel but rather "the IDE is using the official Maven 3.0 code to parse your project" (so no "import" step required). The tool can also search Maven repositories when class definition are missing. Repository browsing & searching, graphical representation of dependencies while preserving the "compile on save" and increasing overall performance are all now part of NetBeans 7.0 beta.

You may also have missed this episode of the Java Spotlight Podcast which features an interview with the NetBeans boss at Oracle.

Sunday Oct 17, 2010

GlassFish Tips and Links #12: Maven on Helios, Basic Authentication, Jersey 1.4, Bye AMX, JavaSE 6u22...

Recent Tips and News on Java EE 6 & GlassFish:

Informational Sign

Tips

Maven troubles on Eclipse Helios causes problem deploying app to GlassFish
• ... but see Harald's tutorial
Basic Authentication in GlassFish 3 (Maksim Sorokim)
Jersey 1.4 was released on September 11th (Paul)
More on Web Sockets and HTML5 in Glassfish - covers using the SQL API (Santiago)
Update to deploying webservices on Glassfish 3.1 cluster (Bhakti)
Spring vs. Java EE and Why I Don't Care (Eberhard Wolff)

GlassFish 3.1

Admin UI is now 100% based on REST; no more AMX (ludo)
Progress in moving GlassFish to Kenai infrastructure (eduardo)

Links and News

eApps Cloud Release notes v .99.2 - Beta will include Liferay on GlassFish
Habari OpenMQ Client (library for Delphi and Free Pascal to access OpenMQ)

From Oracle

• Countdown to decommissioning SunSolve "later this year"
   Goodbye SunSolve, Helloooo MOS!, SunSolve Retirement Notice - Oct'10 and FAQ
• Sun GlassFish Enterprise Server 2.1.1 p8 now available.
• JavaSE 6u22 is out with security bugs - Release Notes, twitter @rolilad
• Oracle's October Critical Patch Update at eSecurityPlanet.

En Español

Control del nivel de aislamiento transaccional en JPA
EJB 3.1 en Porlets de Liferay (Apuntes de Java)

Event News

Reports
Slides and Trip Report for SVCP 2010:
   [1], [2], [3], [4], [5], [6].
This Week's Events
• Oct 19th, YaJUG, Luxembourg (details)
   Java EE 6 + GlassFish, Alexis MP
• Oct 20th: eBig Java SIG, Oakland/CA (details)
   Java EE 6 = Less Code + More Power, Arun Gupta
New Events
• Dec 6-Dec 8: NYC - Marakana, (details)
   JSF 2.0 Training Course, Kito Mann
• Dec 13-Dec 17: NYC (details)
   Programming with Java and Java EE 6, Yakov Fain, Farata Systems

Saturday Oct 09, 2010

GlassFish Tips and Links #11: CDI, EJB 3.1, Spring, HTML5, Maven, JCP, Forks...

Recent Tips and News on Java EE 6 & GlassFish:

Informational Sign

Tips

TOTD #145: CDI Events - a light-weight producer/consumer in Java EE 6
Enterprise JavaBeans 3.1 with Contexts and Dependency Injection: The Perfect Synergy
Spring to Java EE – A Migration Experience
Problem with Grails on Glassfish v3?
Web Sockets and HTML5 in Glassfish
Book Review: Java EE 6 with GlassFish 3 Application Server

Links and News

• Maven 3 has been released: Sonatype, InfoQ
• GlassFish as Best Practices in Software Development (Johan)
• TSS Thread: Moving from Spring to Java EE 6: The Age of Frameworks is Over
GlassFish jobs at Indeed.com crosses 780 Flower NFA Update (Using GlassFish)
Proposed Maven Artifact Naming and Versioning for JavaEE
• Standards are Good for You: JBoss 6 Moving Towards JavaEE 6 with M5

Conferences

Java2Days 2010; Reports: Arun, Ivan: d1 & d2, Alexis.
Hudson User meetup in Tokyo (Nov 12th)
Silicon Valley Code Camp
• eBIG SIG: JavaEE 6 = Less Code + More Power (Oct 20th)
JavaOne Brazil (Dec 7th thru 9th)

Recent Sites Seen Running on GlassFish

• HPCSense uses GlassFish - twitter
ParaFarmacia, Mas Barata - Netcraft

JCP News and Future of Java

Now OPEN -- Nominations for EC seats
• TSS Thread: The Future of Java: forking, death, or stasis
• More Forking Opinions: Sacha and Greg.
• Java.Net Poll: Free Java? Closed Java? Evolving JCP? What's the Most Likely Path?

Monday Jun 29, 2009

NetBeans 6.7 Final is Here

ALT DESCR

NetBeans 6.7 is now available for download. The site includes their usual screencasts (see specially the Overview) and Tutorials.

The new features I find most interesting are the Connected Developer and the Build Tool support (including Hudson and Maven). Other features include support for more Dynamic Languages, Java Desktop/Swing and Web and Java EE; bundled JavaEE 6 and JavaFX 1.2 will be in later releases.

Related entries tagged netbeans

Thursday Jun 18, 2009

Hudson Support in NetBeans 6.7... and Maven, and Subversion

ALT DESCR

The Release Candidate 3 for NetBeans 6.7 is now available and so are several posts highlighting some of its new features. Check out:

• Petr on Hudson Support,
• Geertjan on Maven Support, and
• Octavian on Subversion Support

Check out previous entries tagged NetBeans for highlights on other features like the Connected Developer (and Kenai), more scripting support, and how to use NB 6.7 with GlassFish v3.

Thursday Mar 12, 2009

Changes to Java.Net Maven2 Repository

ALT DESCR

If you publish bits to the Java.Net Maven2 repository, you should check out Kohsuke's writeup from a couple of days ago. No changes if you only download the bits and have been using the recommended http://download.java.net/maven/2/ path.

The reason for the change was just operational, we were running against the limits of the previous setup; one of the disadvantages of our continuous growth. Thanks to Kohsuke for handling the fire-drill.

Sunday Jun 15, 2008

Building GFv3 with Maven and SVN

ALT DESCR

Julien has a very nice detailed description of how to build the GlassFish v3 Server from the SVN Sources using Maven. Instructions and a couple of screenshots.

The distributed (and just "different" than GFv2) way of building GFv3 has been a common source of discussions in the DEV alias; hopefully Julien's note will help a bit.

Added: Arun covers the topic in TOTD #33.

Friday Jun 13, 2008

More WebApps with Jersey - Now with GlassFish v3 Embedded

GlassFish Inside Logo

Jakub's Building a Jersey WebApp ended with:

mvn tomcat:run

but his New Sample now ends as:

mvn glassfish:run

Jakub's note includes full instructions, sources and annotated run screenshots. Check it out!

Thursday May 22, 2008

Embeding GlassFish - Servlet in Maven

ALT DESCR

One of the new features in GlassFIsh v3 is that it can be embedded. Kohsuke and Vivek started playing seriously with this for a demo before JavaOne and it got a lot of attention (see embedded blogs @ TA). Now Arun has written a description of how to do this using NetBeans and Maven.

Check out the details at Arun's Note; download GF v3 TP2 and NetBeans and let us know how it goes.