I have this Session Bean Stateful

@Local
public interface Report {
        public String cercaComune();
        public void destroy();
}

@Stateful
@Name("report")
@Interceptor(SeamInterceptor.class)
public class ReportImpl implements Report, Serializable {
        protected static final Logger log = Logger.getLogger(ReportImpl.class);
        @PersistenceContext
        protected EntityManager em;

     public String cercaComune() {
                log.info("Query comune:" + "");//queryComune.getNome());
                List comuni = em.createQuery("from Comune c where c.nome like 
:search")
                                .setParameter("search", 
"%")//queryComune.getNome() + "%")
                                .setMaxResults(10)
                                .getResultList();
                return "redisplay";
      }

@Destroy
        @Remove
        public void destroy() {
                log.info("destroyed");
        }
}

immediately after i call report.cercaComune
i obtain
18:21:26,863 INFO  [ReportImpl] Query comune:
18:21:26,972 INFO  [ReportImpl] destroyed

WHY The conversation are removed from the context??????

Please!!!! Help ME


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910295#3910295

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910295


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to