<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>dev@tuscany.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/"/>
<id>http://mail-archives.apache.org/mod_mbox/tuscany-dev/</id>
<updated>2009-12-09T20:28:47Z</updated>
<entry>
<title>[jira] Commented: (TUSCANY-3390) atom feed does not work on browsers properly for 1.5.1</title>
<author><name>&quot;Luciano Resende (JIRA)&quot; &lt;dev@tuscany.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c1416386830.1260380298546.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1416386830-1260380298546-JavaMail-jira@brutus%3e</id>
<updated>2009-12-09T17:38:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/TUSCANY-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12788182#action_12788182
] 

Luciano Resende commented on TUSCANY-3390:
------------------------------------------

Thanks for reporting this, While I take a look at this, in order for you to make progress,
you could look into the samples/store from the 1.5.1 release which is basically the same example
from the getting started guide.

&gt; atom feed does not work on browsers properly for 1.5.1
&gt; ------------------------------------------------------
&gt;
&gt;                 Key: TUSCANY-3390
&gt;                 URL: https://issues.apache.org/jira/browse/TUSCANY-3390
&gt;             Project: Tuscany
&gt;          Issue Type: Bug
&gt;          Components: Java SCA ATOM Binding Extension
&gt;    Affects Versions: Java-SCA-1.5.1
&gt;         Environment: windows xp java 1.6 eclipse 3.4 ganymede sca 1.5.1 plugin
&gt;            Reporter: Kalpeshkumar Soni
&gt;
&gt; I installed eclipse and installed the tuscany plugin from http://archive.apache.org/dist/tuscany/java/sca/1.5.1/tuscany-sca-1.5.1-updatesite/
&gt; I was able to run the store sample that uses jsonrpc and atom feed as an example
&gt; the atom feed is not working properly
&gt; in the browser i see the items but not correct name or prices
&gt; it does not look like the screen shots posted in http://tuscany.apache.org/getting-started-with-tuscany-using-tuscany-eclipse-plugin.html
when I hit http://localhost:8080/ShoppingCart
&gt; I tried with Firefox 3.5 and IE7

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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (TUSCANY-3390) atom feed does not work on browsers properly for 1.5.1</title>
<author><name>&quot;Kalpeshkumar Soni (JIRA)&quot; &lt;dev@tuscany.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c2122525823.1260377958084.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2122525823-1260377958084-JavaMail-jira@brutus%3e</id>
<updated>2009-12-09T16:59:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/TUSCANY-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12788159#action_12788159
] 

Kalpeshkumar Soni commented on TUSCANY-3390:
--------------------------------------------

This is the xml for the /ShoppingCart/Cart

&lt;?xml version="1.0" encoding="http://www.w3.org/2005/Atom" standalone="no"?&gt;
&lt;feed xmlns="http://www.w3.org/2005/Atom"&gt;
&lt;title type="text"&gt;Feed&lt;/title&gt;
&lt;id&gt;Feed31472225&lt;/id&gt;
&lt;entry&gt;
&lt;id&gt;cart-490e683a-c27a-49a9-a0b5-d861c443def1&lt;/id&gt;
&lt;title type="text"&gt;item&lt;/title&gt;
&lt;content type="application/xml"&gt;
&lt;ns2:root xmlns:ns2="http://tuscany.apache.org/xmlns/sca/databinding/jaxb/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="item"&gt;
&lt;name xmlns=""&gt;Pear&lt;/name&gt;
&lt;price xmlns=""&gt;$1.55&lt;/price&gt;
&lt;/ns2:root&gt;
&lt;/content&gt;
&lt;link href="cart-490e683a-c27a-49a9-a0b5-d861c443def1"/&gt;
&lt;/entry&gt;
&lt;/feed&gt;

&gt; atom feed does not work on browsers properly for 1.5.1
&gt; ------------------------------------------------------
&gt;
&gt;                 Key: TUSCANY-3390
&gt;                 URL: https://issues.apache.org/jira/browse/TUSCANY-3390
&gt;             Project: Tuscany
&gt;          Issue Type: Bug
&gt;          Components: Java SCA ATOM Binding Extension
&gt;    Affects Versions: Java-SCA-1.5.1
&gt;         Environment: windows xp java 1.6 eclipse 3.4 ganymede sca 1.5.1 plugin
&gt;            Reporter: Kalpeshkumar Soni
&gt;
&gt; I installed eclipse and installed the tuscany plugin from http://archive.apache.org/dist/tuscany/java/sca/1.5.1/tuscany-sca-1.5.1-updatesite/
&gt; I was able to run the store sample that uses jsonrpc and atom feed as an example
&gt; the atom feed is not working properly
&gt; in the browser i see the items but not correct name or prices
&gt; it does not look like the screen shots posted in http://tuscany.apache.org/getting-started-with-tuscany-using-tuscany-eclipse-plugin.html
when I hit http://localhost:8080/ShoppingCart
&gt; I tried with Firefox 3.5 and IE7

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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (TUSCANY-3390) atom feed does not work on browsers properly for 1.5.1</title>
<author><name>&quot;Kalpeshkumar Soni (JIRA)&quot; &lt;dev@tuscany.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c2070282328.1260377598081.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2070282328-1260377598081-JavaMail-jira@brutus%3e</id>
<updated>2009-12-09T16:53:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
atom feed does not work on browsers properly for 1.5.1
------------------------------------------------------

                 Key: TUSCANY-3390
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3390
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA ATOM Binding Extension
    Affects Versions: Java-SCA-1.5.1
         Environment: windows xp java 1.6 eclipse 3.4 ganymede sca 1.5.1 plugin
            Reporter: Kalpeshkumar Soni


I installed eclipse and installed the tuscany plugin from http://archive.apache.org/dist/tuscany/java/sca/1.5.1/tuscany-sca-1.5.1-updatesite/

I was able to run the store sample that uses jsonrpc and atom feed as an example

the atom feed is not working properly

in the browser i see the items but not correct name or prices

it does not look like the screen shots posted in http://tuscany.apache.org/getting-started-with-tuscany-using-tuscany-eclipse-plugin.html
when I hit http://localhost:8080/ShoppingCart

I tried with Firefox 3.5 and IE7

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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>&quot;Raymond Feng&quot; &lt;enjoyjava@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3cD1F21EA01BC644EC8A156604AC6AA5D0@rfengt61p%3e"/>
<id>urn:uuid:%3cD1F21EA01BC644EC8A156604AC6AA5D0@rfengt61p%3e</id>
<updated>2009-12-09T16:52:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Before we start to refactor the NodeFactory/Node API, let me explain how the 
current ones are defined.

1) A NodeFactory represents an instance of the Tuscany kernel with an 
ExtensionPointRegistry to access all extension points and extensions.

2) A Node is a unit of work that consists of a group of top-level components 
from the SCA domain composite that can be started/stopped together. It's 
typically configured as a list of contributions with deployable composites 
that contain the group of top-level components.

3) A NodeConfiguration model is defined to capture all the attributes for 
the configuration of a Node. NodeFactory can be used as the factory to 
create NodeConfiguration instances. The NodeConfiguration provides a Java 
DSL style methods to set the attributes. For example,

        NodeConfiguration configuration =
            NodeFactory.newInstance().createNodeConfiguration().setDomainURI("domain1").setURI("node1")
                .setDomainRegistryURI("tribes://...").addContribution("c1", 
"file://.../contribution1");

4) A NodeConfiguration can be populated from various sources, such as the 
command-line arguments, an XML node.xml, a feed, or classpath discovery.

5) NodeFactory.createNode(NodeConfiguration config) is the ultimate method 
that all other flavors of createNode() methods will delegate to. Each flavor 
of the createNode() API is just to provide a convenient way to populate a 
NodeConfiguration.

6) The following is a list of createNode() methods:

Create a node instance from the NodeConfiguration model. This is the 
canonical API.

    createNode(NodeConfiguration):

The following methods create a NodeConfiguration from the deployment 
composite (which can be the URI within a contribution, an absolute URL, or 
the content) and a list of contributions (uri for the id and url for the 
location).

    createNode(Contribution...):
    createNode(String, Contribution...)
    createNode(String, String[])
    createNode(String, String[], String[])
    createNode(InputStream, Contribution...)
    createNode(Reader, Contribution...)
    createNode(Reader, String[], String[])

Please note it's a combination of different ways to provide the deployment 
composite and contributions. For example, we can use the 
uri/reader/inputstream for the composite. For contributions, they can be 
passed in as an array of Contribution (uri+location) obects, two arrays of 
contribution uris and locations (String[], String[]) or an array of 
contribution locations (String[], the uri is default to the location).

The next two methods allows a Node to created from the node.xml.

    createNode(InputStream)
    createNode(URL)

The last two methods are shortcuts to discover the node configuration from 
the classpath.

createNode() - using META-INF/sca-contribution.xml as the resource to look 
up the contribution on the classpath.
createNode(String, ClassLoader) - using the deployment composite uri as the 
resource name and the classloader to look up a contribution on the 
classpath. The location of the contribution is the classpath entry to the 
resource name.

