Instead of using domain.xml, use glassfish-resources.xml 
to configure jdbc-pools and resources