users@glassfish.java.net

Re: EJB 3: _at_Remove in Stateless Session Bean

From: Sahoo <sahoo_at_sun.com>
Date: Wed, 05 Nov 2008 16:16:21 +0530

@Remove is applicable for stateful session beans only. See javadocs [1].

[1] http://java.sun.com/javaee/5/docs/api/javax/ejb/Remove.html

glassfish_at_javadesktop.org wrote:
> I developed a EJB 3's stateless session bean. The session bean have bussiness method is getTime() and a method called finished with @Remove annotation. At client side, i called the method but the session bean was not removed from EJB Container.
> my code
> astatelessBean.getTime();
> astatelessBean.finished();
> astatelessBean.getTime(); // Do not throws exception here
> Why?
> Is the @Remove annotation in Stateless SB not affected?
> [Message sent by forum member 'jblackcat_ht' (jblackcat_ht)]
>
> http://forums.java.net/jive/thread.jspa?messageID=314961
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>