I'm open to refine some of the createNode() flavors.

Thanks,
Raymond
--------------------------------------------------
From: "Simon Laws" &lt;simonslaws@googlemail.com&gt;
Sent: Wednesday, December 09, 2009 7:09 AM
To: &lt;dev@tuscany.apache.org&gt;; &lt;antelder@apache.org&gt;
Subject: Re: [2.x] node configuration attributes

&gt;&gt; - createNode(URI uri, String... contributionLocations);
&gt;&gt; where the uri is the config uri that can be used to configure things
&gt;&gt; like the domain name and registry. That would match the SCAClient API
&gt;&gt; that takes the the similar uri to connect to the running services
&gt;
&gt; +1 It would seem sensible that all the atributes (that started this
&gt; discussion) should be able to be provided via the API as well as via
&gt; the XML file. So we should support uri, domainURI, domainRegistryURI
&gt; (I haven't gone back and looked at the difference yet)
&gt;
&gt;&gt;
&gt;&gt; - it would useful and consistent to have a way to use Nodes with the
&gt;&gt; objects created from the Deployer so for example you can doing things
&gt;&gt; like Deployer.loadContribution, fiddle about with the Contribution and
&gt;&gt; then use that object in a Node. I'm not suggesting a method signature
&gt;&gt; for this yet as this opens up quite a lot of interesting options. For
&gt;&gt; example, all the NodeFactory methods about attaching or adding
&gt;&gt; deployment composites could then be done via the Deployer instead of
&gt;&gt; all the overloaded createNode methods. To do this well requires quite
&gt;&gt; a lot of changes to the Node APIs but after some playing around it
&gt;&gt; looks to me like it could make the APIs much cleaner with the simple
&gt;&gt; uses clear and obvious and the more complex cases more consistent and
&gt;&gt; powerful.
&gt;
&gt; Interesting. Sounds like you have examples. Can you post? Need to be
&gt; careful about dependencies, i.e. to use the API what dependencies do
&gt; you need to include. We have a workspace manager in 1.x that combines
&gt; deployer type features with the ability to interact with the
&gt; runtime/exntrsion points. No precisely what you are suggesting but I
&gt; remember there were a lot of dependencies. Let discuss more and see
&gt; where it goes.
&gt;
&gt;&gt;
&gt;&gt; - rename createNode(URL) to match the other loadConfiguration method,
&gt;&gt; or rename both to something like createNodeFromConfig
&gt;
&gt; Didn't spot those methods down at the bottom of NodeFactory. So we also 
&gt; have...
&gt;
&gt;    public abstract Node createNode(NodeConfiguration configuration);
&gt;        node configuration object
&gt;    public abstract NodeConfiguration loadConfiguration(InputStream
&gt; xml, URL base);
&gt;        XML = node config xml? base = ?
&gt;
&gt; createNode would be more consistent
&gt;
&gt;&gt;
&gt;&gt; Some to remove:
&gt;&gt; - all the ones using classloaders
&gt;&gt; - the Client Interface and just add the getService method to Node
&gt;
&gt; Can we return an SCA client factory instance for the node
&gt;
&gt;&gt; - the destroy method
&gt;&gt; - the getInstance(String domainURI) as there's the createNode that
&gt;&gt; includes the URI
&gt;&gt;
&gt;&gt;   ...ant
&gt;&gt; 


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Separate JIRA component for travel sample</title>
<author><name>Luciano Resende &lt;luckbr1975@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c5a75db780912090815k7b58a4bbo911368a74e536276@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5a75db780912090815k7b58a4bbo911368a74e536276@mail-gmail-com%3e</id>
<updated>2009-12-09T16:15:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Wed, Dec 9, 2009 at 12:59 AM, Simon Laws &lt;simonslaws@googlemail.com&gt; wrote:
&gt; Tutorial or demo seems like the right place to me. I would go with
&gt; Tutorial given the option. I agree with Simon that it's not a good fit
&gt; with samples.
&gt;
&gt; Simon
&gt;

Great, +1 for tutorial.

-- 
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3cc0c051b50912090709k3edf5f9aifbdc7494efa7de8f@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50912090709k3edf5f9aifbdc7494efa7de8f@mail-gmail-com%3e</id>
<updated>2009-12-09T15:09:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; - createNode(URI uri, String... contributionLocations);
&gt; where the uri is the config uri that can be used to configure things
&gt; like the domain name and registry. That would match the SCAClient API
&gt; that takes the the similar uri to connect to the running services

+1 It would seem sensible that all the atributes (that started this
discussion) should be able to be provided via the API as well as via
the XML file. So we should support uri, domainURI, domainRegistryURI
(I haven't gone back and looked at the difference yet)

&gt;
&gt; - it would useful and consistent to have a way to use Nodes with the
&gt; objects created from the Deployer so for example you can doing things
&gt; like Deployer.loadContribution, fiddle about with the Contribution and
&gt; then use that object in a Node. I'm not suggesting a method signature
&gt; for this yet as this opens up quite a lot of interesting options. For
&gt; example, all the NodeFactory methods about attaching or adding
&gt; deployment composites could then be done via the Deployer instead of
&gt; all the overloaded createNode methods. To do this well requires quite
&gt; a lot of changes to the Node APIs but after some playing around it
&gt; looks to me like it could make the APIs much cleaner with the simple
&gt; uses clear and obvious and the more complex cases more consistent and
&gt; powerful.

Interesting. Sounds like you have examples. Can you post? Need to be
careful about dependencies, i.e. to use the API what dependencies do
you need to include. We have a workspace manager in 1.x that combines
deployer type features with the ability to interact with the
runtime/exntrsion points. No precisely what you are suggesting but I
remember there were a lot of dependencies. Let discuss more and see
where it goes.

&gt;
&gt; - rename createNode(URL) to match the other loadConfiguration method,
&gt; or rename both to something like createNodeFromConfig

Didn't spot those methods down at the bottom of NodeFactory. So we also have...

    public abstract Node createNode(NodeConfiguration configuration);
        node configuration object
    public abstract NodeConfiguration loadConfiguration(InputStream
xml, URL base);
        XML = node config xml? base = ?

createNode would be more consistent

&gt;
&gt; Some to remove:
&gt; - all the ones using classloaders
&gt; - the Client Interface and just add the getService method to Node

Can we return an SCA client factory instance for the node

&gt; - the destroy method
&gt; - the getInstance(String domainURI) as there's the createNode that
&gt; includes the URI
&gt;
&gt;   ...ant
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>ant elder &lt;antelder@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c71e1b5740912090641h753da602n7947ca35aa89ea48@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740912090641h753da602n7947ca35aa89ea48@mail-gmail-com%3e</id>
<updated>2009-12-09T14:41:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Wed, Dec 9, 2009 at 2:02 PM, Simon Laws &lt;simonslaws@googlemail.com&gt; wrote:
&gt; The createNode(String... contributionLocations); operation sounds
&gt; reasonable. I'd like to make a list of what we have in various places
&gt; and what it's utility is. We already have several ways of creating
&gt; nodes through APIs and launchers and they are not consistent.
&gt;
&gt; node-api/NodeFactory
&gt;    public Node createNode(URL configurationURL) {
&gt;        URL of a node config doc
&gt;    public Node createNode(InputStream is) {
&gt;        node config doc as a stream
&gt;    public Node createNode(String deploymentCompositeURI,
&gt; Contribution... contributions)
&gt;        deployment composite URI and list of contribution configurations
&gt;    public final Node createNode(String deploymentCompositeURI,
&gt; String[] uris, String locations[])
&gt;         ???
&gt;    public final Node createNode(String deploymentCompositeURI, String
&gt; locations[])
&gt;         ???
&gt;    public final Node createNode(Reader deploymentCompositeContent,
&gt; String[] uris, String locations[])
&gt;          ???
&gt;    public final Node createNode(String compositeURI, ClassLoader classLoader)
&gt;          ???
&gt;    public Node createNode(Contribution... contributions)
&gt;         list of contribution configurations
&gt;    public Node createNode(InputStream compositeContent,
&gt; Contribution... contributions)
&gt;         contributions and deployment composite in an input stream
&gt;    public Node createNode(Reader compositeContent, Contribution...
&gt; contributions)
&gt;        contributions and deployment composite in a reader
&gt;    public Node createNode()
&gt;        assume contrib is in current directory
&gt;   Seems to be a lot. What can we add/remove? Ant already suggested a
&gt; list of contribution locations.
&gt;

Some more additions:

- createNode(URI uri, String... contributionLocations);
where the uri is the config uri that can be used to configure things
like the domain name and registry. That would match the SCAClient API
that takes the the similar uri to connect to the running services

- it would useful and consistent to have a way to use Nodes with the
objects created from the Deployer so for example you can doing things
like Deployer.loadContribution, fiddle about with the Contribution and
then use that object in a Node. I'm not suggesting a method signature
for this yet as this opens up quite a lot of interesting options. For
example, all the NodeFactory methods about attaching or adding
deployment composites could then be done via the Deployer instead of
all the overloaded createNode methods. To do this well requires quite
a lot of changes to the Node APIs but after some playing around it
looks to me like it could make the APIs much cleaner with the simple
uses clear and obvious and the more complex cases more consistent and
powerful.

- rename createNode(URL) to match the other loadConfiguration method,
or rename both to something like createNodeFromConfig

Some to remove:
- all the ones using classloaders
- the Client Interface and just add the getService method to Node
- the destroy method
- the getInstance(String domainURI) as there's the createNode that
includes the URI

   ...ant


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3cc0c051b50912090602k14d540a8n38df28f548991b4c@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50912090602k14d540a8n38df28f548991b4c@mail-gmail-com%3e</id>
<updated>2009-12-09T14:02:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The createNode(String... contributionLocations); operation sounds
reasonable. I'd like to make a list of what we have in various places
and what it's utility is. We already have several ways of creating
nodes through APIs and launchers and they are not consistent.

node-api/NodeFactory
    public Node createNode(URL configurationURL) {
        URL of a node config doc
    public Node createNode(InputStream is) {
        node config doc as a stream
    public Node createNode(String deploymentCompositeURI,
Contribution... contributions)
        deployment composite URI and list of contribution configurations
    public final Node createNode(String deploymentCompositeURI,
String[] uris, String locations[])
         ???
    public final Node createNode(String deploymentCompositeURI, String
locations[])
         ???
    public final Node createNode(Reader deploymentCompositeContent,
String[] uris, String locations[])
          ???
    public final Node createNode(String compositeURI, ClassLoader classLoader)
          ???
    public Node createNode(Contribution... contributions)
         list of contribution configurations
    public Node createNode(InputStream compositeContent,
Contribution... contributions)
         contributions and deployment composite in an input stream
    public Node createNode(Reader compositeContent, Contribution...
contributions)
        contributions and deployment composite in a reader
    public Node createNode()
        assume contrib is in current directory
   Seems to be a lot. What can we add/remove? Ant already suggested a
list of contribution locations.

domain-node/DomainNodeMain
    what args can be provided here?

node-launcher/NodeMain
    -nd
    -dm
    I'd be happy to loose this one. Extra code for very little value
IMHO. Just choose the appropriate launcher

node-launcher/NodeLauncher
    -c   compositeUri
    -n   node
    -s   service
    -t    time to live
    contribution...    a list of contribution locations
    are there other options?

node-launcher/NodeDaemonLauncher
   This this just started the node launcher and waits (with some fancy
shut down logic)

node-launcher/DomainManagerLauncher
   I assume this is not used at the moment?

node-launcher-equinox/NodeLauncher
    Has different options again so need to consolidate

Simon


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>ant elder &lt;antelder@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c71e1b5740912090437o64b370bfq55bc253915275ae9@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740912090437o64b370bfq55bc253915275ae9@mail-gmail-com%3e</id>
<updated>2009-12-09T12:37:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Tue, Dec 8, 2009 at 3:25 PM, Simon Laws &lt;simonslaws@googlemail.com&gt; wrote:


&gt; 3/ review API use cases

Ok so whats the easiest way to do that?

- posting to the ML or wiki page with suggestions and updates
- dive in and start updating the node-api module
- start a new node-api module somewhere else to work on the use cases
and updates

That last of those seem easiest to me as it will make it easier to
keep track of.

To start, the simplest most common use case we have is to create a
Node from contributions which have deployables defined in
sca-contribution.xml files so it would be good to have a simplest
possible method for that, eg:

  createNode(String... contributionLocations);

does that sound reasonable?

   ...ant


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Problems with distributed endpoints</title>
<author><name>ant elder &lt;antelder@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c71e1b5740912090203m3e19e8fai276c2d2db57b2780@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740912090203m3e19e8fai276c2d2db57b2780@mail-gmail-com%3e</id>
<updated>2009-12-09T10:03:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Tue, Dec 8, 2009 at 5:14 AM, Luciano Resende &lt;luckbr1975@gmail.com&gt; wrote:
&gt; On Mon, Dec 7, 2009 at 6:01 AM, ant elder &lt;ant.elder@gmail.com&gt; wrote:
&gt;&gt; On Sat, Dec 5, 2009 at 1:00 AM, Raymond Feng &lt;enjoyjava@gmail.com&gt; wrote:
&gt;&gt;&gt; Hi,
&gt;&gt;&gt;
&gt;&gt;&gt; I fixed the issue under http://svn.apache.org/viewvc?rev=887470&amp;view=rev.
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; Thanks that does help get passed this particular problem.
&gt;&gt;
&gt;&gt;&gt; I also have some local changes that enable the build.xml to run two nodes
&gt;&gt;&gt; with different JVMs over tribes based multicast. Do you know if the build
&gt;&gt;&gt; machine supports multicast? If so, I can commit the changes.
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; I'd guess that multicast will work within the one build machine, but
&gt;&gt; if it didn't the static routes support we have does work enough to
&gt;&gt; support this as there's just two nodes. However, the test isn't really
&gt;&gt; good enough at verifying things work yet - if something breaks the
&gt;&gt; test will still pass successfully - so there's not a whole lot of
&gt;&gt; point having it part of the build until we fix that. I've already
&gt;&gt; started looking at adding some better tests as part of all this domain
&gt;&gt; work.
&gt;&gt;
&gt;&gt; Incidentally i'm finding quite a lot of other issues as i use this to
&gt;&gt; do with things like the classloaders using by tribes or sca bindings,
&gt;&gt; inconsistencies in the endpoint URIs used by all the different pieces,
&gt;&gt; particular runtime requirements caused by the way endpoints get
&gt;&gt; serialized etc. I'll try to post more on those in separate emails.
&gt;&gt;
&gt;&gt;   ...ant
&gt;&gt;
&gt;
&gt; Where we are with this issue ? Does this happen just when deployed in
&gt; the tomcat/tuscany.war environment or is there a way to reproduce this
&gt; using some itest (e.g. itest-nodes-two-nodes-two-vms-test) ? If you
&gt; guys still have the issue and want some help, I could take a look at
&gt; this.
&gt;

No its not just the tomcat/tuscany.war environment, but there aren't
very good or many tests around this area yet, helping write some would
be a great place to start :)

   ...ant


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] Regarding Contribution ClassLoader in POJO specs 1.1</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3cc0c051b50912090118s7f3290c9ka2be9700ab5324f8@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50912090118s7f3290c9ka2be9700ab5324f8@mail-gmail-com%3e</id>
<updated>2009-12-09T09:18:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Wed, Dec 9, 2009 at 8:54 AM, ant elder &lt;ant.elder@gmail.com&gt; wrote:
&gt; On Wed, Dec 9, 2009 at 7:37 AM, Ramkumar R &lt;ramkumar.rj@gmail.com&gt; wrote:
&gt;&gt; Hi Simon,
&gt;&gt;
&gt;&gt; Comments inline...
&gt;&gt;
&gt;&gt;&gt; Not sure if this is important or not. In the implementation invoker we
&gt;&gt;&gt; need to set TCCL to the contribution classloader that loaded the
&gt;&gt;&gt; implementation class we are about to call. So how to get the
&gt;&gt;&gt; contribution and it's classloader for the class we are about to call.
&gt;&gt;&gt; The easy way is to get the classloader from the class and set that of
&gt;&gt;&gt; course. I don't know if no changes have been made to make this work or
&gt;&gt;&gt; that some changes have been made but that something was missed out.
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; The issue seems to be resolved and the testcase passes, by setting the TCCL
&gt;&gt; to the
&gt;&gt; classloader that loaded the implementation class we are about to call.
&gt;&gt;
&gt;
&gt; Is that really correct though for what section 10.3 in the spec is
&gt; saying? The implementation class doesn't necessarily come from the
&gt; containing contribution it could be an imported class, in which case
&gt; according to JCI100010 and JCI100011 that would be using be a
&gt; different class loader.

Not sure what you mean by "containing contribution" here but as I
understand it TCCL should reference the class loader that loaded the
component implementation class. I.e this is neither just some
arbitraty class loader nor is it necessarily the class loader for the
contribution that loaded the running composite.

&gt;
&gt;&gt; But this approach raises few questions in my mind as shown below...
&gt;&gt;
&gt;&gt; 1. In 1.x code base, we have been using the ContributionClassLoaderProvider
&gt;&gt; to set the
&gt;&gt; classloader for the contribution, but in 2.x not sure about the reason as
&gt;&gt; why decided to
&gt;&gt; get away with ContributionClassLoaderProvider.
&gt;&gt;
&gt;
&gt; I'm not sure if i understood this from your 1st email - isnt there a
&gt; ClassLoaderModelResolver instance per contribution? And if so what
&gt; happens if the ClassLoaderModelResolver instance is set as the TCCL?

Not sure precisely what the question is here.

&gt;&gt; 2. May be, I am not understanding the big picture as why the specs is so
&gt;&gt; keen in
&gt;&gt; doing so. What would be the disadvantage if we don't set the TCCL to the
&gt;&gt; contribution classloader.
&gt;&gt;
&gt;
&gt; I guess just so there's a consistent and predictable way to use class
&gt; loaders and contribution resources across runtimes.

And when you are coding in the context of of a component
implementation you get a know classloader environment, i.e. the
classloader for the class that you are implementing.

Simon


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Separate JIRA component for travel sample</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3cc0c051b50912090059g1340a8fcs7b220ec32f75a3be@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50912090059g1340a8fcs7b220ec32f75a3be@mail-gmail-com%3e</id>
<updated>2009-12-09T08:59:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Tutorial or demo seems like the right place to me. I would go with
Tutorial given the option. I agree with Simon that it's not a good fit
with samples.

Simon


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] Regarding Contribution ClassLoader in POJO specs 1.1</title>
<author><name>ant elder &lt;ant.elder@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c71e1b5740912090054h57a71765l89695e198f903631@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740912090054h57a71765l89695e198f903631@mail-gmail-com%3e</id>
<updated>2009-12-09T08:54:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Wed, Dec 9, 2009 at 7:37 AM, Ramkumar R &lt;ramkumar.rj@gmail.com&gt; wrote:
&gt; Hi Simon,
&gt;
&gt; Comments inline...
&gt;
&gt;&gt; Not sure if this is important or not. In the implementation invoker we
&gt;&gt; need to set TCCL to the contribution classloader that loaded the
&gt;&gt; implementation class we are about to call. So how to get the
&gt;&gt; contribution and it's classloader for the class we are about to call.
&gt;&gt; The easy way is to get the classloader from the class and set that of
&gt;&gt; course. I don't know if no changes have been made to make this work or
&gt;&gt; that some changes have been made but that something was missed out.
&gt;&gt;
&gt;
&gt; The issue seems to be resolved and the testcase passes, by setting the TCCL
&gt; to the
&gt; classloader that loaded the implementation class we are about to call.
&gt;

Is that really correct though for what section 10.3 in the spec is
saying? The implementation class doesn't necessarily come from the
containing contribution it could be an imported class, in which case
according to JCI100010 and JCI100011 that would be using be a
different class loader.

&gt; But this approach raises few questions in my mind as shown below...
&gt;
&gt; 1. In 1.x code base, we have been using the ContributionClassLoaderProvider
&gt; to set the
&gt; classloader for the contribution, but in 2.x not sure about the reason as
&gt; why decided to
&gt; get away with ContributionClassLoaderProvider.
&gt;

I'm not sure if i understood this from your 1st email - isnt there a
ClassLoaderModelResolver instance per contribution? And if so what
happens if the ClassLoaderModelResolver instance is set as the TCCL?

&gt; 2. May be, I am not understanding the big picture as why the specs is so
&gt; keen in
&gt; doing so. What would be the disadvantage if we don't set the TCCL to the
&gt; contribution classloader.
&gt;

I guess just so there's a consistent and predictable way to use class
loaders and contribution resources across runtimes.

   ...ant


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Separate JIRA component for travel sample</title>
<author><name>Simon Nash &lt;nash@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c4B1F617A.5000409@apache.org%3e"/>
<id>urn:uuid:%3c4B1F617A-5000409@apache-org%3e</id>
<updated>2009-12-09T08:36:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Luciano Resende wrote:
&gt; On Tue, Dec 8, 2009 at 9:00 PM, Simon Nash &lt;nash@apache.org&gt; wrote:
&gt;&gt; Simon Laws wrote:
&gt;&gt;&gt; +1 also would like to see the sample in the 1.x trunk if people are
&gt;&gt;&gt; happy to see it added.
&gt;&gt;&gt;
&gt;&gt;&gt; Simon
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt; I have added this component to JIRA.
&gt;&gt;
&gt;&gt; +1 for making the travel sample part of the 1.x trunk.
&gt;&gt;
&gt; 
&gt; Where in trunk are you guys thinking to have it ? Under tutorials/travel ?
&gt; Anyway, +1 to make it part of trunk.
&gt; 
&gt; 
Putting this under tutorials/travel makes sense to me.  The other
option is to put it under samples, but this seems less appropriate
because the samples directory currently contains a number of much
smaller samples that illustrate specific aspects of SCA rather than
how SCA is used in a realistic application.

   Simon



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] Regarding Contribution ClassLoader in POJO specs 1.1</title>
<author><name>Ramkumar R &lt;ramkumar.rj@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c4d292ac10912082337o18fa9477k1e6f6f31f30e80a1@mail.gmail.com%3e"/>
<id>urn:uuid:%3c4d292ac10912082337o18fa9477k1e6f6f31f30e80a1@mail-gmail-com%3e</id>
<updated>2009-12-09T07:37:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
*Hi Simon,*

Comments inline...

Not sure if this is important or not. In the implementation invoker we
&gt; need to set TCCL to the contribution classloader that loaded the
&gt; implementation class we are about to call. So how to get the
&gt; contribution and it's classloader for the class we are about to call.
&gt; The easy way is to get the classloader from the class and set that of
&gt; course. I don't know if no changes have been made to make this work or
&gt; that some changes have been made but that something was missed out.
&gt;
&gt;
The issue seems to be resolved and the testcase passes, by setting the TCCL
to the
classloader that loaded the implementation class we are about to call.

But this approach raises few questions in my mind as shown below...

1. In 1.x code base, we have been using the ContributionClassLoaderProvider
to set the
classloader for the contribution, but in 2.x not sure about the reason as
why decided to
get away with ContributionClassLoaderProvider.

2. May be, I am not understanding the big picture as why the specs is so
keen in
doing so. What would be the disadvantage if we don't set the TCCL to the
contribution classloader.


-- 
Thanks &amp; Regards,
Ramkumar Ramalingam


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Separate JIRA component for travel sample</title>
<author><name>Luciano Resende &lt;luckbr1975@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c5a75db780912082333g7087479eh925da9b2075f3b2d@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5a75db780912082333g7087479eh925da9b2075f3b2d@mail-gmail-com%3e</id>
<updated>2009-12-09T07:33:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Tue, Dec 8, 2009 at 9:00 PM, Simon Nash &lt;nash@apache.org&gt; wrote:
&gt; Simon Laws wrote:
&gt;&gt;
&gt;&gt; +1 also would like to see the sample in the 1.x trunk if people are
&gt;&gt; happy to see it added.
&gt;&gt;
&gt;&gt; Simon
&gt;&gt;
&gt;&gt;
&gt; I have added this component to JIRA.
&gt;
&gt; +1 for making the travel sample part of the 1.x trunk.
&gt;

Where in trunk are you guys thinking to have it ? Under tutorials/travel ?
Anyway, +1 to make it part of trunk.


-- 
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Separate JIRA component for travel sample</title>
<author><name>Simon Nash &lt;nash@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c4B1F2EEE.50201@apache.org%3e"/>
<id>urn:uuid:%3c4B1F2EEE-50201@apache-org%3e</id>
<updated>2009-12-09T05:00:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Simon Laws wrote:
&gt; +1 also would like to see the sample in the 1.x trunk if people are
&gt; happy to see it added.
&gt; 
&gt; Simon
&gt; 
&gt; 
I have added this component to JIRA.

+1 for making the travel sample part of the 1.x trunk.

   Simon



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (TUSCANY-3389) Tuscany Policies is returning an error code of 401 instead of 403 when an authenticated user requests a service which is not authorized for their role</title>
<author><name>&quot;Luciano Resende (JIRA)&quot; &lt;dev@tuscany.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c1711181482.1260321498104.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1711181482-1260321498104-JavaMail-jira@brutus%3e</id>
<updated>2009-12-09T01:18:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/TUSCANY-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Luciano Resende updated TUSCANY-3389:
-------------------------------------

    Affects Version/s: Java-SCA-Next
        Fix Version/s: Java-SCA-Next
             Assignee: Luciano Resende

&gt; Tuscany Policies is returning an error code of 401 instead of 403 when an authenticated
user requests a service which is not authorized for their role
&gt; ------------------------------------------------------------------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: TUSCANY-3389
&gt;                 URL: https://issues.apache.org/jira/browse/TUSCANY-3389
&gt;             Project: Tuscany
&gt;          Issue Type: Bug
&gt;          Components: Java SCA Policy
&gt;    Affects Versions: Java-SCA-Next
&gt;         Environment: WASCE on Mac
&gt;            Reporter: Abraham Guerra
&gt;            Assignee: Luciano Resende
&gt;            Priority: Minor
&gt;             Fix For: Java-SCA-Next
&gt;
&gt;
&gt; I defined a secured service and provided authorized roles.
&gt; I authenticated as a user who is not in the appropriate role and requested the above
service.
&gt; Policies returned a 401 error instead of 403

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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (TUSCANY-3389) Tuscany Policies is returning an error code of 401 instead of 403 when an authenticated user requests a service which is not authorized for their role</title>
<author><name>&quot;Abraham Guerra (JIRA)&quot; &lt;dev@tuscany.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c698714004.1260317958327.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c698714004-1260317958327-JavaMail-jira@brutus%3e</id>
<updated>2009-12-09T00:19:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Tuscany Policies is returning an error code of 401 instead of 403 when an authenticated user
requests a service which is not authorized for their role
------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: TUSCANY-3389
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3389
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Policy
         Environment: WASCE on Mac
            Reporter: Abraham Guerra
            Priority: Minor


I defined a secured service and provided authorized roles.
I authenticated as a user who is not in the appropriate role and requested the above service.
Policies returned a 401 error instead of 403

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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>ant elder &lt;antelder@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c71e1b5740912081602g1e152e70k74142bd17708c44c@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740912081602g1e152e70k74142bd17708c44c@mail-gmail-com%3e</id>
<updated>2009-12-09T00:02:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Heh, well whatever I'm not saying don't, just it doesn't seem so
necessary or interesting to me ATM.

You didn't comment on the bit about the whether a user really needs to
know or care about the node URI?

   ...ant

On Tue, Dec 8, 2009 at 11:52 PM, Raymond Feng &lt;enjoyjava@gmail.com&gt; wrote:
&gt; I don't agree. Using an external XML gives us the flexibility to configure
&gt; the node. It is very useful for launchers. In the webapp case, we can start
&gt; it from a remote node.xml without packaging the composites/contributions in
&gt; the webapp itself.
&gt;
&gt; Having APIs doesn't conflict with the need to support XML configuration.
&gt; It's just different ways to populate the in-memory model. It's somewhat
&gt; similar as SCA SCDL vs. the Tuscany models.
&gt;
&gt; Thanks,
&gt; Raymond
&gt; --------------------------------------------------
&gt; From: "ant elder" &lt;antelder@apache.org&gt;
&gt; Sent: Tuesday, December 08, 2009 3:40 PM
&gt; To: &lt;dev@tuscany.apache.org&gt;
&gt; Subject: Re: [2.x] node configuration attributes
&gt;
&gt;&gt; On Tue, Dec 8, 2009 at 11:13 PM, Raymond Feng &lt;enjoyjava@gmail.com&gt; wrote:
&gt;&gt;&gt;
&gt;&gt;&gt; See my comments inline.
&gt;&gt;&gt;
&gt;&gt;&gt; Thanks,
&gt;&gt;&gt; Raymond
&gt;&gt;&gt; --------------------------------------------------
&gt;&gt;&gt; From: "ant elder" &lt;antelder@apache.org&gt;
&gt;&gt;&gt; Sent: Tuesday, December 08, 2009 2:58 PM
&gt;&gt;&gt; To: &lt;dev@tuscany.apache.org&gt;
&gt;&gt;&gt; Subject: Re: [2.x] node configuration attributes
&gt;&gt;&gt;
&gt;&gt;&gt; [[snip]]
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; What are the use cases for the XML representation? We dont actually
&gt;&gt;&gt;&gt; have anything in 2.x that needs this yet, could it be left till there
&gt;&gt;&gt;&gt; is something?
&gt;&gt;&gt;
&gt;&gt;&gt; Yes, we do.
&gt;&gt;&gt;
&gt;&gt;&gt; * We use the node.xml files to configure the client and server node in
&gt;&gt;&gt; itest-nodes-two-nodes-two-vms-test.
&gt;&gt;&gt; * We use it in web application integration so that a node can be created
&gt;&gt;&gt; from the webapp from a node.xml which can be local or remote.
&gt;&gt;
&gt;&gt; Those arent really "use cases" though are they and they both can be
&gt;&gt; done fine if not better with the other exsiting APIs.
&gt;&gt;
&gt;&gt;&gt; * We plan to bring up the Domain Manager which will provision the domain
&gt;&gt;&gt; into a set of nodes. The configuration will be served using the node.xml
&gt;&gt;&gt; format.
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; Ok that might be one, but wouldn't it better to work out what any xml
&gt;&gt; that might need looks like at the time its being done?
&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; 4) I don't think node/@uri should be removed. Multiple nodes can have
&gt;&gt;&gt;&gt;&gt; the
&gt;&gt;&gt;&gt;&gt; same domain URI and domain registry URI. The node URI should uniquely
&gt;&gt;&gt;&gt;&gt; identifies a node within an SCA domain. We can use a simple name
&gt;&gt;&gt;&gt;&gt; instead
&gt;&gt;&gt;&gt;&gt; of
&gt;&gt;&gt;&gt;&gt; URI.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; What are the use cases for the node URI? The "node" is a concept thats
&gt;&gt;&gt;&gt; not in any SCA spec which we're making up for Tuscany so I'm trying to
&gt;&gt;&gt;&gt; understand if there are real reasons for needing to expose a node uri
&gt;&gt;&gt;&gt; in any user API?
&gt;&gt;&gt;
&gt;&gt;&gt; Node URI is used to uniquely identify a node within the SCA domain. It's
&gt;&gt;&gt; similar as the domain or contribution URI. You can view it as an "id" of
&gt;&gt;&gt; the
&gt;&gt;&gt; node. If the URI is not provided, we will generate one. Having a
&gt;&gt;&gt; user-defined ID makes it simpler to manage the nodes (for example, in the
&gt;&gt;&gt; domain manager).
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; But again, we don't have a domain manager yet so are there any other
&gt;&gt; real reasons for a user needing to give a node an id? Users care about
&gt;&gt; things like domains and contributions and services, why do they need
&gt;&gt; to think about nodes id's?
&gt;&gt;
&gt;&gt; What i'm trying to get at with these is what do we really need in the
&gt;&gt; Java API. Currently theres lots of stuff thats just there for
&gt;&gt; historical reasons that I think we can clean up and simplify and I
&gt;&gt; hope these reviews will help with that, and we should try to minimize
&gt;&gt; adding stuff just in case coz it sounds like it could be useful one
&gt;&gt; day. Maybe we will need an XML format too but thats less interesting
&gt;&gt; to me at the moment.
&gt;&gt;
&gt;&gt;  ...ant
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>&quot;Raymond Feng&quot; &lt;enjoyjava@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c10EC20D499B549A1BC8EA2F9685BF9BB@rfengt61p%3e"/>
<id>urn:uuid:%3c10EC20D499B549A1BC8EA2F9685BF9BB@rfengt61p%3e</id>
<updated>2009-12-08T23:52:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I don't agree. Using an external XML gives us the flexibility to configure 
the node. It is very useful for launchers. In the webapp case, we can start 
it from a remote node.xml without packaging the composites/contributions in 
the webapp itself.

Having APIs doesn't conflict with the need to support XML configuration. 
It's just different ways to populate the in-memory model. It's somewhat 
similar as SCA SCDL vs. the Tuscany models.

Thanks,
Raymond
--------------------------------------------------
From: "ant elder" &lt;antelder@apache.org&gt;
Sent: Tuesday, December 08, 2009 3:40 PM
To: &lt;dev@tuscany.apache.org&gt;
Subject: Re: [2.x] node configuration attributes

&gt; On Tue, Dec 8, 2009 at 11:13 PM, Raymond Feng &lt;enjoyjava@gmail.com&gt; wrote:
&gt;&gt; See my comments inline.
&gt;&gt;
&gt;&gt; Thanks,
&gt;&gt; Raymond
&gt;&gt; --------------------------------------------------
&gt;&gt; From: "ant elder" &lt;antelder@apache.org&gt;
&gt;&gt; Sent: Tuesday, December 08, 2009 2:58 PM
&gt;&gt; To: &lt;dev@tuscany.apache.org&gt;
&gt;&gt; Subject: Re: [2.x] node configuration attributes
&gt;&gt;
&gt;&gt; [[snip]]
&gt;&gt;
&gt;&gt;&gt; What are the use cases for the XML representation? We dont actually
&gt;&gt;&gt; have anything in 2.x that needs this yet, could it be left till there
&gt;&gt;&gt; is something?
&gt;&gt;
&gt;&gt; Yes, we do.
&gt;&gt;
&gt;&gt; * We use the node.xml files to configure the client and server node in
&gt;&gt; itest-nodes-two-nodes-two-vms-test.
&gt;&gt; * We use it in web application integration so that a node can be created
&gt;&gt; from the webapp from a node.xml which can be local or remote.
&gt;
&gt; Those arent really "use cases" though are they and they both can be
&gt; done fine if not better with the other exsiting APIs.
&gt;
&gt;&gt; * We plan to bring up the Domain Manager which will provision the domain
&gt;&gt; into a set of nodes. The configuration will be served using the node.xml
&gt;&gt; format.
&gt;&gt;
&gt;
&gt; Ok that might be one, but wouldn't it better to work out what any xml
&gt; that might need looks like at the time its being done?
&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; 4) I don't think node/@uri should be removed. Multiple nodes can have 
&gt;&gt;&gt;&gt; the
&gt;&gt;&gt;&gt; same domain URI and domain registry URI. The node URI should uniquely
&gt;&gt;&gt;&gt; identifies a node within an SCA domain. We can use a simple name 
&gt;&gt;&gt;&gt; instead
&gt;&gt;&gt;&gt; of
&gt;&gt;&gt;&gt; URI.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; What are the use cases for the node URI? The "node" is a concept thats
&gt;&gt;&gt; not in any SCA spec which we're making up for Tuscany so I'm trying to
&gt;&gt;&gt; understand if there are real reasons for needing to expose a node uri
&gt;&gt;&gt; in any user API?
&gt;&gt;
&gt;&gt; Node URI is used to uniquely identify a node within the SCA domain. It's
&gt;&gt; similar as the domain or contribution URI. You can view it as an "id" of 
&gt;&gt; the
&gt;&gt; node. If the URI is not provided, we will generate one. Having a
&gt;&gt; user-defined ID makes it simpler to manage the nodes (for example, in the
&gt;&gt; domain manager).
&gt;&gt;
&gt;
&gt; But again, we don't have a domain manager yet so are there any other
&gt; real reasons for a user needing to give a node an id? Users care about
&gt; things like domains and contributions and services, why do they need
&gt; to think about nodes id's?
&gt;
&gt; What i'm trying to get at with these is what do we really need in the
&gt; Java API. Currently theres lots of stuff thats just there for
&gt; historical reasons that I think we can clean up and simplify and I
&gt; hope these reviews will help with that, and we should try to minimize
&gt; adding stuff just in case coz it sounds like it could be useful one
&gt; day. Maybe we will need an XML format too but thats less interesting
&gt; to me at the moment.
&gt;
&gt;  ...ant 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>ant elder &lt;antelder@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c71e1b5740912081540u19ad59a1gc69cb59c1cbc7457@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740912081540u19ad59a1gc69cb59c1cbc7457@mail-gmail-com%3e</id>
<updated>2009-12-08T23:40:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Tue, Dec 8, 2009 at 11:13 PM, Raymond Feng &lt;enjoyjava@gmail.com&gt; wrote:
&gt; See my comments inline.
&gt;
&gt; Thanks,
&gt; Raymond
&gt; --------------------------------------------------
&gt; From: "ant elder" &lt;antelder@apache.org&gt;
&gt; Sent: Tuesday, December 08, 2009 2:58 PM
&gt; To: &lt;dev@tuscany.apache.org&gt;
&gt; Subject: Re: [2.x] node configuration attributes
&gt;
&gt; [[snip]]
&gt;
&gt;&gt; What are the use cases for the XML representation? We dont actually
&gt;&gt; have anything in 2.x that needs this yet, could it be left till there
&gt;&gt; is something?
&gt;
&gt; Yes, we do.
&gt;
&gt; * We use the node.xml files to configure the client and server node in
&gt; itest-nodes-two-nodes-two-vms-test.
&gt; * We use it in web application integration so that a node can be created
&gt; from the webapp from a node.xml which can be local or remote.

