[jboss-as7-dev] DataSource Enable/disable

David M. Lloyd david.lloyd at redhat.com
Wed Apr 20 19:29:27 EDT 2011


Graceful shutdown will probably have to work somewhat differently than 
that.  Generally the service simply stays available until nothing is 
using it (or depending on it) anymore.  For example if I have a data 
source being used by 3 EJBs, the data source is available until all the 
EJBs are shut down and/or undeployed.  And the EJBs are available until 
all their clients are shut down and/or undeployed, and so on down the line.

Having services start refusing requests makes shutdown be not very 
graceful - it generally just results in error messages for users.  By 
using the dependency system, in combination with clustering or load 
balancing, the user experience is always smooth and we avoid errors and 
broken transactions and that sort of thing.

On 04/20/2011 05:55 PM, Jim Tyrrell wrote:
> Should like in web traffic routing for clustering their be a stopped stage:
> add - adds
> remove - kills it
> enable - means it can accept new connections
> disable - mean no new requests
> stopped - means no request at all
>
> Jim Tyrrell
> Senior JBoss Solutions Architect
>
> Did you see RHT on CNBC's Mad Money?
> http://www.cnbc.com/id/39401056
>
>
>
> On Apr 20, 2011, at 8:31 AM, Stefano Maestri wrote:
>
>> When John have changed datasources subsystem he have created 4
>> operations for them:
>> - add
>> - remove
>> - enable
>> - disable
>>
>> I like them, now Heiko is asking to move enable/disable out in favour of
>> a more standard r/w attribute enabled (note that this attribute is
>> present in our xml). See There:
>>
>> https://issues.jboss.org/browse/JBAS-9341
>>
>> Since the operation don't just change the attribute, but also stop
>> services and unbind ds from jndi I'd prefer to keep operations as is. I
>> think an explicit operation make clearer to users that they are changing
>> the status of the entire datasourrce
>>
>> opinions?
>>
>> S.
>> _______________________________________________
>> jboss-as7-dev mailing list
>> jboss-as7-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


-- 
- DML



More information about the jboss-as7-dev mailing list