You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Rajini Sivaram (JIRA)" <tu...@ws.apache.org> on 2007/09/19 10:43:44 UTC

[jira] Created: (TUSCANY-1757) Fixes for implementation.osgi callbacks and AllowsPassByReference

Fixes for implementation.osgi callbacks and AllowsPassByReference
-----------------------------------------------------------------

                 Key: TUSCANY-1757
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1757
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA OSGi Integration
            Reporter: Rajini Sivaram
            Priority: Minor
         Attachments: itest-osgi-implementation-patch.txt, modules-implementation-osgi-patch.txt, modules-osgi-runtime-patch.txt

Scoping for callbacks is broken in implementation.osgi. In OSGi, instances are associated with services rather than components (which are based on the bundle). To implement SCA scoping for callbacks, the callback should be associated to one of the instances from the component.

@AllowsPassByReference is not handled correctly for implementation.osgi since annotations are not read until the implementation provider is started and all the bundles are resolved. If the names of the implementation classes in the bundle are not listed in <implementation.osgi/>, annotations will not be read until the first service instance is obtained from OSGi. Since pass-by-value interceptor relies on obtaining the list of methods which support pass-by-reference before this stage, we need to bypass the interceptor and leave it to the OSGi invoker to decide whether pass-by-reference is allowed.

The patch also modifies itest/osgi-implementation to use a subdirectory under target/classes as the contribution URL for each of its tests since there are a large number of tests under this project, and at the moment all the composites are loaded when each test is run. Conversation and callback tests have also been added.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1757) Fixes for implementation.osgi callbacks and AllowsPassByReference

Posted by "Rajini Sivaram (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajini Sivaram updated TUSCANY-1757:
------------------------------------

    Attachment: itest-osgi-implementation-patch.txt
                modules-osgi-runtime-patch.txt
                modules-implementation-osgi-patch.txt

> Fixes for implementation.osgi callbacks and AllowsPassByReference
> -----------------------------------------------------------------
>
>                 Key: TUSCANY-1757
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1757
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA OSGi Integration
>            Reporter: Rajini Sivaram
>            Priority: Minor
>         Attachments: itest-osgi-implementation-patch.txt, modules-implementation-osgi-patch.txt, modules-osgi-runtime-patch.txt
>
>
> Scoping for callbacks is broken in implementation.osgi. In OSGi, instances are associated with services rather than components (which are based on the bundle). To implement SCA scoping for callbacks, the callback should be associated to one of the instances from the component.
> @AllowsPassByReference is not handled correctly for implementation.osgi since annotations are not read until the implementation provider is started and all the bundles are resolved. If the names of the implementation classes in the bundle are not listed in <implementation.osgi/>, annotations will not be read until the first service instance is obtained from OSGi. Since pass-by-value interceptor relies on obtaining the list of methods which support pass-by-reference before this stage, we need to bypass the interceptor and leave it to the OSGi invoker to decide whether pass-by-reference is allowed.
> The patch also modifies itest/osgi-implementation to use a subdirectory under target/classes as the contribution URL for each of its tests since there are a large number of tests under this project, and at the moment all the composites are loaded when each test is run. Conversation and callback tests have also been added.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1757) Fixes for implementation.osgi callbacks and AllowsPassByReference

Posted by "Rajini Sivaram (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajini Sivaram updated TUSCANY-1757:
------------------------------------

    Attachment: samples-osgi-supplychain-patch.txt

> Fixes for implementation.osgi callbacks and AllowsPassByReference
> -----------------------------------------------------------------
>
>                 Key: TUSCANY-1757
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1757
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA OSGi Integration
>            Reporter: Rajini Sivaram
>            Priority: Minor
>         Attachments: itest-osgi-implementation-patch.txt, modules-implementation-osgi-patch.txt, modules-osgi-runtime-patch.txt, samples-osgi-supplychain-patch.txt
>
>
> Scoping for callbacks is broken in implementation.osgi. In OSGi, instances are associated with services rather than components (which are based on the bundle). To implement SCA scoping for callbacks, the callback should be associated to one of the instances from the component.
> @AllowsPassByReference is not handled correctly for implementation.osgi since annotations are not read until the implementation provider is started and all the bundles are resolved. If the names of the implementation classes in the bundle are not listed in <implementation.osgi/>, annotations will not be read until the first service instance is obtained from OSGi. Since pass-by-value interceptor relies on obtaining the list of methods which support pass-by-reference before this stage, we need to bypass the interceptor and leave it to the OSGi invoker to decide whether pass-by-reference is allowed.
> The patch also modifies itest/osgi-implementation to use a subdirectory under target/classes as the contribution URL for each of its tests since there are a large number of tests under this project, and at the moment all the composites are loaded when each test is run. Conversation and callback tests have also been added.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1757) Fixes for implementation.osgi callbacks and AllowsPassByReference