Those arent really "use cases" though are they and they both can be
done fine if not better with the other exsiting APIs.

&gt; * We plan to bring up the Domain Manager which will provision the domain
&gt; into a set of nodes. The configuration will be served using the node.xml
&gt; format.
&gt;

Ok that might be one, but wouldn't it better to work out what any xml
that might need looks like at the time its being done?

&gt;&gt;
&gt;&gt;&gt; 4) I don't think node/@uri should be removed. Multiple nodes can have the
&gt;&gt;&gt; same domain URI and domain registry URI. The node URI should uniquely
&gt;&gt;&gt; identifies a node within an SCA domain. We can use a simple name instead
&gt;&gt;&gt; of
&gt;&gt;&gt; URI.
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; What are the use cases for the node URI? The "node" is a concept thats
&gt;&gt; not in any SCA spec which we're making up for Tuscany so I'm trying to
&gt;&gt; understand if there are real reasons for needing to expose a node uri
&gt;&gt; in any user API?
&gt;
&gt; Node URI is used to uniquely identify a node within the SCA domain. It's
&gt; similar as the domain or contribution URI. You can view it as an "id" of the
&gt; node. If the URI is not provided, we will generate one. Having a
&gt; user-defined ID makes it simpler to manage the nodes (for example, in the
&gt; domain manager).
&gt;

