1. A computer implemented method for obtaining data from an application, the computer implemented method comprising: establishing a connection between an application and a resource adapter; instantiating, by the application, a new instance of a class loader layer for the application, wherein the class loader layer is a connection interface between the application and the resource adaptor, wherein the class loader layer has access to all classes for the application; passing, by the application, a class loader layer object to the resource adapter; calling, by the application, a doSomething method provided by the class loader layer, wherein the doSomething method accesses a doConversion method in the application using the class loader layer object; responsive to receiving a request from the resource adaptor to invoke the doSomething method in the class loader layer, executing the function to generate a set of objects with a set of data types accessible by the resource adaptor; and sending the set of objects to the resource adaptor; wherein the application has an application class loader, the resource adapter has a resource adapter class loader, the application and resource adapter share a common system class loader in a virtual machine of a computer.