Thanks for your reply. I have wrapped the RMIInitialContextFactory and RMIContext objects from Oracle in a set of custom pojos. If a lookup fails, a new RMIContext is created. Not sure if it will work, but worth the try, right ;)
Anyway, I'll keep you updated.