Posted by "Rajini Sivaram (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajini Sivaram updated TUSCANY-1757:
------------------------------------

    Attachment: modules-contribution-osgi-patch.txt
                modules-osgi-runtime-patch.txt

> Fixes for implementation.osgi callbacks and AllowsPassByReference
> -----------------------------------------------------------------
>
>                 Key: TUSCANY-1757
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1757
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA OSGi Integration
>            Reporter: Rajini Sivaram
>            Priority: Minor
>         Attachments: itest-osgi-implementation-patch.txt, modules-contribution-osgi-patch.txt, modules-implementation-osgi-patch.txt, modules-osgi-runtime-patch.txt, samples-osgi-supplychain-patch.txt
>
>
> Scoping for callbacks is broken in implementation.osgi. In OSGi, instances are associated with services rather than components (which are based on the bundle). To implement SCA scoping for callbacks, the callback should be associated to one of the instances from the component.
> @AllowsPassByReference is not handled correctly for implementation.osgi since annotations are not read until the implementation provider is started and all the bundles are resolved. If the names of the implementation classes in the bundle are not listed in <implementation.osgi/>, annotations will not be read until the first service instance is obtained from OSGi. Since pass-by-value interceptor relies on obtaining the list of methods which support pass-by-reference before this stage, we need to bypass the interceptor and leave it to the OSGi invoker to decide whether pass-by-reference is allowed.
> The patch also modifies itest/osgi-implementation to use a subdirectory under target/classes as the contribution URL for each of its tests since there are a large number of tests under this project, and at the moment all the composites are loaded when each test is run. Conversation and callback tests have also been added.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Assigned: (TUSCANY-1757) Fixes for implementation.osgi callbacks and AllowsPassByReference

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng reassigned TUSCANY-1757:
-------------------------------------

    Assignee: Raymond Feng

> Fixes for implementation.osgi callbacks and AllowsPassByReference
> -----------------------------------------------------------------
>
>                 Key: TUSCANY-1757
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1757
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA OSGi Integration
>            Reporter: Rajini Sivaram
>            Assignee: Raymond Feng
>            Priority: Minor
>         Attachments: itest-osgi-implementation-patch.txt, modules-contribution-osgi-patch.txt, modules-implementation-osgi-patch.txt, modules-osgi-runtime-patch.txt, samples-osgi-supplychain-patch.txt
>
>
> Scoping for callbacks is broken in implementation.osgi. In OSGi, instances are associated with services rather than components (which are based on the bundle). To implement SCA scoping for callbacks, the callback should be associated to one of the instances from the component.
> @AllowsPassByReference is not handled correctly for implementation.osgi since annotations are not read until the implementation provider is started and all the bundles are resolved. If the names of the implementation classes in the bundle are not listed in <implementation.osgi/>, annotations will not be read until the first service instance is obtained from OSGi. Since pass-by-value interceptor relies on obtaining the list of methods which support pass-by-reference before this stage, we need to bypass the interceptor and leave it to the OSGi invoker to decide whether pass-by-reference is allowed.
> The patch also modifies itest/osgi-implementation to use a subdirectory under target/classes as the contribution URL for each of its tests since there are a large number of tests under this project, and at the moment all the composites are loaded when each test is run. Conversation and callback tests have also been added.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1757) Fixes for implementation.osgi callbacks and AllowsPassByReference

Posted by "Rajini Sivaram (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajini Sivaram updated TUSCANY-1757:
------------------------------------

    Attachment:     (was: samples-osgi-supplychain-patch.txt)

> Fixes for implementation.osgi callbacks and AllowsPassByReference
> -----------------------------------------------------------------
>
>                 Key: TUSCANY-1757
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1757
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA OSGi Integration
>            Reporter: Rajini Sivaram
>            Priority: Minor
>         Attachments: itest-osgi-implementation-patch.txt, modules-contribution-osgi-patch.txt, modules-implementation-osgi-patch.txt, modules-osgi-runtime-patch.txt
>
>
> Scoping for callbacks is broken in implementation.osgi. In OSGi, instances are associated with services rather than components (which are based on the bundle). To implement SCA scoping for callbacks, the callback should be associated to one of the instances from the component.
> @AllowsPassByReference is not handled correctly for implementation.osgi since annotations are not read until the implementation provider is started and all the bundles are resolved. If the names of the implementation classes in the bundle are not listed in <implementation.osgi/>, annotations will not be read until the first service instance is obtained from OSGi. Since pass-by-value interceptor relies on obtaining the list of methods which support pass-by-reference before this stage, we need to bypass the interceptor and leave it to the OSGi invoker to decide whether pass-by-reference is allowed.
> The patch also modifies itest/osgi-implementation to use a subdirectory under target/classes as the contribution URL for each of its tests since there are a large number of tests under this project, and at the moment all the composites are loaded when each test is run. Conversation and callback tests have also been added.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1757) Fixes for implementation.osgi callbacks and AllowsPassByReference

