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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to