I'd expect it to work fine with getConnection() if you uncommented the username and password attributes in the ManagedConnectionFactoryProperties.
All you can find in this forum are broken links to inexistent docs!!!!!