[jboss-dev-forums] [Design the new POJO MicroContainer] - ControllerStates sequential flow for dependent Contexts ?

vickyk do-not-reply at jboss.com
Tue Nov 21 13:51:34 EST 2006


I have though of a scenario and wanted to confirm if this is correct ?
Let us consider that I have a contexts as 
A,iDOA(I depend on A),aDOM(A depend on Me) .
Let me put few more as

aDOM1,aDOM2,A,iDOA1,iDOA2 

Controller States being defned here are as S,S1 and S2.
So when the controller installs the context A with the final state as S2 , dependent contexts of A ie iDOA1 and iDOA2 will first be passed to S2 . Once this is done then only the context A will propagate to S2 state.
So the sequential flow could be like this 

  | iDOA1------------------->S
  | iDOA1---------->S1
  | iDOA1---------->S2
  | iDOA2---------->S
  | iDOA2---------->S1
  | iDOA2---------->S2
  | A -----------> S
  | A ------------> S1
  | A ------------------------> S2
  | 
Or the intermediate contexts installation are as 

  | iDOA1 ------------------->S
  | iDOA2 -------->S
  | A-------------->S
  | iDOA1 -------->S1
  | iDOA2 -------->S1
  | A-------------->S1
  | iDOA1 -------->S2
  | iDOA2 -------->S2
  | A------------------------->S2
  | 
The later one looks correct to me . Meanwhile let me dig the code too .

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

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



More information about the jboss-dev-forums mailing list