But again, we don't have a domain manager yet so are there any other
real reasons for a user needing to give a node an id? Users care about
things like domains and contributions and services, why do they need
to think about nodes id's?

What i'm trying to get at with these is what do we really need in the
Java API. Currently theres lots of stuff thats just there for
historical reasons that I think we can clean up and simplify and I
hope these reviews will help with that, and we should try to minimize
adding stuff just in case coz it sounds like it could be useful one
day. Maybe we will need an XML format too but thats less interesting
to me at the moment.

  ...ant


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>&quot;Raymond Feng&quot; &lt;enjoyjava@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c7E6B358B8BDB4BFFBBF3B17545961AB8@rfengt61p%3e"/>
<id>urn:uuid:%3c7E6B358B8BDB4BFFBBF3B17545961AB8@rfengt61p%3e</id>
<updated>2009-12-08T23:13:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
See my comments inline.

Thanks,
Raymond
--------------------------------------------------
From: "ant elder" &lt;antelder@apache.org&gt;
Sent: Tuesday, December 08, 2009 2:58 PM
To: &lt;dev@tuscany.apache.org&gt;
Subject: Re: [2.x] node configuration attributes

[[snip]]

&gt; What are the use cases for the XML representation? We dont actually
&gt; have anything in 2.x that needs this yet, could it be left till there
&gt; is something?

