Пример #1
0
  public static void main(String[] args) throws RemoteException {

    ClassPathXmlApplicationContext context =
        new ClassPathXmlApplicationContext("applicationContext.xml");
    CalendarServiceImpl calendarService =
        context.getBean("calendarService", CalendarServiceImpl.class);
    calendarService.getEvent("Name");
    logger.info("Service started");
  }