1 25 26 package org.objectweb.carol.rmi.exception; 27 28 import org.objectweb.carol.rmi.iiop.exception.IiopUtility; 29 import org.objectweb.carol.util.configuration.ConfigurationRepository; 30 import org.objectweb.carol.util.configuration.TraceCarol; 31 32 37 public class RmiUtility { 38 39 43 private RmiUtility() { 44 } 45 46 52 public static void rethrowRmiException(Exception e) { 53 54 String protocol = ConfigurationRepository.getCurrentConfiguration().getProtocol().getName(); 56 57 if (TraceCarol.isDebugRmiCarol()) { 58 TraceCarol.debugRmiCarol("Current protocol=" + protocol); 59 } 60 61 if (protocol.equals("iiop")) { 63 IiopUtility.rethrowCorbaException(e); 64 } 65 66 } 68 69 } | Popular Tags |