<div dir="ltr">There is apparently no work going on in any related EE JSR that is covering this? <div>One would think most application servers could benefit from this.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Jan 31, 2014 at 2:47 AM, David M. Lloyd <span dir="ltr"><<a href="mailto:david.lloyd@redhat.com" target="_blank">david.lloyd@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The problem is that deployments may be added and removed at any time, as<br>
can other server ports and services. The case that this causes a<br>
problem is where a server starts up, mistakenly without an essential<br>
deployment, and the server thinks it's "up" but actually a required part<br>
is missing, possibly causing the end user to observe a "broken" server.<br>
<div class="HOEnZb"><div class="h5"><br>
On 01/30/2014 05:54 PM, Rodakr wrote:<br>
> Having state machine which set the state from "Starting" to "Running" after all ressources has been initialized, all deployments are finished and server ports are listening could help to define container "up" mabe.<br>
><br>
><br>
><br>
> Von meinem iPhone gesendet<br>
><br>
> Am 30.01.2014 um 22:15 schrieb "David M. Lloyd" <<a href="mailto:david.lloyd@redhat.com">david.lloyd@redhat.com</a>>:<br>
><br>
>> I've been sitting on this idea for a while so I thought I'd put it out<br>
>> there and get some feedback on it.<br>
>><br>
>> Problem: People want things to happen when the container is "up".<br>
>> Unfortunately, there really isn't a black-and-white concept for what<br>
>> "up" means. Often times, the user is simply going for "my application<br>
>> will function correctly", so they can make a load-balancing decision or<br>
>> perform some other monitoring action.<br>
>><br>
>> Semantically, the desire would be for some external mechanism to receive<br>
>> a notification when the services corresponding to the specifically<br>
>> applicable components have completely started or are going to stop. The<br>
>> obvious implementation of such a mechanism is a service which depends on<br>
>> the set of component services.<br>
>><br>
>> Solution 1: In theory, a user could create a deployment that performs<br>
>> availability tasks in a service which depends on all the requisite<br>
>> services. The user needs specific knowledge of service names in this<br>
>> case, which may change, or they must use specific technologies (for<br>
>> example, use a singleton EJB which @DependsOn each dependency).<br>
>><br>
>> Solution 2: Introduce a subsystem which allows definition of different<br>
>> availability configurations. The configuration would enumerate the<br>
>> items that are required for the configuration to be considered<br>
>> available. The configuration would be associated with an action. We<br>
>> would use management.next-style extensibility points to let the user<br>
>> define add-in items like EJBs, servlets, POJOs, MBeans, CDI beans, etc.<br>
>> without the subsystem needing specific knowledge of the service schemes<br>
>> for each.<br>
>><br>
>> We could make solution 1 work more effectively by providing a more<br>
>> uniform deployment-based dependency mechanism, but that seems more<br>
>> complex to me than just introducing a subsystem and SPI for this purpose.<br>
>><br>
>> With a subsystem we could bundle actions for things like mod_cluster,<br>
>> other potential future Undertow- and Remoting-based proxies, simple<br>
>> notification schemes like MBean notification or logging, POST<br>
>> notification, and so on.<br>
>><br>
>> The timeline would not be 8 (obviously), nor 9. I think having the<br>
>> simplified management SPI in place is a definite prerequisite, else the<br>
>> effort/reward ratio is far too low to justify doing this. Otherwise, I<br>
>> think this is a simple idea that could be pretty damn useful, so I want<br>
>> to put it out here so it's in the back of everyone's mind.<br>
>> --<br>
>> - DML<br>
>> _______________________________________________<br>
>> wildfly-dev mailing list<br>
>> <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
><br>
> _______________________________________________<br>
> wildfly-dev mailing list<br>
> <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
><br>
<br>
<br>
--<br>
- DML<br>
_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Nicklas Karlsson, +358 40 5062266<div>Vaakunatie 10 as 7, 20780 Kaarina</div>
</div>