You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Alasdair Nottingham (JIRA)" <ji...@apache.org> on 2011/02/16 11:56:57 UTC

[jira] Created: (ARIES-577) Make optional references sane

Make optional references sane
-----------------------------

                 Key: ARIES-577
                 URL: https://issues.apache.org/jira/browse/ARIES-577
             Project: Aries
          Issue Type: Improvement
          Components: Blueprint
            Reporter: Alasdair Nottingham
            Assignee: Alasdair Nottingham


One of the problems with optional references is that you have to wrap any call to them in a try catch for ServiceUnavailableException which could be thrown. There is no realistic way to "know" that the proxy is wired. Any option you might choose provides a window where you could still get ServiceUnavailableException.

Instead I propose adding the following optional attribute in the blueprint extension schema:

default="bean id"

when the no backing service is provided if this is set the request will be silently routed to the identified default bean. When the service arrives it will switch and route to the target service. When the service goes it will route back to the default bean assuming no alternative is available.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (ARIES-577) Make optional references sane

Posted by "Alasdair Nottingham (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alasdair Nottingham resolved ARIES-577.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.4

> Make optional references sane
> -----------------------------
>
>                 Key: ARIES-577
>                 URL: https://issues.apache.org/jira/browse/ARIES-577
>             Project: Aries
>          Issue Type: Improvement
>          Components: Blueprint
>            Reporter: Alasdair Nottingham
>            Assignee: Alasdair Nottingham
>             Fix For: 0.4
>
>
> One of the problems with optional references is that you have to wrap any call to them in a try catch for ServiceUnavailableException which could be thrown. There is no realistic way to "know" that the proxy is wired. Any option you might choose provides a window where you could still get ServiceUnavailableException.
> Instead I propose adding the following optional attribute in the blueprint extension schema:
> default="bean id"
> when the no backing service is provided if this is set the request will be silently routed to the identified default bean. When the service arrives it will switch and route to the target service. When the service goes it will route back to the default bean assuming no alternative is available.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (ARIES-577) Make optional references sane

Posted by "Jeremy Hughes (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Hughes updated ARIES-577:
--------------------------------

    Fix Version/s:     (was: blueprint-0.4.0)
                   blueprint.sample-0.4
                   blueprint.itests-0.4
                   blueprint.core-0.4
                   blueprint.cm-0.3.2
    
> Make optional references sane
> -----------------------------
>
>                 Key: ARIES-577
>                 URL: https://issues.apache.org/jira/browse/ARIES-577
>             Project: Aries
>          Issue Type: Improvement
>          Components: Blueprint
>            Reporter: Alasdair Nottingham
>            Assignee: Alasdair Nottingham
>             Fix For: blueprint.cm-0.3.2, blueprint.core-0.4, blueprint.itests-0.4, blueprint.sample-0.4
>
>
> One of the problems with optional references is that you have to wrap any call to them in a try catch for ServiceUnavailableException which could be thrown. There is no realistic way to "know" that the proxy is wired. Any option you might choose provides a window where you could still get ServiceUnavailableException.
> Instead I propose adding the following optional attribute in the blueprint extension schema:
> default="bean id"
> when the no backing service is provided if this is set the request will be silently routed to the identified default bean. When the service arrives it will switch and route to the target service. When the service goes it will route back to the default bean assuming no alternative is available.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (ARIES-577) Make optional references sane

Posted by "Jeremy Hughes (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Hughes updated ARIES-577:
--------------------------------

    Fix Version/s: blueprint uber bundle 0.4
    
> Make optional references sane
> -----------------------------
>
>                 Key: ARIES-577
>                 URL: https://issues.apache.org/jira/browse/ARIES-577
>             Project: Aries
>          Issue Type: Improvement
>          Components: Blueprint
>            Reporter: Alasdair Nottingham
>            Assignee: Alasdair Nottingham
>             Fix For: blueprint uber bundle 0.4, blueprint.cm-0.3.2, blueprint.core-0.4, blueprint.itests-0.4, blueprint.sample-0.4
>
>
> One of the problems with optional references is that you have to wrap any call to them in a try catch for ServiceUnavailableException which could be thrown. There is no realistic way to "know" that the proxy is wired. Any option you might choose provides a window where you could still get ServiceUnavailableException.
> Instead I propose adding the following optional attribute in the blueprint extension schema:
> default="bean id"
> when the no backing service is provided if this is set the request will be silently routed to the identified default bean. When the service arrives it will switch and route to the target service. When the service goes it will route back to the default bean assuming no alternative is available.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (ARIES-577) Make optional references sane

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated ARIES-577:
----------------------------------

    Fix Version/s:     (was: 0.4)
                   blueprint-0.4.0

> Make optional references sane
> -----------------------------
>
>                 Key: ARIES-577
>                 URL: https://issues.apache.org/jira/browse/ARIES-577
>             Project: Aries
>          Issue Type: Improvement
>          Components: Blueprint
>            Reporter: Alasdair Nottingham
>            Assignee: Alasdair Nottingham
>             Fix For: blueprint-0.4.0
>
>
> One of the problems with optional references is that you have to wrap any call to them in a try catch for ServiceUnavailableException which could be thrown. There is no realistic way to "know" that the proxy is wired. Any option you might choose provides a window where you could still get ServiceUnavailableException.
> Instead I propose adding the following optional attribute in the blueprint extension schema:
> default="bean id"
> when the no backing service is provided if this is set the request will be silently routed to the identified default bean. When the service arrives it will switch and route to the target service. When the service goes it will route back to the default bean assuming no alternative is available.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira