Friday Mar 30, 2012

Tab Sweep: Java EE 6 Scopes, Observer, SSL, Workshop, Virtual Server, JDBC Connection Validation

Recent Tips and News on Java, Java EE 6, GlassFish & more :

Radio Receiver

How Java EE 6 Scopes Affect User Interactions (
Why is Java EE 6 better than Spring ? (Arun Gupta)
JavaEE Revisits Design Patterns: Observer (Murat Yener)
Getting started with Glassfish V3 and SSL (JavaDude)
Software stacks market share within Jelastic: March 2012 (Jelastic)
All aboard the Java EE 6 Love Boat! (Bert Ertman)
Full stack Java EE workshop (Kito Mann)
Create a virtual server from console in glassfish (Hector Guzman)
Glassfish – JDBC Connection Validation explained (Alexandru Ersenie)
Automatically setting the label of a component in JSF 2 (Arjan Tijms)
JSF2 + Primefaces3 + Spring3 & Hibernate4 Integration Project (Eren Avşaroğulları)

Here are some tweets from this week ...

web-app dtd(s) on R.I.P. using instead. Thank you Oracle!
finally got GlassFish and Cassandra running embedded so I can unit test my app #jarhell
#JavaEE6 + #NetBeans is really a pleasure to work with!
Reading latest chapter in #Spring vs #JavaEE wars (and yes, #JavaEE6 is better :P)
@javarebel very easy install and very easy to use in combination with @netbeans and @glassfish. Save your time.

Monday May 24, 2010

MySQL and Java - Free Webinar on Using MySQL Connector/J

Mark Matthews, Todd Farmer and Rebecca Hansen are giving a free webinar tomorrow entitled: Better Java Application Scalability and Reliability Using MySQL Connector/J Features.

Mark is the original creator of MySQL Connector/J and author of the book MySQL and Java Developer's Guide, Todd is the manager for the America's Support team for MySQL and Rebecca is the Product Marketing Manager for MySQL.

You only need your browser to attend; webinar is free but registration is required. The event is Tue May 25th (tomorrow) at 9am US PT (Other TZs), more details here. also has an archive of Webinars available for replay. For webinars with Duke and Sakila check here - and if you are partial to elePHPant check here.

Tuesday Sep 09, 2008

... Quartz and CEP for OpenESB, JDBC Pooling for Rails, JustJava in Brazil and JavaZOne in Norway

A compilation of today's news of interest:

Radio Receiver Icon

Two news from OpenESB - first a partnership with ComplexEvents.Com in the area of Complex Event Processing (thanks, Prashant). The second is the announcement of an Scheduler Service Engine using OpenSymphony Quartz.

Arun has done an update of one of his early Tip Of The Day, showing how to do JDBC Connection Pooling in Rails for GlassFish v3.

And, from Conference-Land: Kohsuke is in Brazil right now at JustJava - look for him in the Agenda, (but, no, he is not presenting in Brazilian Brazilian Portuguese, somebody will translate!) Alexis will be next week in Oslo at JavaZone, and then it will be Arun's turn, again in Brazil. Check Alexis's September's Conference Recap.

Wednesday Oct 03, 2007

JDBC Realm Authentication

Radio Receiver Icon

Byron has a detailed post on why and how to setup JDBC Realm Authentication.

It covers the use of JavaDB (embedded or server mode), creation of the JDBC connection pool with the appropriate settings, along with a few tips.

Monday Jul 16, 2007

Using DTrace to Profile JDBC-Related Calls in GlassFish

The "open(2)" Logo from OpenSolaris

How can a large project like GlassFish make such brisk strides on performance (1, 2, 3)? Well, for one thing, it certainly doesn't hurt to have backing from a company that has created tools like DTrace.

In his latest blog entry, Paul shows how he used DTrace to identify hot spots in the PostgreSQL JDBC Driver when run on GlassFish. Of course, the same techniques could be applied to any area of GlassFish. So please, feel free to jump in and help with our endless push for top performance.

Added: Also check out this Video Interview of the Dtrace tream.

Thursday Jun 14, 2007

Advanced JDBC Capabilities in GlassFish

Picture of a Server Connection to a Database

These days, it's hard to find a web or enterprise application which doesn't have a database at its core. And if it's implemented in Java, any such application is almost guaranteed to be using JDBC at some level. So it's pretty important to get the most out of your JDBC connections.

Fortuntely, Jagadesh has a trio of write-ups for doing just that with GlassFish. First, he shows how to use JDBC 4.0 in GlassFish V2. Next, he tackles the monitoring of JDBC Connection Pools (via three methods: the admin GUI, the admin CLI, or programatically via AMX). And finally, he looks at the JDBC Connection Pool Templates which are being added to GlassFish (starting with v2 b51) to guide you through configuration for various different databases and drivers (since each has its own quirks).

Wednesday Apr 11, 2007

Using GlassFish v2 to Trace Database Connection Leaks

Image of Pipes

Think your application may be leaking database connections? Kshitiz shows how GlassFish v2 makes it easy to track down those leaks by using new connection pool features.

As Kshitiz shows, you just need to use the GlassFish administration GUI or CLI or configure a Leak Timeout for your Connection Pool. Then use the monitoring mechanism (again, available via either GUI or CLI) to view the connection leak stats. Sound simple? It is.

After all, who better to find leaks than a fish?

Friday Jun 09, 2006

JDBCRealm and GlassFish v2

Tomcat Logo

Tomcat's JDBCRealm is used to provide authentication and authorization against a database. Since it is commonly used and it was lacking in GlassFish, JeanBaptiste submitted an intial code patch to do this; unfortunately, due to time constraints, this did not make it into GF v1 and this prompted Edson Richter to try it on his own. Using a Blog by Petr he has written another JDBCRealm implementation that has gained visibility very recently (JaxMag, TSS).

Meanwhile, back at the ranch, the original submission was worked on by Shing Wai and others which lead to yet another JDBCRealm, this one as a putback into the GF v2 trunk. Please check this latest implementation to be sure it does what you need; you can read about it in Shing Wai's Blog. Note that one of the differences between the two implementations is that Edson's was designed to use exactly the same configuration as Tomcat's while Shing Wai's does not. You can provide feedback at Shing Wai's blog or in this thread in the USERS mailing list.

This feature should show in the next GF v2 build (b07).