[jboss-user] [JBoss Microcontainer] - Cyclic dependencies

Ales Justin do-not-reply at jboss.com
Fri Aug 20 08:30:56 EDT 2010


Ales Justin [http://community.jboss.org/people/alesj] created the discussion

"Cyclic dependencies"

To view the discussion, visit: http://community.jboss.org/message/558334#558334

--------------------------------------------------------------
>From Ondrej Zizka:
> I'm writing some simple MC stress test for the purpose of EAP deployers profiling.
> I've created a simple tool which generates a randomly connected graph (attached).
> 
> >From what I've read, MC can do cyclic injections, but can't do cyclic dependencies (<depends>) , true?
> 
> So I've injected random beans to each other, assuming that will create some cyclic deps, and inject some beans before they're declared in the XML.
> 
> But when I deploy that, I get errors like:
> 
>   Deployment "v9" is missing the following dependencies:
>     Dependency "v0" (should be in state "Installed", but is actually in state "Instantiated")
>     Dependency "v3" (should be in state "Installed", but is actually in state "Instantiated")
>     Dependency "v2" (should be in state "Installed", but is actually in state "Instantiated")
>     Dependency "v8" (should be in state "Installed", but is actually in state "Instantiated")
>     Dependency "v4" (should be in state "Installed", but is actually in state "Instantiated")
>     Dependency "v1" (should be in state "Installed", but is actually in state "Instantiated")
> 
> I just started with MC so I am not yet too aware of what terms like Installed mean from the MC POV.
> 
> Could you pls point me to some good material explaining this issue, and perhaps the types of relations in MC?

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/558334#558334]

Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100820/8801026a/attachment.html 


More information about the jboss-user mailing list