Code:
import glog.business.rate.rateinquiry.RateInquiryInput; ... public RateInquiryResult[] getRates(RateInquiryInput input) throws GLException { RateInquiryResult results[] = null; try { NamingDirectory nd = null; RateActionSession session = null; try { nd = NamingDirectory.get(AppFunction.RIQ); RateActionSessionHome home = (RateActionSessionHome)nd.lookup("RateActionSessionHome"); session = home.create(); results = session.getRates(input, new UserPreference()); } finally { if(session != null) session.remove(); if(nd != null) nd.release(); } } catch(Throwable t) { throw FrontEndException.factory(new glog.util.exception.GLException.CausedBy("cause.RiqResult.0001", null, new Object[][] { new Object[] { "destAddress", input.getDestAddress().toString() }, new Object[] { "sourceAddress", input.getSourceAddress().toString() } }), t); } return results; }
Comment