Yes, we do.

* We use the node.xml files to configure the client and server node in 
itest-nodes-two-nodes-two-vms-test.
* We use it in web application integration so that a node can be created 
from the webapp from a node.xml which can be local or remote.
* We plan to bring up the Domain Manager which will provision the domain 
into a set of nodes. The configuration will be served using the node.xml 
format.

&gt;
&gt;&gt; 4) I don't think node/@uri should be removed. Multiple nodes can have the
&gt;&gt; same domain URI and domain registry URI. The node URI should uniquely
&gt;&gt; identifies a node within an SCA domain. We can use a simple name instead 
&gt;&gt; of
&gt;&gt; URI.
&gt;&gt;
&gt;
&gt; What are the use cases for the node URI? The "node" is a concept thats
&gt; not in any SCA spec which we're making up for Tuscany so I'm trying to
&gt; understand if there are real reasons for needing to expose a node uri
&gt; in any user API?

Node URI is used to uniquely identify a node within the SCA domain. It's 
similar as the domain or contribution URI. You can view it as an "id" of the 
node. If the URI is not provided, we will generate one. Having a 
user-defined ID makes it simpler to manage the nodes (for example, in the 
domain manager).

&gt;
&gt;   ...ant 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>ant elder &lt;antelder@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c71e1b5740912081458pfac8ff7nf0cd648633cb82b3@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740912081458pfac8ff7nf0cd648633cb82b3@mail-gmail-com%3e</id>
<updated>2009-12-08T22:58:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Tue, Dec 8, 2009 at 4:06 PM, Raymond Feng &lt;enjoyjava@gmail.com&gt; wrote:


&gt; 4) Having an XML representation of the node configuration is good. It can
&gt; serve as the canonical persistence format. Sure, the node configuration can
&gt; be derived from many options:
&gt;   * arguments on the command line
&gt;   * programmatically via the NodeConfiguration model APIs
&gt;   * from a live URL to the domain manager
&gt;   * from classpath discovery
&gt;   * ...

What are the use cases for the XML representation? We dont actually
have anything in 2.x that needs this yet, could it be left till there
is something?

&gt; 4) I don't think node/@uri should be removed. Multiple nodes can have the
&gt; same domain URI and domain registry URI. The node URI should uniquely
&gt; identifies a node within an SCA domain. We can use a simple name instead of
&gt; URI.
&gt;

What are the use cases for the node URI? The "node" is a concept thats
not in any SCA spec which we're making up for Tuscany so I'm trying to
understand if there are real reasons for needing to expose a node uri
in any user API?

   ...ant


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] What information should be serialized with EndpointReference/Endpoint and how to resolve them on the consumer side?</title>
<author><name>&quot;Raymond Feng&quot; &lt;enjoyjava@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c97E6CEB2AA994A4F8A464A796BE175EA@rfengt61p%3e"/>
<id>urn:uuid:%3c97E6CEB2AA994A4F8A464A796BE175EA@rfengt61p%3e</id>
<updated>2009-12-08T18:41:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The scenarios you listed look good. You added the matching perspective to 
what I had for the serialization/deserialization.

Case 1: No serialization/deserialization is involved. The matching is based 
on the local endpoints.

Case 2: Remote endpoint descriptions are received from the registry which 
can be p2p or centralized. It only provides the following information:

* The protocol-specific endpoint address (to connect to the target endpoint)
* The binding structural URI (to identify the endpoint in the domain 
hierarchy to resolve @target)
* The binding type (to know the binding protocol)
* The intents and policySets (to match the policy configurations)

Deployment-time matching is limited since the node doesn't have knowledge of 
the artifacts (interfaces in particular) from the target endpoint.

