The actual problem we had was that in our connection settings we had allow-non-component-callers="false", changing this to true worked.
From the documentation
Enable the pool to be used by non-component callers such as ServletFilters, Lifecycle modules.
This was our case.
Thanks for the help.
[Message sent by forum member 'tzman' (tzman)]
http://forums.java.net/jive/thread.jspa?messageID=255141