Java built adapter


I would like to know if I can design a java adaptor with rmi invokation capability and put on the ES/IS server the corresponding stub and use this adaptor in the configuration ? The puprpose being to be able to run the adaptor on a different machine than the one hosting ES or IS.
Is the JCA standard compatible with this or does it provide an alternative solution for remote invokation ?