Posted by "Rajini Sivaram (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajini Sivaram updated TUSCANY-1757:
------------------------------------

    Attachment: samples-osgi-supplychain-patch.txt

Samples patch fixes the ant build script for samples/osgi-supplychain

> Fixes for implementation.osgi callbacks and AllowsPassByReference
> -----------------------------------------------------------------
>
>                 Key: TUSCANY-1757
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1757
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA OSGi Integration
>            Reporter: Rajini Sivaram
>            Priority: Minor
>         Attachments: itest-osgi-implementation-patch.txt, modules-contribution-osgi-patch.txt, modules-implementation-osgi-patch.txt, modules-osgi-runtime-patch.txt, samples-osgi-supplychain-patch.txt
>
>
> Scoping for callbacks is broken in implementation.osgi. In OSGi, instances are associated with services rather than components (which are based on the bundle). To implement SCA scoping for callbacks, the callback should be associated to one of the instances from the component.
> @AllowsPassByReference is not handled correctly for implementation.osgi since annotations are not read until the implementation provider is started and all the bundles are resolved. If the names of the implementation classes in the bundle are not listed in <implementation.osgi/>, annotations will not be read until the first service instance is obtained from OSGi. Since pass-by-value interceptor relies on obtaining the list of methods which support pass-by-reference before this stage, we need to bypass the interceptor and leave it to the OSGi invoker to decide whether pass-by-reference is allowed.
> The patch also modifies itest/osgi-implementation to use a subdirectory under target/classes as the contribution URL for each of its tests since there are a large number of tests under this project, and at the moment all the composites are loaded when each test is run. Conversation and callback tests have also been added.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1757) Fixes for implementation.osgi callbacks and AllowsPassByReference

Posted by "Rajini Sivaram (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajini Sivaram updated TUSCANY-1757:
------------------------------------

    Attachment:     (was: modules-osgi-runtime-patch.txt)

> Fixes for implementation.osgi callbacks and AllowsPassByReference
> -----------------------------------------------------------------
>
>                 Key: TUSCANY-1757
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1757
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA OSGi Integration
>            Reporter: Rajini Sivaram
>            Priority: Minor
>         Attachments: itest-osgi-implementation-patch.txt, modules-contribution-osgi-patch.txt, modules-implementation-osgi-patch.txt, modules-osgi-runtime-patch.txt, samples-osgi-supplychain-patch.txt
>
>
> Scoping for callbacks is broken in implementation.osgi. In OSGi, instances are associated with services rather than components (which are based on the bundle). To implement SCA scoping for callbacks, the callback should be associated to one of the instances from the component.
> @AllowsPassByReference is not handled correctly for implementation.osgi since annotations are not read until the implementation provider is started and all the bundles are resolved. If the names of the implementation classes in the bundle are not listed in <implementation.osgi/>, annotations will not be read until the first service instance is obtained from OSGi. Since pass-by-value interceptor relies on obtaining the list of methods which support pass-by-reference before this stage, we need to bypass the interceptor and leave it to the OSGi invoker to decide whether pass-by-reference is allowed.
> The patch also modifies itest/osgi-implementation to use a subdirectory under target/classes as the contribution URL for each of its tests since there are a large number of tests under this project, and at the moment all the composites are loaded when each test is run. Conversation and callback tests have also been added.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-1757) Fixes for implementation.osgi callbacks and AllowsPassByReference

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng resolved TUSCANY-1757.
-----------------------------------

    Resolution: Fixed

Patch applied under r578261. Thanks!

> Fixes for implementation.osgi callbacks and AllowsPassByReference
> -----------------------------------------------------------------
>
>                 Key: TUSCANY-1757
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1757
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA OSGi Integration
>            Reporter: Rajini Sivaram
>            Assignee: Raymond Feng
>            Priority: Minor
>         Attachments: itest-osgi-implementation-patch.txt, modules-contribution-osgi-patch.txt, modules-implementation-osgi-patch.txt, modules-osgi-runtime-patch.txt, samples-osgi-supplychain-patch.txt
>
>
> Scoping for callbacks is broken in implementation.osgi. In OSGi, instances are associated with services rather than components (which are based on the bundle). To implement SCA scoping for callbacks, the callback should be associated to one of the instances from the component.
> @AllowsPassByReference is not handled correctly for implementation.osgi since annotations are not read until the implementation provider is started and all the bundles are resolved. If the names of the implementation classes in the bundle are not listed in <implementation.osgi/>, annotations will not be read until the first service instance is obtained from OSGi. Since pass-by-value interceptor relies on obtaining the list of methods which support pass-by-reference before this stage, we need to bypass the interceptor and leave it to the OSGi invoker to decide whether pass-by-reference is allowed.
> The patch also modifies itest/osgi-implementation to use a subdirectory under target/classes as the contribution URL for each of its tests since there are a large number of tests under this project, and at the moment all the composites are loaded when each test is run. Conversation and callback tests have also been added.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org