You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org> on 2006/08/17 22:29:13 UTC

[jira] Created: (TUSCANY-642) Composite references and services - model and runtime representations

Composite references and services - model and runtime representations
---------------------------------------------------------------------

                 Key: TUSCANY-642
                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
             Project: Tuscany
          Issue Type: New Feature
          Components: Java SCA Core
    Affects Versions: Java-Mx
            Reporter: Ignacio Silva-Lepe
         Assigned To: Ignacio Silva-Lepe
             Fix For: Java-Mx


Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Ignacio Silva-Lepe updated TUSCANY-642:
---------------------------------------

    Attachment: InnerComposite.patch

Here's a new patch that modifies CompositeBuilderTestCase to verify that the Connector also works for composite services and references.
This patch also includes a more complete sample with an inner composite that has an inner service, inner component and inner reference; the inner composite is wired from an outer composite to a sibling component and the inner component then invokes the outer component.
This patch also fixes a bug, where the loader for implementation composite was not being called, by adding a component to composite.scdl in sca/test, sca/commands/launcher and sca/runtime/webapp-host.
Finally, for some reason having to do with class loaders, the class for the sample's inner service interface was not being found. This has not been resolved, at least not well enough. To get over the hurdle I hacked LoaderUtil.loadClass to try the old class loader if the one in the deployment context does not work. This seems to work but is obviously not adequate (not to mention the glaring println). In the interest of making progress, I include the hack in this patch. Hopefully the real fix can be incorporated during commit of this patch or in a subsequent one.

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Ignacio Silva-Lepe
>             Fix For: Java-Mx
>
>         Attachments: CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Assigned: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Jim Marino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Jim Marino reassigned TUSCANY-642:
----------------------------------

    Assignee: Jim Marino  (was: Ignacio Silva-Lepe)

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Jim Marino
>             Fix For: Java-Mx
>
>         Attachments: CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Ignacio Silva-Lepe updated TUSCANY-642:
---------------------------------------

    Attachment: InnerCompositeCallback2.patch

This patch subsumes InnerCompositeCallback.patch. It incorporates local invocations and callbacks over composite services. The same approach is used to provide the callback invocation handler with the outbound wire that is connected to the composite service's inbound wire.
In addition, since bound services do not need a target invoker, there is no method to set it (or a callback target invoker) in the spi. It seems like at least a callback target invoker will be needed for bound services and since both are needed for bindless services, we may want to define them in the spi. This can be done as part of a callbacks over ws (axis2) binding patch.

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Ignacio Silva-Lepe
>             Fix For: Java-Mx
>
>         Attachments: CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Ignacio Silva-Lepe updated TUSCANY-642:
---------------------------------------

    Attachment: InnerCompositeCallback.patch

