users@glassfish.java.net

Re: NameNotFoundException

From: <glassfish_at_javadesktop.org>
Date: Fri, 06 Nov 2009 03:40:33 PST

Hi man,
try this:
Instead of this [b]@Stateless(mappedName = "Time")[/b] write this [b]@Stateless(mappedName = "session.TimeService")[/b] and than in the lookup do this [b]TimeService timeService = (TimeService) ctx.lookup("session.TimeService");[/b]

Your mappedName need to be equal to your lookup name.
[Message sent by forum member 'dpandulev' (deyan.pandulev_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=370856