Resource adapters goes in the :resource-adapters: subsystem, and using application managed security is <security><application/></security>.
There are examples of deploying datasources and resource adapters in the AS 7 test suite, which you can borrow from. Or you can use the standalone distribution of IronJacamar and use our tooling and integration.