This newer patch subsumes InnerComposite.patch (assuming that the latter has not been applied). It incorporates callbacks over composite references.
A less than elegant approach is used however. A complete hack is used to provide a callback invocation handler with the outbound wire that is connected to the composite reference's inbound wire. Notice that the same approach cannot be used as was used with async target invoker. This is because the thread that places the outbound wire on the work context in that instance is the same that retrieves the outbound wire. In the composite reference case, the two threads are not the same, so a different mechanism seems necessary, perhaps a more general correlation mechanism.

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Ignacio Silva-Lepe
>             Fix For: Java-Mx
>
>         Attachments: CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Jim Marino (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-642?page=comments#action_12433619 ] 
            
Jim Marino commented on TUSCANY-642:
------------------------------------

Hi Scott,

I already fixed these when I committed the patch. Just sync with the latest version.

Jim


> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Jim Marino
>             Fix For: Java-Mx
>
>         Attachments: CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch, RevisedInnerCompositeCallback.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Ignacio Silva-Lepe updated TUSCANY-642:
---------------------------------------

    Attachment: SimplerCompositeReferenceInvocation7.patch

This patch eliminates the need for AbstractOperationOutboundInvocationHandler by refactoring the code around the AbstractCompositeReferenceTargetInvoker hierarchy.
The patch passes all test cases in spi, core and bindings.axis2, as well as the supplychain, simplecallback and inner.composite samples, and the ws async samples.

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Jim Marino
>             Fix For: Java-Mx
>
>         Attachments: CommentsOut.patch, CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch, RevisedInnerCompositeCallback.patch, SimplerCompositeReferenceInvocation.patch, SimplerCompositeReferenceInvocation2.patch, SimplerCompositeReferenceInvocation3.patch, SimplerCompositeReferenceInvocation4.patch, SimplerCompositeReferenceInvocation5.patch, SimplerCompositeReferenceInvocation6.patch, SimplerCompositeReferenceInvocation7.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Ignacio Silva-Lepe updated TUSCANY-642:
---------------------------------------

    Attachment: CommentsOut.patch

Trivial change to remove some commented out code

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Jim Marino
>             Fix For: Java-Mx
>
>         Attachments: CommentsOut.patch, CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch, RevisedInnerCompositeCallback.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Ignacio Silva-Lepe updated TUSCANY-642:
---------------------------------------

    Attachment: CompositeRefsAndSvcs.txt

Here's the patch with the code to support composite reference and services.

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Ignacio Silva-Lepe
>             Fix For: Java-Mx
>
>         Attachments: CompositeRefsAndSvcs.txt
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Closed: (TUSCANY-642) Composite references and services - model and runtime representations

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

Ignacio Silva-Lepe closed TUSCANY-642.
--------------------------------------

    Resolution: Fixed
      Assignee: Ignacio Silva-Lepe  (was: Jim Marino)

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Ignacio Silva-Lepe
>             Fix For: Java-Mx
>
>         Attachments: CommentsOut.patch, CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch, RevisedInnerCompositeCallback.patch, SimplerCompositeReferenceInvocation.patch, SimplerCompositeReferenceInvocation2.patch, SimplerCompositeReferenceInvocation3.patch, SimplerCompositeReferenceInvocation4.patch, SimplerCompositeReferenceInvocation5.patch, SimplerCompositeReferenceInvocation6.patch, SimplerCompositeReferenceInvocation7.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

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

        

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


[jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Ignacio Silva-Lepe updated TUSCANY-642:
---------------------------------------

    Attachment: SimplerCompositeReferenceInvocation5.patch

This patch eliminates the use of routing tables by message id at each inbound wire and instead uses a callback routing chain (implemented as a stack) carried in a message.
The patch passes all test cases in spi, core and bindings.axis2, as well as the supplychain, simplecallback and inner.composite samples.

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Jim Marino
>             Fix For: Java-Mx
>
>         Attachments: CommentsOut.patch, CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch, RevisedInnerCompositeCallback.patch, SimplerCompositeReferenceInvocation.patch, SimplerCompositeReferenceInvocation2.patch, SimplerCompositeReferenceInvocation3.patch, SimplerCompositeReferenceInvocation4.patch, SimplerCompositeReferenceInvocation5.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Ignacio Silva-Lepe updated TUSCANY-642:
---------------------------------------

    Attachment: RevisedInnerCompositeCallback.patch

This patch replaces InnerCompositeCallback2.patch. It integrates its contents with the latest trunk to account for the new service contract changes. it also updates callbacks across composites to use split callback invocation chains, and callback correlation and routing.

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Jim Marino
>             Fix For: Java-Mx
>
>         Attachments: CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch, RevisedInnerCompositeCallback.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Re: [jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by Jim Marino <jm...@myromatours.com>.
O.K. I'll take a look. I've got an unfinished commit to do once I get  
access to svn on my machine back up  (the repo may be down).

Jim

On Aug 24, 2006, at 1:05 PM, Ignacio Silva-Lepe wrote:

> I posted a new patch for this but have not received the  
> corresponding email. In case others are on the same boat, I append  
> the text of the post.
>
> Here's a new patch that modifies CompositeBuilderTestCase to verify  
> that the Connector also works for composite services and references.
> This patch also includes a more complete sample with an inner  
> composite that has an inner service, inner component and inner  
> reference; the inner composite is wired from an outer composite to  
> a sibling component and the inner component then invokes the outer  
> component.
> This patch also fixes a bug, where the loader for implementation  
> composite was not being called, by adding a component to  
> composite.scdl in sca/test, sca/commands/launcher and sca/runtime/ 
> webapp-host.
> Finally, for some reason having to do with class loaders, the class  
> for the sample's inner service interface was not being found. This  
> has not been resolved, at least not well enough. To get over the  
> hurdle I hacked LoaderUtil.loadClass to try the old class loader if  
> the one in the deployment context does not work. This seems to work  
> but is obviously not adequate (not to mention the glaring println).  
> In the interest of making progress, I include the hack in this  
> patch. Hopefully the real fix can be incorporated during commit of  
> this patch or in a subsequent one.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>


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


Re: [jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by Ignacio Silva-Lepe <is...@verizon.net>.
I posted a new patch for this but have not received the corresponding email. 
In case others are on the same boat, I append the text of the post.

Here's a new patch that modifies CompositeBuilderTestCase to verify that the 
Connector also works for composite services and references.
This patch also includes a more complete sample with an inner composite that 
has an inner service, inner component and inner reference; the inner 
composite is wired from an outer composite to a sibling component and the 
inner component then invokes the outer component.
This patch also fixes a bug, where the loader for implementation composite 
was not being called, by adding a component to composite.scdl in sca/test, 
sca/commands/launcher and sca/runtime/webapp-host.
Finally, for some reason having to do with class loaders, the class for the 
sample's inner service interface was not being found. This has not been 
resolved, at least not well enough. To get over the hurdle I hacked 
LoaderUtil.loadClass to try the old class loader if the one in the 
deployment context does not work. This seems to work but is obviously not 
adequate (not to mention the glaring println). In the interest of making 
progress, I include the hack in this patch. Hopefully the real fix can be 
incorporated during commit of this patch or in a subsequent one. 



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


[jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Ignacio Silva-Lepe updated TUSCANY-642:
---------------------------------------

    Attachment: CompositeRefsAndSvcs2.txt

In case first has not been applied, I added a piece to JDKWireService that I forgot about to set the wire on a composite reference; I also improved CompositeBuilderTestCase

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Ignacio Silva-Lepe
>             Fix For: Java-Mx
>
>         Attachments: CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Ignacio Silva-Lepe updated TUSCANY-642:
---------------------------------------

    Attachment: SimplerCompositeReferenceInvocation2.patch

This patch changes composite and JDK invocation handlers to only set fromAddress in the message in the forward direction.
It passes all test cases in core and spi as well as the inner.composite, supplychain and simplecallback sample. This latter sample is updated to set the application scdl for its parent SCATestCase.


> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Jim Marino
>             Fix For: Java-Mx
>
>         Attachments: CommentsOut.patch, CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch, RevisedInnerCompositeCallback.patch, SimplerCompositeReferenceInvocation.patch, SimplerCompositeReferenceInvocation2.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Jeremy Boynes (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-642?page=comments#action_12434472 ] 
            
Jeremy Boynes commented on TUSCANY-642:
---------------------------------------

CommentsOut patch applied - thanks

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Jim Marino
>             Fix For: Java-Mx
>
>         Attachments: CommentsOut.patch, CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch, RevisedInnerCompositeCallback.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Scott Kurz (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-642?page=comments#action_12433608 ] 
            
Scott Kurz commented on TUSCANY-642:
------------------------------------

I'm having two problems w/ this last patch, RevisedInnerCompositeCallback.patch

First,  when I try to apply w/:
> patch -p0 -i *.patch

I get:
........
patching file sca/kernel/core/src/test/java/org/apache/tuscany/core/implementation/composite/CompositeBuilderTestCase.java
Hunk #2 FAILED at 44.

So I hand-patched that.  Second there looks to be a typo in JDKWireService, line 308:

            for (Operation<?> operation : contract.getCallbacksOperations().values()) {

That should be: : contract.getCallbackOperation()  I think; the other won't compile.

I would post an update but I don't understand the 1st problem (looks fine to me) so I'll leave that to you.  









> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Jim Marino
>             Fix For: Java-Mx
>
>         Attachments: CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch, RevisedInnerCompositeCallback.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Ignacio Silva-Lepe updated TUSCANY-642:
---------------------------------------

    Attachment: SimplerCompositeReferenceInvocation6.patch

This patch replaces stacks for linked lists in the implementation of callback routing chains.
The patch passes all test cases in spi, core and bindings.axis2, as well as the supplychain, simplecallback and inner.composite samples, and the ws async samples.

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Jim Marino
>             Fix For: Java-Mx
>
>         Attachments: CommentsOut.patch, CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch, RevisedInnerCompositeCallback.patch, SimplerCompositeReferenceInvocation.patch, SimplerCompositeReferenceInvocation2.patch, SimplerCompositeReferenceInvocation3.patch, SimplerCompositeReferenceInvocation4.patch, SimplerCompositeReferenceInvocation5.patch, SimplerCompositeReferenceInvocation6.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Ignacio Silva-Lepe updated TUSCANY-642:
---------------------------------------

    Attachment: SimplerCompositeReferenceInvocation3.patch

This patch further simplifies invocation handlers to only use a message id for the callback case; note that Axis2Service also plays the role of an invocation handler. In the process, workContext becomes unnecessary for JDKOutboundInvocationHandler and so its constructor is simplified.
The patch updates and passes test cases in core and spi, as well as the supplychain, simplecallback, inner.composite, greeterws-oneway and helloworldws-async samples.


> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Jim Marino
>             Fix For: Java-Mx
>
>         Attachments: CommentsOut.patch, CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch, RevisedInnerCompositeCallback.patch, SimplerCompositeReferenceInvocation.patch, SimplerCompositeReferenceInvocation2.patch, SimplerCompositeReferenceInvocation3.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Re: [jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by Ignacio Silva-Lepe <is...@gmail.com>.
Thanks Raymond,

My account seems to be in progress, but I have not yet received any
notification that it is ready.


On 10/17/06, Raymond Feng <en...@gmail.com> wrote:
>
> Hi,
>
> I'll review the patch and apply. BTW, did you get your apache account?
>
> Thanks,
> Raymond
>

Re: [jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by Raymond Feng <en...@gmail.com>.
Hi,

I'll review the patch and apply. BTW, did you get your apache account?

Thanks,
Raymond

----- Original Message ----- 
From: "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>
To: <tu...@ws.apache.org>
Sent: Tuesday, October 17, 2006 12:41 PM
Subject: [jira] Updated: (TUSCANY-642) Composite references and services - 
model and runtime representations


>     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]
>
> Ignacio Silva-Lepe updated TUSCANY-642:
> ---------------------------------------
>
>    Attachment: SimplerCompositeReferenceInvocation.patch
>
> This patch provides a simpler implementation of composite reference and 
> composite service outbound invocation handler and callback invocation 
> handler. The invocation handlers now: (1) take in a message as a 
> parameter, and (2) do not create a new message to pass on to the head 
> interceptor. This also allows eliminating the use of a work context to 
> carry message id info from the corresponding target invokers.
> These changes follow up on the conversation in 
> http://www.mail-archive.com/tuscany-dev%40ws.apache.org/msg08182.html
> The patch updates and passes all test cases in core, as well as the 
> inner.composite sample.
>
>> Composite references and services - model and runtime representations
>> ---------------------------------------------------------------------
>>
>>                 Key: TUSCANY-642
>>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>>             Project: Tuscany
>>          Issue Type: New Feature
>>          Components: Java SCA Core
>>    Affects Versions: Java-Mx
>>            Reporter: Ignacio Silva-Lepe
>>         Assigned To: Jim Marino
>>             Fix For: Java-Mx
>>
>>         Attachments: CommentsOut.patch, CompositeRefsAndSvcs.txt, 
>> CompositeRefsAndSvcs2.txt, InnerComposite.patch, 
>> InnerCompositeCallback.patch, InnerCompositeCallback2.patch, 
>> RevisedInnerCompositeCallback.patch, 
>> SimplerCompositeReferenceInvocation.patch
>>
>>
>> Support is added to represent composite references and services (those in 
>> a composite and without a binding) in the model and runtime. The 
>> CompositeBuilder is updated to build a composite component that includes 
>> composite references and services without bindings.
>
> -- 
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators: 
> http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> 


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


[jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Ignacio Silva-Lepe updated TUSCANY-642:
---------------------------------------

    Attachment: SimplerCompositeReferenceInvocation.patch

This patch provides a simpler implementation of composite reference and composite service outbound invocation handler and callback invocation handler. The invocation handlers now: (1) take in a message as a parameter, and (2) do not create a new message to pass on to the head interceptor. This also allows eliminating the use of a work context to carry message id info from the corresponding target invokers.
These changes follow up on the conversation in http://www.mail-archive.com/tuscany-dev%40ws.apache.org/msg08182.html
The patch updates and passes all test cases in core, as well as the inner.composite sample.

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Jim Marino
>             Fix For: Java-Mx
>
>         Attachments: CommentsOut.patch, CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch, RevisedInnerCompositeCallback.patch, SimplerCompositeReferenceInvocation.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (TUSCANY-642) Composite references and services - model and runtime representations

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-642?page=all ]

Ignacio Silva-Lepe updated TUSCANY-642:
---------------------------------------

    Attachment: SimplerCompositeReferenceInvocation4.patch

This patch changes the AbstractOutboundInvocationHandler spi, as well as Axis2Service to take the messageId and correlationId as parms. This avoids having to cache the ids in the handler subclasses, which can be thread unsafe.
The patch passes all test cases in spi, core and bindings.axis2, as well as the supplychain, simplecallback and inner.composite samples.

> Composite references and services - model and runtime representations
> ---------------------------------------------------------------------
>
>                 Key: TUSCANY-642
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-642
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>         Assigned To: Jim Marino
>             Fix For: Java-Mx
>
>         Attachments: CommentsOut.patch, CompositeRefsAndSvcs.txt, CompositeRefsAndSvcs2.txt, InnerComposite.patch, InnerCompositeCallback.patch, InnerCompositeCallback2.patch, RevisedInnerCompositeCallback.patch, SimplerCompositeReferenceInvocation.patch, SimplerCompositeReferenceInvocation2.patch, SimplerCompositeReferenceInvocation3.patch, SimplerCompositeReferenceInvocation4.patch
>
>
> Support is added to represent composite references and services (those in a composite and without a binding) in the model and runtime. The CompositeBuilder is updated to build a composite component that includes composite references and services without bindings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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