Re: Do we really need Quiesce support?

2015-02-12 Thread Guillaume Nodet
2015-02-12 12:21 GMT+01:00 Christian Schneider : > I think this is in part because of the service damping in blueprint. > Blueprint will not shut down a service if a service it depends on goes away. > If you have a more reactive framework like DS it would not happen. If you > remove the DataSource

Re: Do we really need Quiesce support?

2015-02-12 Thread Guillaume Nodet
2015-02-12 17:33 GMT+01:00 David Bosschaert : > I would definitely be interested in seeing alternatives. I still don't > fully understand the use-case to be honest. Looking at the database > example from Guillaume above, I don't see why the bundles need to be > taken down in a controlled manner. L

Re: Do we really need Quiesce support?

2015-02-12 Thread David Bosschaert
I would definitely be interested in seeing alternatives. I still don't fully understand the use-case to be honest. Looking at the database example from Guillaume above, I don't see why the bundles need to be taken down in a controlled manner. Let's say the database bundle is stopped before the CXF

Re: Do we really need Quiesce support?

2015-02-12 Thread Christian Schneider
I just checked the diff of my changes when removing Quiesce. We would be able to remove ~20 classes and 1500 lines of code. So I think it would be worth the time to check if we can achieve the same with an alternative solution. Apart from complexity and code size my big problem with the way Qui

[jira] [Resolved] (ARIES-1279) Transaction does not work on error SQLException

2015-02-12 Thread Guillaume Nodet (JIRA)
[ https://issues.apache.org/jira/browse/ARIES-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet resolved ARIES-1279. Resolution: Not a Problem > Transaction does not work on error SQLException > --

[jira] [Commented] (ARIES-1279) Transaction does not work on error SQLException

2015-02-12 Thread Grzegorz Grzybek (JIRA)
[ https://issues.apache.org/jira/browse/ARIES-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14318093#comment-14318093 ] Grzegorz Grzybek commented on ARIES-1279: - Hi [~alexey-s], I've just checked your

Re: Do we really need Quiesce support?

2015-02-12 Thread Christian Schneider
I think this is in part because of the service damping in blueprint. Blueprint will not shut down a service if a service it depends on goes away. If you have a more reactive framework like DS it would not happen. If you remove the DataSource then any DS component using it will also go down. Bes

Re: Do we really need Quiesce support?

2015-02-12 Thread Guillaume Nodet
I think I actually do understand the need. When you want to stop a bunch of bundles, you can choose to stop them in a random order, or in a smart way. At the end the result may not be the same. Let me take an example: a cxf service which accesses a database. If you choose a random order, you may s

Re: Do we really need Quiesce support?

2015-02-12 Thread Christian Schneider
I understand the need to clean up but the OSGi BundleTracker should already provide all that. We even already track these events in aries jpa. See http://www.osgi.org/javadoc/r4v42/org/osgi/util/tracker/BundleTracker.html So when a bundle is stopped or uninstalled then aries jpa can already c

Re: Do we really need Quiesce support?

2015-02-12 Thread Graham Charters
Hi David/Christian, Here is what Mark wrote, that didn't make it: "Quiesce is about stopping a bundle gracefully prior to its uninstallation, which is why we've had no need to implement a 'restart' capability. We currently use Apache Aries quiesce within IBM WebSphere Application Server. It's use

Re: Do we really need Quiesce support?

2015-02-12 Thread David Bosschaert
I'd like to understand what the use-case for the Quiesce functionality actually is. Graham, would you like to explain the actual benefit that it provides? Once we understand that better, maybe we can think of a structure that maintains Quiesce support with less complication in the code... Cheers,

[jira] [Comment Edited] (ARIES-1297) Remove quiesce support from jpa

2015-02-12 Thread Christian Schneider (JIRA)
[ https://issues.apache.org/jira/browse/ARIES-1297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317892#comment-14317892 ] Christian Schneider edited comment on ARIES-1297 at 2/12/15 9:38 AM: ---

[jira] [Commented] (ARIES-1297) Remove quiesce support from jpa

2015-02-12 Thread Christian Schneider (JIRA)
[ https://issues.apache.org/jira/browse/ARIES-1297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317892#comment-14317892 ] Christian Schneider commented on ARIES-1297: Can you explain what you use it f

[jira] [Commented] (ARIES-1297) Remove quiesce support from jpa

2015-02-12 Thread Graham Charters (JIRA)
[ https://issues.apache.org/jira/browse/ARIES-1297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317888#comment-14317888 ] Graham Charters commented on ARIES-1297: Hi, I've just responded on the thread to

Re: Do we really need Quiesce support?

2015-02-12 Thread Graham Charters
Hi Christian, Apologies for not responding sooner, Mark Nuttall tried to reply on this thread, but his email did not make it. We use Quiesce support in WebSphere so need this to be left in. Please do not remove it. Many thanks. Graham. On 12 February 2015 at 08:02, Christian Schneider wrote:

Re: Do we really need Quiesce support?

2015-02-12 Thread Christian Schneider
I created an issue to track the removal of the quiesce support in aries jpa. https://issues.apache.org/jira/browse/ARIES-1297 I have prepared a commit and plan to apply the removal on next monday if no one opposes. Christian On 10.02.2015 09:15, Christian Schneider wrote: In several places in

[jira] [Resolved] (ARIES-1294) Refactor blueprint NSHandler

2015-02-12 Thread Christian Schneider (JIRA)
[ https://issues.apache.org/jira/browse/ARIES-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schneider resolved ARIES-1294. Resolution: Fixed > Refactor blueprint NSHandler > > >

[jira] [Created] (ARIES-1297) Remove quiesce support from jpa

2015-02-12 Thread Christian Schneider (JIRA)
Christian Schneider created ARIES-1297: -- Summary: Remove quiesce support from jpa Key: ARIES-1297 URL: https://issues.apache.org/jira/browse/ARIES-1297 Project: Aries Issue Type: Improve