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

Thursday Aug 20, 2009

MySQL Labs provide server snapshots

MySQL Labs

MySQL opens its labs to the community. Users who want to test the early builds, before they are released for general availability can get them from MySQL Labs.

There is a detailed announcement that warns against using these binaries in production, but encourages everyone to test them. A companion tutorial explains how to use the snapshots to test the InnoDB plugin, which was released recently, and it is included in the latest MySQL 5.1 binaries.

Friday Jun 27, 2008

GlassFish Embedded - As easy as 2 (files), 3 (lines) and 5 (seconds)

ALT DESCR

Adam Bien has turned to be one of the most active advocates for GlassFish. He is very active at his Adam Bien and in presentations everywhere. One of his latest entries explains how to Embed GFv3 for testing purposes. The title summarizes it: "Embedding Glassfish V3 in Unit Test - Two Jars, Three Lines Of Code And Five Seconds Start With Deployment" (link).

The ability to embed GlassFish v3 is going to open many new opportunities for GlassFish. For example, Tom Rose also mentions the ease of use and fast start-up time. If you are embedding GlassFish v3, drop us an email; we are interested.

Tuesday Oct 09, 2007

New Features in Japex 1.1.1 -

Japex Logo

Santiago has posted Japex 1.1.4, the GlassFish WS and XML performance tool. The new release addresses new customers, including CORBA (the new japex.singleClassLoader property) and a multi-user simulation (japex.runIterationDelay).

Rapid interaction between customers and developers is a key benefit of Transparent Development; this is a good example. Check more details in Santiago's Blog.

Thursday May 18, 2006

TestNG or JUnit?

Button for Quality Portal

Project GlassFish has chosen TestNG for our tests. Several alternatives were considered, including JUnit. Some of the discussion can be read at the Quality Mailing List and here is Comparison Document which some have found useful.

Check the The Quality Portal for more details.

Thursday May 11, 2006

GlassFish Quality Portal

Logo of Quality Portal

Raj announced the new GlassFish Quality Portal. This includes a Developer Unit Testing that unifies the GlassFish test base around TestNG.

More information in Raj's blog, including a call to participation.