Sample code from bigger application (EJB, Web module in Rails, EJB remote clients(Eclipse RCP plugins + Swing))