[wildfly-dev] status attribute for datasources

Heiko Braun hbraun at redhat.com
Fri Oct 17 03:47:19 EDT 2014


Doesn't the enabled attribute serve the same purpose? Ort do I miss something?

On 17 Oct 2014, at 05:46, Claudio Miranda <claudio at claudius.com.br> wrote:

> Hi, what do you think of adding a "status" attribute for datasources ?
> It should have the same meaning of "status" for deployment.
> 
> The deployment have the status attribute, that says if the application
> was properly deployed and is running.
> 
> /deployment=jboss-kitchensink.war:read-attribute(name=status)
> {
>    "outcome" => "success",
>    "result" => "FAILED"
> }
> 
> However there is no way in CLI mode to ask if a datasource (RA also)
> is working, user must check for exceptions in the log.
> 
> The proposal is to add an attribute status to a datasource and RA, it
> will be true if test-connection-in-pool returns true, otherwise false.
> Every moment the datasource configuration changes, a test-connection
> is performed.
> 
> I came to this suggestion, as was working for a customer that has 16
> datasources (they are migrating from weblogic) and there were some
> connections errors, but the user was unable to see at once which
> connections failed, they needed to grep log. It would be very useful
> to have this attribute.
> 
> 
> Kind regards
> -- 
>  Claudio Miranda
> 
> claudio at claudius.com.br
> http://www.claudius.com.br
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev




More information about the wildfly-dev mailing list