Sun GlassFish Enterprise Server v2.1.1 Release Notes

Solution

In the domain.xml file, set the property PrepareMethod=direct on the corresponding data source.