Case 3: A domain manager that serves as:
*  A repository for contributions that can be used to validate domain-level 
wirings at deployment time
*  A a registry to provide endpoint descriptions and policy definitions at 
runtime

Thanks,
Raymond
--------------------------------------------------
From: "Simon Laws" &lt;simonslaws@googlemail.com&gt;
Sent: Tuesday, December 08, 2009 10:15 AM
To: &lt;dev@tuscany.apache.org&gt;
Subject: Re: [2.x] What information should be serialized with 
EndpointReference/Endpoint and how to resolve them on the consumer side?

&gt; I think we have to take a view on this. Standing back what scenarios
&gt; are we trying to support?
&gt;
&gt; 1/ a single node that matches EPRs within a composite
&gt; 2/ a distributed set of nodes that are started independently, have no
&gt; central point of control and no ability to match domain level EPRs
&gt; other than via the distributed registry
&gt; 3/ a distributed set of nodes that are started with reference to a
&gt; distributed registry populated by a domain manager
&gt;
&gt; In 1 the node has all of the contributions/assets it needs to validate
&gt; all wires and ensure that EPRs match EPs before the application is
&gt; started
&gt;
&gt; In 2 each node can only validate local wires fully before the app is
&gt; started. For EPRs to services running in other nodes we want to
&gt; minimize the amount of information used for matching and hence the
&gt; amount of information that has to be represented in the registry. I
&gt; think the minimum set is as follows (taken from the wiki page)
&gt;  The protocol-specific endpoint address
&gt;  The binding structural URI
&gt;  The binding type
&gt;  The intents and policySets
&gt;
&gt; I've missed out interface contracts here because even if we do name
&gt; the contract in the registry we won't have the assets local to the EPR
&gt; to complete the matching process. We could choose some intermediate
&gt; format for the interface contract and pass that but it's extra
&gt; complication. The flip side of this is that we may wire remote
&gt; references and then find that there is some interface matching issue
&gt; at runtime.
&gt;
&gt; In 3, as in 1, the full set of matching can be performed before the
&gt; registry is populated because the domain manager has access to all of
&gt; the assets. interface matching errors can therefore be reported before
&gt; the nodes are started.
&gt;
&gt; So can we live with leaving detection of interface miss-matches until
&gt; runtime in scenario 2? I think I probably could in the first instance
&gt; but it leaves me a little uneasy that there is an inconsistency.
&gt;
&gt; A subsidiary question related to policy sets. We will provide policy
&gt; specific matching code which will need to be present in the EPR node
&gt; in order for the match to take place. However we would have to assume
&gt; that any resources to which a policy set refers may not be available
&gt; for matching based on the point made above. I.e. we can match the XML
&gt; but not any referenced resources.
&gt;
&gt; Simon 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>&quot;Raymond Feng&quot; &lt;enjoyjava@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c7DE3105402044DBE8FB84507F6CCB407@rfengt61p%3e"/>
<id>urn:uuid:%3c7DE3105402044DBE8FB84507F6CCB407@rfengt61p%3e</id>
<updated>2009-12-08T18:30:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
You can think this way:

domainURI: The URI of an SCA domain is the "logical id" (or name) of the 
domain. The syntax of the URI is free-form and it doesn't imply any URL 
connections.
domainRegistryURI: The URI of the "physical address" for the domain 
registry. For example, we can use "tribes://228.0.0.100:50000" to say we are 
going to use a tribes-based multicast over 228.0.0.100 (a multicast address 
for the group) and port 50000. If the domain registry is a HTTP based 
server, then the URI can be something like http://myhost:8080/mydomain.

Theoretically, we can use the same protocol address to support multiple SCA 
domains.  The domain URI can then be used to organize the entries for 
endpoint descriptions.

Thanks,
Raymond
--------------------------------------------------
From: "Simon Laws" &lt;simonslaws@googlemail.com&gt;
Sent: Tuesday, December 08, 2009 9:59 AM
To: &lt;dev@tuscany.apache.org&gt;
Subject: Re: [2.x] node configuration attributes

&gt; ok, wasn't suggesting that we remove node/@uri just questioning it's
&gt; name. So we would have...
&gt;
&gt; &lt;node xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200903"
&gt;   xmlns="http://tuscany.apache.org/xmlns/sca/1.1"
&gt;   xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
&gt;   uri="http://sample/nodes/TestNode1"
&gt;   domainURI="http://domain1"
&gt;   domainRegistryURI="tribes:default"&gt;
&gt;
&gt; Still not clear about the precise utility of domainURI vs
&gt; domainRegistryURI. I'll take a look at the code
&gt;
&gt; Simon 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] What information should be serialized with	EndpointReference/Endpoint and how to resolve them on the consumer side?</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3cc0c051b50912081015h2ee1b8c6g8d20ba18ca5d9786@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50912081015h2ee1b8c6g8d20ba18ca5d9786@mail-gmail-com%3e</id>
<updated>2009-12-08T18:15:05Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I think we have to take a view on this. Standing back what scenarios
are we trying to support?

1/ a single node that matches EPRs within a composite
2/ a distributed set of nodes that are started independently, have no
central point of control and no ability to match domain level EPRs
other than via the distributed registry
3/ a distributed set of nodes that are started with reference to a
distributed registry populated by a domain manager

In 1 the node has all of the contributions/assets it needs to validate
all wires and ensure that EPRs match EPs before the application is
started

In 2 each node can only validate local wires fully before the app is
started. For EPRs to services running in other nodes we want to
minimize the amount of information used for matching and hence the
amount of information that has to be represented in the registry. I
think the minimum set is as follows (taken from the wiki page)
  The protocol-specific endpoint address
  The binding structural URI
  The binding type
  The intents and policySets

I've missed out interface contracts here because even if we do name
the contract in the registry we won't have the assets local to the EPR
to complete the matching process. We could choose some intermediate
format for the interface contract and pass that but it's extra
complication. The flip side of this is that we may wire remote
references and then find that there is some interface matching issue
at runtime.

In 3, as in 1, the full set of matching can be performed before the
registry is populated because the domain manager has access to all of
the assets. interface matching errors can therefore be reported before
the nodes are started.

So can we live with leaving detection of interface miss-matches until
runtime in scenario 2? I think I probably could in the first instance
but it leaves me a little uneasy that there is an inconsistency.

A subsidiary question related to policy sets. We will provide policy
specific matching code which will need to be present in the EPR node
in order for the match to take place. However we would have to assume
that any resources to which a policy set refers may not be available
for matching based on the point made above. I.e. we can match the XML
but not any referenced resources.

Simon


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3cc0c051b50912080959k375e376aq34ddb918274885af@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50912080959k375e376aq34ddb918274885af@mail-gmail-com%3e</id>
<updated>2009-12-08T17:59:02Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
ok, wasn't suggesting that we remove node/@uri just questioning it's
name. So we would have...

&lt;node xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200903"
   xmlns="http://tuscany.apache.org/xmlns/sca/1.1"
   xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
   uri="http://sample/nodes/TestNode1"
   domainURI="http://domain1"
   domainRegistryURI="tribes:default"&gt;

Still not clear about the precise utility of domainURI vs
domainRegistryURI. I'll take a look at the code

Simon


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Separate JIRA component for travel sample</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3cc0c051b50912080949m5980a5d3gde47f80d78217331@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50912080949m5980a5d3gde47f80d78217331@mail-gmail-com%3e</id>
<updated>2009-12-08T17:49:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
+1 also would like to see the sample in the 1.x trunk if people are
happy to see it added.

Simon


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Heads up - OASIS SCA Namespace changing</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3cc0c051b50912080944s7f4921b5hf933d34ce0828e32@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50912080944s7f4921b5hf933d34ce0828e32@mail-gmail-com%3e</id>
<updated>2009-12-08T17:44:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks Luciano

Simon



-- 
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com


</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (TUSCANY-3388) Update OASIS SCA Namespace</title>
<author><name>&quot;Luciano Resende (JIRA)&quot; &lt;dev@tuscany.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c1132556625.1260289518287.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1132556625-1260289518287-JavaMail-jira@brutus%3e</id>
<updated>2009-12-08T16:25:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Update OASIS SCA Namespace 
---------------------------

                 Key: TUSCANY-3388
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3388
             Project: Tuscany
          Issue Type: Bug
          Components: OASIS Compliance - TUSCANY
    Affects Versions: Java-SCA-2.0
            Reporter: Luciano Resende
            Assignee: Luciano Resende
             Fix For: Java-SCA-2.0


In last week OASIS Assembly F2F, it was decided that the OASIS SCA Namespace is going to be
changed as described below:

currently:
http://docs.oasis-open.org/ns/opencsa/sca/200903

new:
http://docs.oasis-open.org/ns/opencsa/sca/200912

I'm going to create a JIRA, and work on the necessary changes by end of weekend once the OASIS
schemas get updated.

[1] http://www.oasis-open.org/apps/org/workgroup/sca-assembly/email/archives/200912/msg00019.html

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



