Sun GlassFish Enterprise Server 2.1 Release Notes

Solution

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