日期:2014-05-19 浏览次数:20748 次
public class PrintApply implements Serializable { private static final long serialVersionUID = 1L; private String yybs; private String sjbbs; private String fqbs; public String getYybs() { return yybs; } public void setYybs(String yybs) { this.yybs = yybs; } public String getSjbbs() { return sjbbs; } public void setSjbbs(String sjbbs) { this.sjbbs = sjbbs; } public String getFqbs() { return fqbs; } public void setFqbs(String fqbs) { this.fqbs = fqbs; }
import com.hxsmart.sicard.si.model.PrintApply; public interface RemoteService { public PrintApply receivePrintApply(String name,String idcd,String bankId,String nodeName,String nodeId); }
public class RemoteServiceImpl implements RemoteService { private ClientService clientService; @Override public PrintApply receivePrintApply(String name, String idcd, String bankId, String nodeName, String nodeId) { StringBuffer sb = new StringBuffer(); sb.append(name).append(idcd).append(bankid).append(nodeName).append(nodeId); List<PrintApply> list = clientService.sentMsg(sb.toString()); PrintApply printApply = list.get(0); return printApply; } }
public class RemoteExchgsvrServerImpl implements RemoteExchgsvrServer { @Override public List PrintInfoApply(String idcd, String name, String bankId, String nodeId, String nodeName) { ApplicationContext applicationContext = new ClassPathXmlApplicationContext("remote.xml"); try { RequestService service = (RequestService) applicationContext.getBean("remoteService"); PrintApply printApply = service.receivePrintApply(name, idcd, bankId, nodeName, nodeId); } catch (Exception e) { e.printStackTrace(); } return null; } }
PrintApply printApply = service.receivePrintApply(name, idcd, bankId, nodeName, nodeId);