yes exactly. You just need to specify @End on the saveHotel() method, it is the last method that is interesting in our conversation. It is called from the JSF page and will let Seam destroy the conversation at the end of the method call.
So your class should look like this now: | package org.jboss.seam.example.booking; | | import java.util.*; | | import javax.ejb.*; | import javax.persistence.*; | | import org.jboss.seam.annotations.*; | import org.jboss.seam.annotations.datamodel.*; | import org.jboss.seam.log.Log; | | @Stateless | @Name("newHotel") | public class NewHotelAction | implements NewHotel | { | @PersistenceContext | private EntityManager em; | | @In(create=true) | private Hotel hotel; | | @Logger | private Log log; | | @End | public String saveHotel() | { | log.info("Saving hotel #{hotel}"); | em.persist(hotel); | log.info("Created hotel id #{hotel.id}"); | return "/newHotelCreated.xhtml"; | } | } | Note that the conversation started when the user reached the newHotel.xhtml page thanks to the pages.xml file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952316#3952316 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952316 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user