[jboss-user] [JBoss Seam] - Long running conversation

ristretto do-not-reply at jboss.com
Mon Jan 21 19:18:33 EST 2008


I have this Seam POJO Action

@Name("bean")
@Scope(ScopeType.CONVERSATION)
@Conversational
public class BeanAction  implements Serializable 
{

    @Begin(join=true) 
	@Create 
	public void create(){ 
		log.debug("Starting Conversation id: "+ Conversation.instance().getId()+"  long running?:  "+Conversation.instance().isLongRunning());
	}

When I browse bean.xhtml (facelets/jfc), the log says

Starting Conversation id: 1  long running?:  false

Why false, thought it should be true?

And, when I submit a form on the page like this

	         <h:commandButton value="Submit to Method" action="#{bean.method}">
	         	 <s:conversationPropagation type="join"/>
	         </h:commandButton>

I get an exception saying my bean isn't in the context.  And it seems that the conversation isn't available, which would make sense if it truely isn't long running, right?  I'm quite confused, so my message may be lacking information to totally make sense.  If so, ask questions.


javax.servlet.ServletException: /bean.xhtml @59,55 binding="#{bean.table}": Target Unreachable, identifier 'bean' resolved to null
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)



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

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



More information about the jboss-user mailing list