To set desired isolation level for a connection, the corresponding connection pool has to be created at that isolation level. See the Sun GlassFish Enterprise Server v2.1.1 Administration Guide for instructions.