[jboss-user] [JBoss Seam] - Question about explicit conversation id

bsmithjj do-not-reply at jboss.com
Fri Jun 8 10:44:12 EDT 2007


I have the following SeamTest (FacesRequest) method:


  |             @Override
  |             protected void invokeApplication() throws Exception {
  | 
  |                 AccessRequestManager2 arm2 = (AccessRequestManager2) getInstance("accessRequestManager2");
  |                 assert arm2 != null;
  |                 arm2.startRequest();
  |                 log.info("conversationId = "+getConversationId());
  |                 
  |             }
  | 
  | 

and AccessRequestManager2.startRequest() looks like this:


  |     @Begin(id="#{draftAccessRequestMaster.id}",join=true)
  |     public void startRequest() {
  |         log.info("draftAccessRequestMaster.id = "+draftAccessRequestMaster.getId());
  |     }
  | 

Furthermore, I use the @Factory pattern to create a persistent instance of draftAccessRequestMaster which is @In(jected) to AccessRequestManager2.  When I run the test, I get the following in the log output:


  | 10:36:40,265  INFO com.evergreen.accesscontrol.AccessRequestManager2Test.(info:94) - updateModelValues()
  | 10:36:40,812  INFO com.evergreen.accesscontrol.impl.AccessRequestManager2Bean.(startRequest:54) - draftAccessRequestMaster.id = 5
  | 10:36:40,875  INFO com.evergreen.accesscontrol.AccessRequestManager2Test.(info:94) - conversationId = 1
  | 

My question here is ....

Why isn't the conversationId equal to the explicit id that I created in the @Begin(...) annotation?

Thanks,
Brad Smith

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

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



More information about the jboss-user mailing list