[jboss-user] [JBoss Microcontainer] New message: "Re: Undemanding Dependencies"

Ales Justin do-not-reply at jboss.com
Wed Jan 20 11:07:13 EST 2010


User development,

A new message was posted in the thread "Undemanding Dependencies":

http://community.jboss.org/message/521132#521132

Author  : Ales Justin
Profile : http://community.jboss.org/people/alesj

Message:
--------------------------------------------------------------
> I want to declare a relationship, A depending on B, where B is on-demand.  However, I don't want A to cause B to start if nothing else depends on B.  In other words, A should only start if something else causes B to start. 
> Is this possible?
Yes, but not declaratively, only programmatically.
 
This is how I would do it.
* declare both A, B as On_Demand
* install B --> ControllerContext --> http://anonsvn.jboss.org/repos/jbossas/projects/kernel/trunk/dependency/src/main/java/org/jboss/dependency/spi/DependencyInfo.java
* once you have DependencyInfo --> add http://anonsvn.jboss.org/repos/jbossas/projects/kernel/trunk/dependency/src/main/java/org/jboss/dependency/spi/LifecycleCallbackItem.java (LCI)
* this LCI should simply enable (and install) A

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

To reply to this message visit the message page: http://community.jboss.org/message/521132#521132




More information about the jboss-user mailing list