</pre>
</div>
</content>
</entry>
<entry>
<title>Heads up - OASIS SCA Namespace changing</title>
<author><name>Luciano Resende &lt;luckbr1975@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c5a75db780912080822h3de24416v973b0e3f212f8ea2@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5a75db780912080822h3de24416v973b0e3f212f8ea2@mail-gmail-com%3e</id>
<updated>2009-12-08T16:22:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
In last week OASIS Assembly F2F, it was decided that the OASIS SCA
Namespace is going to be changed as described below:

currently:
http://docs.oasis-open.org/ns/opencsa/sca/200903

new:
http://docs.oasis-open.org/ns/opencsa/sca/200912

I'm going to create a JIRA, and work on the necessary changes by end
of weekend once the OASIS schemas get updated.

[1] http://www.oasis-open.org/apps/org/workgroup/sca-assembly/email/archives/200912/msg00019.html

-- 
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Separate JIRA component for travel sample</title>
<author><name>Luciano Resende &lt;luckbr1975@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c5a75db780912080810v6fb66568y576a4b25c5b7a23c@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5a75db780912080810v6fb66568y576a4b25c5b7a23c@mail-gmail-com%3e</id>
<updated>2009-12-08T16:10:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Mon, Dec 7, 2009 at 10:44 PM, Raymond Feng &lt;enjoyjava@gmail.com&gt; wrote:
&gt; +1. When it is ready, we can release the travel sample as well.
&gt;

+1

-- 
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>&quot;Raymond Feng&quot; &lt;enjoyjava@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c3658AEEABD8E4FC199B5C60093C9F66F@rfengt61p%3e"/>
<id>urn:uuid:%3c3658AEEABD8E4FC199B5C60093C9F66F@rfengt61p%3e</id>
<updated>2009-12-08T16:06:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Some points:

1) The element name is &lt;node&gt;. Using "uri" as the attribute name is 
consistent with the standard SCA XML style, such as component/@uri, 
binding/@uri.
2) @domain is the URI of the SCA domain. The domain URI is defined by SCA 
assembly spec. It uniquely identifies an SCA domain. I'm OK to change it to 
be domainURI.
3) @domainRegistry holds a URI that can be used to connect to the domain 
registry. Our EndpointRegistry uses the domain URI and domain registry URI 
to connect to the back store that holds the endpoint descriptions.
4) Having an XML representation of the node configuration is good. It can 
serve as the canonical persistence format. Sure, the node configuration can 
be derived from many options:
    * arguments on the command line
    * programmatically via the NodeConfiguration model APIs
    * from a live URL to the domain manager
    * from classpath discovery
    * ...
4) I don't think node/@uri should be removed. Multiple nodes can have the 
same domain URI and domain registry URI. The node URI should uniquely 
identifies a node within an SCA domain. We can use a simple name instead of 
URI.

Thanks,
Raymond
--------------------------------------------------
From: "ant elder" &lt;ant.elder@gmail.com&gt;
Sent: Tuesday, December 08, 2009 5:57 AM
To: &lt;dev@tuscany.apache.org&gt;
Subject: Re: [2.x] node configuration attributes

&gt; On Tue, Dec 8, 2009 at 1:19 PM, Simon Laws &lt;simonslaws@googlemail.com&gt; 
&gt; wrote:
&gt;&gt; The node configuration file starts as follows:
&gt;&gt;
&gt;&gt; &lt;node xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200903"
&gt;&gt;    xmlns="http://tuscany.apache.org/xmlns/sca/1.1"
&gt;&gt;    xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
&gt;&gt;    uri="http://sample/nodes/TestNode1"
&gt;&gt;    domain="http://domain1"
&gt;&gt;    domainRegistry="tribes:default"&gt;
&gt;&gt;
&gt;&gt; This seems a little confusing.
&gt;&gt;
&gt;&gt; - why "uri" rather than nodeURI?
&gt;&gt; - why "domain" rather than "domainURI?
&gt;&gt; - what's the difference between domain and domainRegistry?
&gt;&gt;
&gt;
&gt; Theres a lot that still needs to be cleaned up in this area. I dont
&gt; think theres any longer a need for the node uri should to be surfaced
&gt; to users at all. When i added the registry uri the intention was the
&gt; domain name would be derived from that, so with "tribes:default" i'd
&gt; expected the domain name to be "default" and not need to be defined
&gt; elsewhere. It would also be good to make all this easier to use from
&gt; the APIs without needing to write an XML document.
&gt;
&gt;   ...ant 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3cc0c051b50912080725o2d114304r43ae63fde197e2c2@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50912080725o2d114304r43ae63fde197e2c2@mail-gmail-com%3e</id>
<updated>2009-12-08T15:25:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; Sounds ok and I don't think that already exists, I'd also add a 3/ or
&gt; perhaps that should be 0/ "review what the use cases are that the APIs
&gt; are for".
&gt;
&gt;  ...ant
&gt;

+1

1/ review what the configuration parameter set is
2/ review the various APIs we have and what parameters they support.
3/ review API use cases

Simon


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>ant elder &lt;antelder@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c71e1b5740912080721i64b935a3od76698c8054d4e6b@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740912080721i64b935a3od76698c8054d4e6b@mail-gmail-com%3e</id>
<updated>2009-12-08T15:21:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Tue, Dec 8, 2009 at 2:44 PM, Simon Laws &lt;simonslaws@googlemail.com&gt; wrote:
&gt; OK good. I don't see negatives in supporting an XML syntax that
&gt; represents configuration params as long as those parameters are clear
&gt; and consistent.

I wasn't saying there should not be XML, i was suggesting that if
there is XML it should match the API and that the API should be easy
to use so that if you're doing something programatically like these
testcases then you'd probably be using the API instead of resorting to
writing XML.

&gt;  So it seems that we should
&gt;
&gt; 1/ review what the configuration parameter set is
&gt; 2/ review the various APIs we have and what parameters they support.
&gt;
&gt; I'll can go and make a list assuming that someone doesn't point me
&gt; toward an existing one.
&gt;

Sounds ok and I don't think that already exists, I'd also add a 3/ or
perhaps that should be 0/ "review what the use cases are that the APIs
are for".

  ...ant


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3cc0c051b50912080644o40e666a1l2cd493bd04aa015d@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50912080644o40e666a1l2cd493bd04aa015d@mail-gmail-com%3e</id>
<updated>2009-12-08T14:44:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
OK good. I don't see negatives in supporting an XML syntax that
represents configuration params as long as those parameters are clear
and consistent. So it seems that we should

1/ review what the configuration parameter set is
2/ review the various APIs we have and what parameters they support.

I'll can go and make a list assuming that someone doesn't point me
toward an existing one.

Simon


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>ant elder &lt;antelder@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c71e1b5740912080604o58dc957cq5c670d287dc8bad0@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740912080604o58dc957cq5c670d287dc8bad0@mail-gmail-com%3e</id>
<updated>2009-12-08T14:04:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Tue, Dec 8, 2009 at 1:59 PM, Simon Laws &lt;simonslaws@googlemail.com&gt; wrote:
&gt; Is it possible to specify the domainRegistry via the APi at the moment?
&gt;
&gt; Simon
&gt;

Yep, in NodeConfiguration.setDomainRegistryURI or using the more
simple DomainNode in its constructor.

   ...ant


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3cc0c051b50912080559v261a2a93r9ec0f8c8f84aa1d3@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50912080559v261a2a93r9ec0f8c8f84aa1d3@mail-gmail-com%3e</id>
<updated>2009-12-08T13:59:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Is it possible to specify the domainRegistry via the APi at the moment?

Simon


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [2.x] node configuration attributes</title>
<author><name>ant elder &lt;ant.elder@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-dev/200912.mbox/%3c71e1b5740912080557n16b48d20sfb9ab93e7a568196@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740912080557n16b48d20sfb9ab93e7a568196@mail-gmail-com%3e</id>
<updated>2009-12-08T13:57:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Tue, Dec 8, 2009 at 1:19 PM, Simon Laws &lt;simonslaws@googlemail.com&gt; wrote:
&gt; The node configuration file starts as follows:
&gt;
&gt; &lt;node xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200903"
&gt;    xmlns="http://tuscany.apache.org/xmlns/sca/1.1"
&gt;    xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
&gt;    uri="http://sample/nodes/TestNode1"
&gt;    domain="http://domain1"
&gt;    domainRegistry="tribes:default"&gt;
&gt;
&gt; This seems a little confusing.
&gt;
&gt; - why "uri" rather than nodeURI?
&gt; - why "domain" rather than "domainURI?
&gt; - what's the difference between domain and domainRegistry?
&gt;

Theres a lot that still needs to be cleaned up in this area. I dont
think theres any longer a need for the node uri should to be surfaced
to users at all. When i added the registry uri the intention was the
domain name would be derived from that, so with "tribes:default" i'd
expected the domain name to be "default" and not need to be defined
elsewhere. It would also be good to make all this easier to use from
the APIs without needing to write an XML document.

   ...ant


</pre>
</div>
</content>
</entry>
</feed>
