The Resource adapter is not getting deployed as part of the WAR however the same can be added as part of the EAR. I have created a simple ear that contains both the resource adapter and the client application. This solves the purpose of having the resouce adapter and the client application in the same context.