diff -r e7b3ef7aaef4 -r 74d06a8a4948 java/nekurak.net-lib/src/cz/frantovo/nekurak/web/HledacSluzby.java --- a/java/nekurak.net-lib/src/cz/frantovo/nekurak/web/HledacSluzby.java Tue Jul 19 15:20:47 2011 +0200 +++ b/java/nekurak.net-lib/src/cz/frantovo/nekurak/web/HledacSluzby.java Tue Jul 19 15:22:15 2011 +0200 @@ -1,6 +1,5 @@ package cz.frantovo.nekurak.web; -import cz.frantovo.nekurak.ejb.ChatRemote; import cz.frantovo.nekurak.ejb.ClanekRemote; import cz.frantovo.nekurak.ejb.PodnikRemote; import cz.frantovo.nekurak.ejb.UzivatelRemote; @@ -20,7 +19,6 @@ private PodnikRemote podnikEJB; private UzivatelRemote uzivatelEJB; private ClanekRemote clanekEJB; - private ChatRemote chatEJB; private static final Logger log = Logger.getLogger(HledacSluzby.class.getSimpleName()); public PodnikRemote getPodnikEJB() { @@ -61,17 +59,4 @@ } return clanekEJB; } - - public ChatRemote getChatEJB() { - if (chatEJB == null) { - try { - Context c = new InitialContext(); - chatEJB = (ChatRemote) c.lookup("cz.frantovo.nekurak.ejb.ChatRemote"); - } catch (NamingException e) { - log.log(Level.SEVERE, "Chyba při hledání ChatRemote", e); - throw new RuntimeException(e); - } - } - return chatEJB; - } }