Basically you can't and that is a good thing.
If, after carefully considering the architectural implications of database access directly from a client, you still want to do this, run your client application inside a mini-jboss with only basic services, naming, possibly the tx manager, and the server-side jca stuff. This is essentially what the spec mandated client container is (that we have not implemented)