dev@glassfish.java.net

Re: Disabling JMS Connection Factories

From: Satish Kumar <Satish.Kumar_at_Sun.COM>
Date: Wed, 08 Dec 2010 16:26:00 +0530

Jason:

To enable/disable a JMS resource all you will need to do is update the
relevant resource-ref. There is no separate CLI command for this;
asadmin set should work. This functionality seems to have already been
implemented for JDBC resources in the admin console.

-Satish

On 12/08/2010 01:56 AM, Jason Lee wrote:
> The admin alias seems to be wonky, so I'm going to send this a wider
> audience (and hope that this isn't wonky as well :)
>
> I'm currently working on this issue:
> http://java.net/jira/browse/GLASSFISH-14994
>
> The error occurs when trying to save the enabled/disabled state of the
> connection factory, which involves, ultimately, I think, updating the
> relevant resource-ref entries for the connection factory.
>
> My first question is is that enough? Are there other operations
> required to enable/disable the factory? Secondly, is there (or should
> there be) a CLI for that. I haven't seen one, so that leaves writing
> one (or having the relevant team write one) or compute all the
> relevant REST URLs for the resource-refs and updating those.
>
> Does anyone have any suggestions for how to proceed? I'm content to
> iterate over a list URLs, but I'd rather do it The Right Way, if there
> is one. :)
>