Thanks, tried it but it didn't work. The client can still use the data source. Seems that Glassfish is a bit too "friendly" and expands the alias before shipping the datasource definition to the client.
[Message sent by forum member 'gugrim' (gugrim)]
http://forums.java.net/jive/thread.jspa?messageID=272819