Modified for oracle glassfish server