The datasource is not accessible outside the JVM in which it is defined. There are many posts on this topic covering the reasons this is not supported.
1. The physical connection to the DB and the handle to the connection are in the JVM and DataSource is not a proxy implementation.
2. You lose much of the advantages of removing the DB connection cost through pooling by adding the connection cost of reaching the pool and proxying were you to provide external access capability.