List of usage examples for org.springframework.remoting RemoteConnectFailureException printStackTrace
public void printStackTrace()
From source file:com.aan.girsang.client.launcher.ClientLauncher.java
public static void main(String[] args) throws Exception { BeautyEyeLNFHelper.frameBorderStyle = BeautyEyeLNFHelper.FrameBorderStyle.generalNoTranslucencyShadow; org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper.launchBeautyEyeLNF(); UIManager.put("RootPane.setupButtonVisible", Boolean.FALSE); try {/*from w ww .j a v a 2 s. c o m*/ AbstractApplicationContext ctx = new ClassPathXmlApplicationContext("clientContext.xml"); ctx.registerShutdownHook(); constantService = (ConstantService) ctx.getBean("constantServiceRemote"); securityService = (SecurityService) ctx.getBean("securityServiceRemote"); masterService = (MasterService) ctx.getBean("masterServiceRemote"); transaksiService = (TransaksiService) ctx.getBean("transaksiServiceRemote"); reportService = (ReportService) ctx.getBean("reportServiceRemote"); String computerName = InetAddress.getLocalHost().getHostName(); constantService.clientOnline(computerName); } catch (RemoteConnectFailureException ex) { String status = "Server Offline"; ex.printStackTrace(); log.info(ex.getMessage()); JOptionPane.showMessageDialog(null, status); System.exit(0); } log.info("Client Online"); java.awt.EventQueue.invokeLater(() -> { FrameUtama fu = new FrameUtama(); fu.setExtendedState(JFrame.MAXIMIZED_BOTH); fu.setVisible(true); fu.jam(); }); }