Re: [NOTICE] Welcome Jean-Sebastien Delfino as new Tuscany PMC Chair
Congratulations Jean-Sebastien !! IMO this is well deserved! :-) On Wed, May 22, 2013 at 11:46 PM, Simon Nash n...@apache.org wrote: Luciano Resende wrote: The Tuscany PMC has voted and the Board has confirmed Jean-Sebastien Delfino as the new Tuscany PMC Chair. Congratulations !!! -- Luciano Resende http://people.apache.org/~**lresende http://people.apache.org/~lresende http://twitter.com/**lresende1975 http://twitter.com/lresende1975 http://lresende.blogspot.com/ Congratulations and welcome, Sebastien! Simon -- Best Regards, Nirmal C.S.Nirmal J. Fernando Senior Software Engineer, WSO2 Inc. Blog: http://nirmalfdo.blogspot.com/
Re: [VOTE] Release Tuscany SCA 2.0 RC2
+1 for the release! Thanks Ant for the hard work you've put in, on getting this release in!! On Sun, Jun 24, 2012 at 3:13 PM, ant elder ant.el...@gmail.com wrote: Well +1 from me anyway, would anyone else have a vote? ...ant On Tue, Jun 19, 2012 at 10:02 AM, ant elder ant.el...@gmail.com wrote: Here's the 2.0 RC2 release artifacts, please review and vote. The distributions and staging maven repo are at: http://people.apache.org/~antelder/tuscany/2.0-RC2/ The SVN tag: https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/tags/2.0-RC2/ ...ant -- Best Regards, Nirmal C.S.Nirmal J. Fernando Software Engineer, WSO2 Inc. Blog: http://nirmalfdo.blogspot.com/
Re: Apache Tuscany Composite Diagram Generator as a Service
On Tue, Apr 10, 2012 at 6:57 PM, Luciano Resende luckbr1...@gmail.comwrote: On Mon, Apr 9, 2012 at 10:43 AM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi All, I made a service out of Composite Diagram Generator. Just thought to share it with you: http://goo.gl/OGlA9 Thanks -- Best Regards, Nirmal Cool, looks nice. Thanks Luciano! :) I forgot to mention that this is hosted in WSO2 Stratos Application Server. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Software Engineer, WSO2 Inc. Blog: http://nirmalfdo.blogspot.com/
Re: tuscany and sca
Hi, 2012/3/16 locklockzhang locklockzh...@gmail.com ** i just learned sca and decided to create a project. but with the tuscany and myeclipse, errors comes out ... i just followed this link: http://wiki.eclipse.org/STP/SCA_Component/SCA_First_Steps_With_Composite_Designer however , when comes here, somthing is wrong that i cannot find this *SCA Composite Diagram* when i create new ~ this really troubles me ... i would be appreciate if you could help me ~ Please use Tuscany's own version of Composite Diagram Generator. You can find the maven plugin at [1]. [1] https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/maven/tuscany-diagram-plugin/ wish your reply~ /**To create an SCA diagram: 1. Right-click the project and select *New Other* 2. In the New wizard, select *SCA Composite Diagram* in the *SCA Tools*folder ( *Other* folder if there is no SOA Tools folder) and click *Next*. 3. Choose a folder and type a unique name for the diagram in the *File name* field and click *Finish*. **/ -- locklockzhang -- Best Regards, Nirmal C.S.Nirmal J. Fernando Software Engineer, WSO2 Inc. Blog: http://nirmalfdo.blogspot.com/
Re: [VOTE] Release 2.0-Beta4 RC1
On Wed, Mar 14, 2012 at 2:02 PM, ant elder ant.el...@gmail.com wrote: Still looking for votes on this, one more is needed to release...anyone? I'm +1, if my vote is valid :) ...ant On Mon, Mar 12, 2012 at 8:40 AM, ant elder ant.el...@gmail.com wrote: On Mon, Mar 12, 2012 at 3:28 AM, Nirmal Fernando nirmal070...@gmail.com wrote: Also shouldn't Release note be changed? http://people.apache.org/~antelder/tuscany/2.0-Beta4-RC1/RELEASE_NOTES Yes. Searching through the release it looks like that is the only place that hasn't been changed, the CHANGES file for example has been updated. Seems a shame to have to respin to change a single occurrence of a 3 character to be a 4 so lets wait and see if any issues come up or if it gets another +1 as is. ..ant -- Best Regards, Nirmal C.S.Nirmal J. Fernando Software Engineer, WSO2 Inc. Blog: http://nirmalfdo.blogspot.com/
Re: [VOTE] Release 2.0-Beta4 RC1
Hi Ant, On Mon, Mar 12, 2012 at 3:19 AM, ant elder ant.el...@gmail.com wrote: On Sun, Mar 11, 2012 at 3:41 AM, Luciano Resende luckbr1...@gmail.com wrote: On Thu, Mar 8, 2012 at 1:48 AM, ant elder ant.el...@gmail.com wrote: Here's the release vote for RC1 of the 2.0-Beta4 artifacts, please review and vote. You can find the staged artifacts at: http://people.apache.org/~antelder/tuscany/2.0-Beta4-RC1/ and the SVN tag for the release at: https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/tags/2.0-Beta4-RC1/ The SVN command (svn log -r 1151792:HEAD https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/tags/2.0-Beta4) in the changes file should be corrected to svn log -r 1151792:HEAD https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/tags/2.0-Beta4-RC1 Isn't it? ...ant Seems good, source distribution builds from a clean repo, run RAT and things seems fine. +1 Thanks Luciano. +1 from me too. ...ant -- Best Regards, Nirmal C.S.Nirmal J. Fernando Software Engineer, WSO2 Inc. Blog: http://nirmalfdo.blogspot.com/
Re: [VOTE] Release 2.0-Beta4 RC1
Also shouldn't Release note be changed? http://people.apache.org/~antelder/tuscany/2.0-Beta4-RC1/RELEASE_NOTES On Mon, Mar 12, 2012 at 8:54 AM, Nirmal Fernando nirmal070...@gmail.comwrote: Hi Ant, On Mon, Mar 12, 2012 at 3:19 AM, ant elder ant.el...@gmail.com wrote: On Sun, Mar 11, 2012 at 3:41 AM, Luciano Resende luckbr1...@gmail.com wrote: On Thu, Mar 8, 2012 at 1:48 AM, ant elder ant.el...@gmail.com wrote: Here's the release vote for RC1 of the 2.0-Beta4 artifacts, please review and vote. You can find the staged artifacts at: http://people.apache.org/~antelder/tuscany/2.0-Beta4-RC1/ and the SVN tag for the release at: https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/tags/2.0-Beta4-RC1/ The SVN command (svn log -r 1151792:HEAD https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/tags/2.0-Beta4) in the changes file should be corrected to svn log -r 1151792:HEAD https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/tags/2.0-Beta4-RC1 Isn't it? ...ant Seems good, source distribution builds from a clean repo, run RAT and things seems fine. +1 Thanks Luciano. +1 from me too. ...ant -- Best Regards, Nirmal C.S.Nirmal J. Fernando Software Engineer, WSO2 Inc. Blog: http://nirmalfdo.blogspot.com/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Software Engineer, WSO2 Inc. Blog: http://nirmalfdo.blogspot.com/
Re: Happy Birthday Tuscany
Happy Birthday Tuscany!! :) On Thu, Dec 8, 2011 at 5:06 AM, Raymond Feng enjoyj...@gmail.com wrote: Wow, six years! Raymond Feng Sent from my iPhone On Dec 7, 2011, at 2:30 PM, ant elder ant.el...@gmail.com wrote: Its six years today since Tuscany started as an incubator project at the ASF [1]. ...ant [1] http://apache.markmail.org/message/sc4h3eyfo46tlbfp -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
[GSoC-2011] Final Evaluations Passed - Appreciation
Hi devs, I am happy to inform you that I have successfully passed GSoC final evaluations. I think this is a right time for me to thank all who helped me in my journey as a newbie in Tuscany. First of all I (again) like to thank Jean-Sebastien, my mentor, who helped me through out the project with his valuable ideas, more importantly I appreciate the freedom given and guidance provided by him. Your trust on me and the encouraging words helped me a lot in successfully finishing the project. Secondly I like to thank Raymond Feng who helped me mostly in the application period by reviewing my proposal and providing me his feedback. I strongly believe your comments helped me to pull up a compelling proposal. Ant Elder, helped me enormously through his ideas. Thank you Ant, I highly appreciate the support extended by you. Luciano Resende, Simon Laws, Mike Edwards, Florian Moga and Simon Nash also helped me by replying to my emails in the mailing list, thank you! I sincerely hope all of you find Tuscany Composite Diagram Generator useful! :) Finally, I had an awesome time throughout the summer with Tuscany, and I am hoping to contribute to Tuscany in future as well! Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/ LinkedIn: http://www.linkedin.com/profile/view?id=54105394trk=tab_pro
Providing a User Guide for Composite Diagram Generator Tool
Hi All, I would like to provide a small user guide to help users get started with Composite Diagram Generator Tool. Any thoughts on how should I proceed with it? Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: Providing a User Guide for Composite Diagram Generator Tool
On Fri, Aug 19, 2011 at 7:56 AM, Raymond Feng enjoyj...@gmail.com wrote: Tuscany wiki can be a good place. Will it be ok, to add it under getting started section? ( https://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/Getting+Started) Raymond Feng Sent from my iPhone On Aug 18, 2011, at 3:54 PM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi All, I would like to provide a small user guide to help users get started with Composite Diagram Generator Tool. Any thoughts on how should I proceed with it? Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/http://nirmalfdo.blogspot.com/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [jira] [Issue Comment Edited] (TUSCANY-3496) Develop a simple tool that can be used to generate composite diagrams from the xml files
Hi All, On Sat, Aug 13, 2011 at 12:05 PM, Nirmal Fernando nirmal070...@gmail.comwrote: On Thu, Aug 11, 2011 at 8:20 PM, Nirmal Fernando nirmal070...@gmail.comwrote: Hi Jean, On Wed, Aug 10, 2011 at 11:16 AM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: Hi Nirmal, I've reviewed your latest update and it looks pretty good. I have a few suggestions to make it even better: - Generate a simple HTML document around the SVG. That'll help set a title for the document, a link to the original composite (assuming it's online) and any other decoration you'd like to add around the diagram. I'll provide a HTML wrapper! I have added the HTML wrapper ( https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/html/HTMLWrapper.java ). I used Canvg (http://code.google.com/p/canvg/) which was released under MIT license (compatible with Apache 2 license: http://www.apache.org/legal/resolved.html#category-a) and I included the two Java Script files of Canvg + the MIT license file under resources directory ( https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/resources/ ). I think there is a procedure when including source from another license, which I am not familiar with! I avoided using Canvg since, it is not needed. I modified the HTMLWrapper code ( https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/html/HTMLWrapper.java), now it's simply embedding the svg document, inside a HTML. - Use groups (svg:g) to nest the various shapes you're generating. This should help simplify your code as you won't have to worry about positioning related shapes (as they'll be naturally nested). I'm not sure whether this is necessary, since the dimensions of artifacts changes dynamically (i.e. according to their quantity), I should position each artifact dynamically. You have different thoughts? - To help navigate nested composites and included composites, generate links to their diagrams (perhaps you've already done that but I couldn't see it with the example diagrams you've committed). Ya, I've already done that, please see MyValueComposite2_diagram.svg from your web browser. - Position the titles below or above the services and references. Right now they're kind of mixed with the services / references. It was in displayed in the center of the services/references. I added them to top of each service/reference! These are only suggestions. Think about about them and decide yourself if you think they're good ideas or not. At this point I think you know better than me what's feasible and what makes more sense... Thanks for the valuable thoughts! -- Jean-Sebastien On Sat, Aug 6, 2011 at 12:04 PM, C.S. Nirmal J. Fernando (JIRA) dev@tuscany.apache.org wrote: [ https://issues.apache.org/jira/browse/TUSCANY-3496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13080446#comment-13080446] C.S. Nirmal J. Fernando edited comment on TUSCANY-3496 at 8/6/11 7:03 PM: -- Hi All, I have almost finished implementing the necessary requirements of Composite Diagram Generator as per now, and starting to testing the tool. You can find the code up to date from https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/ Herewith I have attached 4 SVG images, created using the tool, and the 4 attached composites files were created/modified just for the feature validation process, thus may not be meaningful. Please download and open the SVG images using your web browser, then only you'll get to see the 'inclusion' links working. Also you should place all 4 SVG images in one place to get the links to work. PS: You may notice that the images are not scrollable, I couldn't find a way to make SVG scrollable yet (I spent very little time on it ), for now you may want to zoom in and out. I fixed this! :) Now you could see the whole diagram! Waiting for your comments! Thanks. was (Author: nirmal): Hi All, I have almost finished implementing the necessary requirements of Composite Diagram Generator as per now, and starting to testing the tool. You can find the code up to date from https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/ Herewith I have attached 4 SVG images, created using the tool, and the 4 attached composites files were created/modified just for the feature validation process, thus may not be meaningful. Please download and open the SVG images using your web browser, then only you'll get to see the 'inclusion' links working. Also you should place all 4 SVG images in one place to get
Re: [jira] [Issue Comment Edited] (TUSCANY-3496) Develop a simple tool that can be used to generate composite diagrams from the xml files
Hi Jean, On Wed, Aug 10, 2011 at 11:16 AM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: Hi Nirmal, I've reviewed your latest update and it looks pretty good. I have a few suggestions to make it even better: - Generate a simple HTML document around the SVG. That'll help set a title for the document, a link to the original composite (assuming it's online) and any other decoration you'd like to add around the diagram. I'll provide a HTML wrapper! - Use groups (svg:g) to nest the various shapes you're generating. This should help simplify your code as you won't have to worry about positioning related shapes (as they'll be naturally nested). I'm not sure whether this is necessary, since the dimensions of artifacts changes dynamically (i.e. according to their quantity), I should position each artifact dynamically. You have different thoughts? - To help navigate nested composites and included composites, generate links to their diagrams (perhaps you've already done that but I couldn't see it with the example diagrams you've committed). Ya, I've already done that, please see MyValueComposite2_diagram.svg from your web browser. - Position the titles below or above the services and references. Right now they're kind of mixed with the services / references. It was in displayed in the center of the services/references. I added them to top of each service/reference! These are only suggestions. Think about about them and decide yourself if you think they're good ideas or not. At this point I think you know better than me what's feasible and what makes more sense... Thanks for the valuable thoughts! -- Jean-Sebastien On Sat, Aug 6, 2011 at 12:04 PM, C.S. Nirmal J. Fernando (JIRA) dev@tuscany.apache.org wrote: [ https://issues.apache.org/jira/browse/TUSCANY-3496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13080446#comment-13080446] C.S. Nirmal J. Fernando edited comment on TUSCANY-3496 at 8/6/11 7:03 PM: -- Hi All, I have almost finished implementing the necessary requirements of Composite Diagram Generator as per now, and starting to testing the tool. You can find the code up to date from https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/ Herewith I have attached 4 SVG images, created using the tool, and the 4 attached composites files were created/modified just for the feature validation process, thus may not be meaningful. Please download and open the SVG images using your web browser, then only you'll get to see the 'inclusion' links working. Also you should place all 4 SVG images in one place to get the links to work. PS: You may notice that the images are not scrollable, I couldn't find a way to make SVG scrollable yet (I spent very little time on it ), for now you may want to zoom in and out. Waiting for your comments! Thanks. was (Author: nirmal): Hi All, I have almost finished implementing the necessary requirements of Composite Diagram Generator as per now, and starting to testing the tool. You can find the code up to date from https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/ Herewith I have attached 4 SVG images, created using the tool, and the 4 attached composites files were created/modified just for the feature validation process, thus may not be meaningful. Please download and open the SVG images using your web browser, then only you'll get to see the 'inclusion' links working. Also you should place all 4 SVG images in one place to get the links to work. Waiting for your comments! Thanks. Develop a simple tool that can be used to generate composite diagrams from the xml files Key: TUSCANY-3496 URL: https://issues.apache.org/jira/browse/TUSCANY-3496 Project: Tuscany Issue Type: Wish Components: Java SCA Community Ideas Affects Versions: Java-SCA-1.x Reporter: Raymond Feng Assignee: C.S. Nirmal J. Fernando Labels: gsoc, gsoc2010, gsoc2011, mentor Attachments: Calculator.xml, Calculator_diagram.svg, CompositeDiagramGeneratorUsingBatik-Maven.zip, CompositeDiagramGeneratorUsingBatik.zip, MyValueComposite2.xml, MyValueComposite2_diagram.svg, proposed_design_1.jpg, store.xml, store_diagram.svg, supplychain.xml, supplychain_diagram.svg Original Estimate: 1m Remaining Estimate: 1m I'm looking a simple tool (web based or command) that can generate the composite diagrams from a list of composite files. One technology we can try is the Apache Batik project. http://xmlgraphics.apache.org/batik/ This tool can serve multiple purposes: 1) Help document our
Re: [Composite Diagram Generator] Need a suggestion
On Wed, Aug 10, 2011 at 1:15 PM, ant elder antel...@apache.org wrote: On Tue, Aug 9, 2011 at 6:55 PM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi Ant, On Mon, Aug 8, 2011 at 1:58 PM, ant elder ant.el...@gmail.com wrote: Nirmal, I've just committed a module with a couple of classes that show how your SVG code could be used by the Tuscany Shell to draw SVG pictures of composites: https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/ The code is pretty simple, just one Batik class copied from their examples to display an SVG with Swing, and one small class for the Tuscany Shell command. If you check that out and from its directory do mvn tuscany:run it will start the Tuscany Shell and you'll see in the help there is a new draw command, and entering draw CompositeDiagramShellPlugin helloworld.composite it will try to display the SVG. That doesn't quite work as the EntityBuilder has a problem parsing the XML. Ideally it wouldn't have to parse the XML but would be able to work with the Tuscany Composite object directly. Thanks for the contribution ! :) What do you think about adding another EntityBuilder impl that works with the Composite object? I added the support to the Tuscany composite object by adding TuscanyCompositeEntityBuilder class: https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/layout/TuscanyCompositeEntityBuilder.java And tried to run the shell command, but I think there's some problem with the temp file which you are creating in DrawShellCommand class. Thanks Nirmal, thats looking good to me. I've updated DrawShellCommand to not use the intermediate file so it should be working now. Ant, I'm still getting the SVG file not found exception. Here's the trace: java.io.FileNotFoundException: /media/798D-18B1/GSoC-2011/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/file:/tmp/tmp1022936089053255799.svg (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at java.io.FileInputStream.init(FileInputStream.java:66) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161) at org.apache.batik.util.ParsedURLData.openStreamInternal(ParsedURLData.java:547) at org.apache.batik.util.ParsedURLData.openStream(ParsedURLData.java:471) at org.apache.batik.util.ParsedURL.openStream(ParsedURL.java:417) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:158) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(SAXSVGDocumentFactory.java:124) at org.apache.batik.bridge.DocumentLoader.loadDocument(DocumentLoader.java:106) at org.apache.batik.swing.svg.SVGDocumentLoader.run(SVGDocumentLoader.java:84) I do get an error while its displaying the SVG but the image still seems to display ok - org.w3c.dom.DOMException: The central identifier is not a valid value for the alignment-baseline property. That comes from the code in CompositeArtifact.addElement and Layer.addElement setting the alignment-baseline attribute, i don't know what the issue is with that value does it mean anything to you? I changed it to middle, but couldn't check whether there's an error still. The diagrams always have the bit at the bottom for included composites even when there aren't any included, i think it might look better if DiagramGenerator.addInclusions() did nothing when there are no included composites. Done! :) Thanks. ...ant -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [Composite Diagram Generator] Need a suggestion
On Fri, Aug 12, 2011 at 1:37 AM, ant elder antel...@apache.org wrote: On Thu, Aug 11, 2011 at 3:52 PM, Nirmal Fernando nirmal070...@gmail.com wrote: On Wed, Aug 10, 2011 at 1:15 PM, ant elder antel...@apache.org wrote: On Tue, Aug 9, 2011 at 6:55 PM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi Ant, On Mon, Aug 8, 2011 at 1:58 PM, ant elder ant.el...@gmail.com wrote: Nirmal, I've just committed a module with a couple of classes that show how your SVG code could be used by the Tuscany Shell to draw SVG pictures of composites: https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/ The code is pretty simple, just one Batik class copied from their examples to display an SVG with Swing, and one small class for the Tuscany Shell command. If you check that out and from its directory do mvn tuscany:run it will start the Tuscany Shell and you'll see in the help there is a new draw command, and entering draw CompositeDiagramShellPlugin helloworld.composite it will try to display the SVG. That doesn't quite work as the EntityBuilder has a problem parsing the XML. Ideally it wouldn't have to parse the XML but would be able to work with the Tuscany Composite object directly. Thanks for the contribution ! :) What do you think about adding another EntityBuilder impl that works with the Composite object? I added the support to the Tuscany composite object by adding TuscanyCompositeEntityBuilder class: https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/layout/TuscanyCompositeEntityBuilder.java And tried to run the shell command, but I think there's some problem with the temp file which you are creating in DrawShellCommand class. Thanks Nirmal, thats looking good to me. I've updated DrawShellCommand to not use the intermediate file so it should be working now. Ant, I'm still getting the SVG file not found exception. Here's the trace: java.io.FileNotFoundException: /media/798D-18B1/GSoC-2011/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/file:/tmp/tmp1022936089053255799.svg (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at java.io.FileInputStream.init(FileInputStream.java:66) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161) at org.apache.batik.util.ParsedURLData.openStreamInternal(ParsedURLData.java:547) at org.apache.batik.util.ParsedURLData.openStream(ParsedURLData.java:471) at org.apache.batik.util.ParsedURL.openStream(ParsedURL.java:417) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:158) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(SAXSVGDocumentFactory.java:124) at org.apache.batik.bridge.DocumentLoader.loadDocument(DocumentLoader.java:106) at org.apache.batik.swing.svg.SVGDocumentLoader.run(SVGDocumentLoader.java:84) Can you try doing an svn up, mvn clean install, and then mvn tuscany:run to see if that fixes it? it should, the lates code in svn has no file code anymore. Earlier I probably forgotten to compile the code, sorry about that! I do get an error while its displaying the SVG but the image still seems to display ok - org.w3c.dom.DOMException: The central identifier is not a valid value for the alignment-baseline property. That comes from the code in CompositeArtifact.addElement and Layer.addElement setting the alignment-baseline attribute, i don't know what the issue is with that value does it mean anything to you? I changed it to middle, but couldn't check whether there's an error still. Yes thats fixed it. The diagrams always have the bit at the bottom for included composites even when there aren't any included, i think it might look better if DiagramGenerator.addInclusions() did nothing when there are no included composites. Done! :) Cool. This is looking really good i think. I've added another test composite to try with the shell plugin, myValue.composite, which is based on the one from section 5.2.1 of the Assembly spec so we can compare the diagram from the shell with the one in figure 5-4 in the spec. You can see it with the shell command draw CompositeDiagramShellPlugin myValue.composite, Comparing the pictures i wonder how you're layout algorithm is deciding where to put the composite services and references? It looks like its putting them at the top whereas the spec images have them centered. Having them centered looks better to me, what do you think? Done! Indeed
Re: [Composite Diagram Generator] Need a suggestion
Hi Ant, On Mon, Aug 8, 2011 at 1:58 PM, ant elder ant.el...@gmail.com wrote: Nirmal, I've just committed a module with a couple of classes that show how your SVG code could be used by the Tuscany Shell to draw SVG pictures of composites: https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/ The code is pretty simple, just one Batik class copied from their examples to display an SVG with Swing, and one small class for the Tuscany Shell command. If you check that out and from its directory do mvn tuscany:run it will start the Tuscany Shell and you'll see in the help there is a new draw command, and entering draw CompositeDiagramShellPlugin helloworld.composite it will try to display the SVG. That doesn't quite work as the EntityBuilder has a problem parsing the XML. Ideally it wouldn't have to parse the XML but would be able to work with the Tuscany Composite object directly. Thanks for the contribution ! :) What do you think about adding another EntityBuilder impl that works with the Composite object? I added the support to the Tuscany composite object by adding TuscanyCompositeEntityBuilder class: https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/layout/TuscanyCompositeEntityBuilder.java And tried to run the shell command, but I think there's some problem with the temp file which you are creating in DrawShellCommand class. ...ant On Sat, Jun 25, 2011 at 1:54 PM, Nirmal Fernando nirmal070...@apache.org wrote: Hi All, I need your help to decide how should Composite Diagram Generator loads composite XML. I can see two main options: 1) Load from the Jar file 2) Directly load the composite XML (i.e. user gives it as the input) Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: Question on a implementation.java child element of a component
On Tue, Jul 26, 2011 at 10:32 PM, Raymond Feng enjoyj...@gmail.com wrote: Hi, It's the implementation class that dictates all the services it provide. The service element is used in the composite to further configure the service and the @name has to match what's introspected from the impl (in SCA term, the componentType). If no further configuration is needed, you don't have the list the service in the composite. Thanks for your reply! So, what you say on following reasoning? eg: * component name= SubtractServiceComponent implementation.java class=calculator.SubtractServiceImpl/ /component For this, I'll add a service to SubtractServiceComponent, since there are no 'service' elements. * component name=Catalog implementation.java class=services.FruitsCatalogImpl/ property name=currencyCodeUSD/property service name=Catalog t:binding.jsonrpc/ /service reference name=currencyConverter target=CurrencyConverter/ /component For this Catalog component Catalog is the only service, that I'll be added. Thanks. Thanks, Raymond * Raymond Feng rf...@apache.org Apache Tuscany PMC member and committer: tuscany.apache.org Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com Personal Web Site: www.enjoyjava.com * On Jul 26, 2011, at 2:26 AM, Nirmal Fernando wrote: Hi All, If a service element present for a component, could I neglect 'class' attribute value of implementation.java element, for the composite diagram purposes? eg: * component name=SubtractServiceComponent implementation.java class=calculator.SubtractServiceImpl/ /component For this, I'll add a service to SubtractServiceComponent, since there are no 'service' elements. * component name=Catalog implementation.java class=services.FruitsCatalogImpl/ property name=currencyCodeUSD/property service name=Catalog t:binding.jsonrpc/ /service reference name=currencyConverter target=CurrencyConverter/ /component For this Catalog component Catalog is the only service, that I'll be added. _ Highly appreciate your thoughts! Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Question on a implementation.java child element of a component
Hi All, If a service element present for a component, could I neglect 'class' attribute value of implementation.java element, for the composite diagram purposes? eg: * component name=SubtractServiceComponent implementation.java class=calculator.SubtractServiceImpl/ /component For this, I'll add a service to SubtractServiceComponent, since there are no 'service' elements. * component name=Catalog implementation.java class=services.FruitsCatalogImpl/ property name=currencyCodeUSD/property service name=Catalog t:binding.jsonrpc/ /service reference name=currencyConverter target=CurrencyConverter/ /component For this Catalog component Catalog is the only service, that I'll be added. _ Highly appreciate your thoughts! Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [Composite Diagram Generator] Need a suggestion
On Wed, Jun 29, 2011 at 10:28 AM, ant elder ant.el...@gmail.com wrote: On Tue, Jun 28, 2011 at 4:39 PM, Nirmal Fernando nirmal070...@gmail.com wrote: On Tue, Jun 28, 2011 at 9:00 PM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: On Tue, Jun 28, 2011 at 7:20 AM, Nirmal Fernando nirmal070...@gmail.com wrote: On Tue, Jun 28, 2011 at 8:26 AM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: ... t) a command line tool that takes the text of a composite on standard input and prints the corresponding HTML + SVG on standard output; Do you mind explaining what you meant by corresponding HTML output? I meant this: html head ... some CSS, Javascript etc, meta tags etc /head body ... whatever you want here, a h1 tag with the name of the composite, or an href link to the composite XML for example svg ... your SVG composite diagram /svg /body /html Most SVGs you can find on the Web are included in HTML like that as it's easier to include help, additional text, href links, meta tags, dynamic behavior with javascript etc around the SVG diagram. I see! ... z) all of the above should work with buggy, unresolved, and incomplete composites or they won't be really useful to a developer or administrator... just think of a Java editor that couldn't load a Java source with bugs in it... it wouldn't be so useful :) So, I think still I can use Tuscany runtime to load the composite XML, am I right? Maybe, but I'm not sure, as the runtime is not supposed to proceed with incorrect composites. Last time I checked, but that was about a year ago, I was getting exceptions preventing me to proceed and get the composite model. The error handling may have been improved since then. Better check with the other Tuscany folks working on that. (assuming that the validation part is done separately) I'd recommend to double check without assuming :) I will! With the code i showed earlier it would throw exceptions when there are problems with contributions or composites so thats not going to fit in well with trying to use buggy, unresolved, or incomplete artifacts. It is possible to pass in a Monitor object on some of the calls which prevents the exception throwing and instead the problem information is collected in the monitor which you can then examine afterwards to find out about the problems so you probably could get something working using that approach, but I don't really know how well it would work as we don't presently have much in Tuscany trying to do that type of thing. It seems a little ambitious IMHO, if it were me I'd probably want to at least first get something working with artifacts without problems, eg take the contribution from the helloworld sample and draw a picture of its composite - can the SVG generation code you have do that yet? Considering all the facts (such as getting exceptions when we load a composite with errors etc.) I decided to stick with my own code on to recognize artifacts in a composite XML :), but of course I could get help from existing code. Current code lives at https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/. Few recognized todos : * References/Services that are directly linked with the composite (i.e. not with a component), should be addressed. * Wire should be flexible and should not draw over other artifacts, where it's not necessary. * Implementation.java elements of a component should be addressed more carefully. * Using Promotion for wiring should be addressed. * Should check with the spec and the community whether the all allowed/used ways(combinations) are supported. * Test cases * Provides corresponding HTML output. * Documenting layout algorithm. Thanks. ...ant -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: Compile error in trunk sca-java-2.x
Did I make a mistake by running mvn compile before mvn install? I tried to run mvn install, it ran out of java heap memory. :( On Mon, Jul 4, 2011 at 5:18 PM, Mike Edwards mike.edwards.inglen...@gmail.com wrote: Nirmal, I did an Update followed by a full build this morning and I don't see this error - the build works fine for me, with only a couple of known test failures relating to some Policy function that is under development. Yours, Mike. On 02/07/2011 08:35, Nirmal Fernando wrote: Hi, FYI: I tried building the trunk, it failed with following error. [INFO] --**--** [INFO] Building Apache Tuscany SCA iTest Base [INFO]task-segment: [compile] [INFO] --**--** [INFO] [enforcer:enforce {execution: enforce-plugin-versions}] [INFO] [remote-resources:process {execution: default}] [INFO] --**--** [INFO] Building Apache Tuscany SCA iTest Base Dependencies [INFO]task-segment: [compile] [INFO] --**--** [INFO] [enforcer:enforce {execution: enforce-plugin-versions}] [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/** base/dependencies/src/main/**resources [INFO] Copying 0 resource [INFO] Copying 3 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] No sources to compile [INFO] [dependency:copy-dependencies {execution: copy}] [INFO] Copying classes to /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/** base/dependencies/target/**dependency/classes [INFO] --**--** [ERROR] BUILD ERROR [INFO] --**--** [INFO] Error copying artifact from /media/798D-18B1/GSoC-2011/**Tuscany/trunk/modules/**assembly/target/classes to /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/** base/dependencies/target/**dependency/classes Embedded error: /media/798D-18B1/GSoC-2011/**Tuscany/trunk/modules/**assembly/target/classes (Is a directory) [INFO] --**--** [INFO] Trace org.apache.maven.lifecycle.**LifecycleExecutionException: Error copying artifact from /media/798D-18B1/GSoC-2011/**Tuscany/trunk/modules/**assembly/target/classes to /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/** base/dependencies/target/**dependency/classes at org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**executeGoals(** DefaultLifecycleExecutor.java:**719) at org.apache.maven.lifecycle.**DefaultLifecycleExecutor.** executeGoalWithLifecycle(**DefaultLifecycleExecutor.java:**556) at org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**executeGoal(** DefaultLifecycleExecutor.java:**535) at org.apache.maven.lifecycle.**DefaultLifecycleExecutor.** executeGoalAndHandleFailures(**DefaultLifecycleExecutor.java:**387) at org.apache.maven.lifecycle.**DefaultLifecycleExecutor.** executeTaskSegments(**DefaultLifecycleExecutor.java:**348) at org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**execute(** DefaultLifecycleExecutor.java:**180) at org.apache.maven.DefaultMaven.**doExecute(DefaultMaven.java:**328) at org.apache.maven.DefaultMaven.**execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.**main(MavenCli.java:362) at org.apache.maven.cli.compat.**CompatibleMain.main(** CompatibleMain.java:60) at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method) at sun.reflect.**NativeMethodAccessorImpl.**invoke(** NativeMethodAccessorImpl.java:**39) at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(** DelegatingMethodAccessorImpl.**java:25) at java.lang.reflect.Method.**invoke(Method.java:597) at org.codehaus.classworlds.**Launcher.launchEnhanced(** Launcher.java:315) at org.codehaus.classworlds.**Launcher.launch(Launcher.java:**255) at org.codehaus.classworlds.**Launcher.mainWithExitCode(** Launcher.java:430) at org.codehaus.classworlds.**Launcher.main(Launcher.java:**375) Caused by: org.apache.maven.plugin.**MojoExecutionException: Error copying artifact from /media/798D-18B1/GSoC-2011/**Tuscany/trunk/modules/**assembly/target/classes to /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/** base/dependencies/target/**dependency/classes at org.apache.maven.plugin.**dependency.**AbstractDependencyMojo.**copyFile( **AbstractDependencyMojo.java:**194) at org.apache.maven.plugin.**dependency
Re: Compile error in trunk sca-java-2.x
On Mon, Jul 4, 2011 at 7:31 PM, Mike Edwards mike.edwards.inglen...@gmail.com wrote: On 04/07/2011 14:31, Nirmal Fernando wrote: Did I make a mistake by running mvn compile before mvn install? I tried to run mvn install, it ran out of java heap memory. :( Nirmal, You need to adjust the Maven OPTS for the Java heap size, as described here: http://tuscany.apache.org/**tuscany-sca-java-faq.html#** TuscanySCAJava-FAQ-BuildDhttp://tuscany.apache.org/tuscany-sca-java-faq.html#TuscanySCAJava-FAQ-BuildD Simply put - set the MAVEN_OPTS environment variable to a value something like this: MAVEN_OPTS=-Xms256m -Xmx1024m -XX:MaxPermSize=350m Thanks Mike, I'll try with that! Yours, Mike. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: Compile error in trunk sca-java-2.x
On Mon, Jul 4, 2011 at 7:37 PM, Nirmal Fernando nirmal070...@gmail.comwrote: On Mon, Jul 4, 2011 at 7:31 PM, Mike Edwards mike.edwards.inglen...@gmail.com wrote: On 04/07/2011 14:31, Nirmal Fernando wrote: Did I make a mistake by running mvn compile before mvn install? I tried to run mvn install, it ran out of java heap memory. :( Nirmal, You need to adjust the Maven OPTS for the Java heap size, as described here: http://tuscany.apache.org/**tuscany-sca-java-faq.html#** TuscanySCAJava-FAQ-BuildDhttp://tuscany.apache.org/tuscany-sca-java-faq.html#TuscanySCAJava-FAQ-BuildD Simply put - set the MAVEN_OPTS environment variable to a value something like this: MAVEN_OPTS=-Xms256m -Xmx1024m -XX:MaxPermSize=350m Thanks Mike, I'll try with that! mvn install on trunk fails with : [INFO] [INFO] Building Apache Tuscany SCA iTest WS Contribution RPC Lit [INFO]task-segment: [install] [INFO] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}] [INFO] [build-helper:add-test-source {execution: add-source}] [INFO] Test Source directory: /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/jaxws-source added. [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 7 resources [INFO] Copying 1 resource [INFO] Copying 3 resources [INFO] [jaxws:wsimport {execution: wsimport1}] [INFO] Processing: /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes/helloworld-external-service.wsdl [INFO] jaxws:wsimport args: [-s, /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/jaxws-source, -d, /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes, -verbose, -p, org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface, -target, 2.1, -Xnocompile, /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes/helloworld-external-service.wsdl] parsing WSDL... [INFO] [ERROR] BUILD ERROR [INFO] org.codehaus.classworlds.NoSuchRealmException: plexus.core at org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:128) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:434) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Yours, Mike. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: Compile error in trunk sca-java-2.x
I am running on Ubuntu 10.04. On Mon, Jul 4, 2011 at 9:19 PM, Simon Laws simonsl...@googlemail.comwrote: On Mon, Jul 4, 2011 at 4:29 PM, Mike Edwards mike.edwards.inglen...@gmail.com wrote: Nirmal, On my machine, that testcase works fine for me - I do not see the error that you see. My local copy was updated ~3 hours ago and I am not missing any recent changes relating to that testcase. I am running on Windows XP. Yours, Mike. On 04/07/2011 16:00, Nirmal Fernando wrote: mvn install on trunk fails with : [INFO] [INFO] Building Apache Tuscany SCA iTest WS Contribution RPC Lit [INFO]task-segment: [install] [INFO] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}] [INFO] [build-helper:add-test-source {execution: add-source}] [INFO] Test Source directory: /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/jaxws-source added. [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 7 resources [INFO] Copying 1 resource [INFO] Copying 3 resources [INFO] [jaxws:wsimport {execution: wsimport1}] [INFO] Processing: /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes/helloworld-external-service.wsdl [INFO] jaxws:wsimport args: [-s, /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/jaxws-source, -d, /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes, -verbose, -p, org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface, -target, 2.1, -Xnocompile, /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes/helloworld-external-service.wsdl] parsing WSDL... [INFO] [ERROR] BUILD ERROR [INFO] org.codehaus.classworlds.NoSuchRealmException: plexus.core at org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:128) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:434) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/ Am getting a clean build (apart from the compliance policy test) on Windows XP, Windows 7 and Redhat with... MAVEN_OPTS='-Xmx1024m -Xms1024m -XX:MaxPermSize=512m' Regards Simon -- Apache Tuscany committer: tuscany.apache.org Co-author of a book about Tuscany and SCA: tuscanyinaction.com -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [Composite Diagram Generator] Need a suggestion
On Mon, Jul 4, 2011 at 10:05 PM, Simon Laws simonsl...@googlemail.comwrote: On Mon, Jul 4, 2011 at 5:30 PM, Luciano Resende luckbr1...@gmail.com wrote: On Mon, Jul 4, 2011 at 6:21 AM, Nirmal Fernando nirmal070...@gmail.com wrote: Considering all the facts (such as getting exceptions when we load a composite with errors etc.) I decided to stick with my own code on to recognize artifacts in a composite XML :), but of course I could get help from existing code. Current code lives at https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/. Few recognized todos : * References/Services that are directly linked with the composite (i.e. not with a component), should be addressed. * Wire should be flexible and should not draw over other artifacts, where it's not necessary. * Implementation.java elements of a component should be addressed more carefully. * Using Promotion for wiring should be addressed. * Should check with the spec and the community whether the all allowed/used ways(combinations) are supported. * Test cases * Provides corresponding HTML output. * Documenting layout algorithm. Going with your own code means that you will have to mimic very complex code that handles the resolution of imports/exports, implementation.composite and other corner cases and not being able to properly handle this cases will make the tool not useful, which is the same case we see with the Eclipse STP plugin that is somewhat not useful a more real complex scenario composite. I know that sometimes it is hard to understand somebody else code, but in this case, it might be more productive to tweak the contribution processor code to be able to, based on a flag, have the expected behavior that you are expecting. I quote what I said earlier I decided to stick with my own code on to recognize artifacts in a composite XML :), but of course I could get help from existing code., what I meant was, I will look into the existing code and provide support for the missing cases. :) -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/ Is there anything we can do to help with understanding the existing code? I am glad if you can point me to the classes that parse a composite XML. Thanks for all the help and thoughts! Simon -- Apache Tuscany committer: tuscany.apache.org Co-author of a book about Tuscany and SCA: tuscanyinaction.com -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Compile error in trunk sca-java-2.x
Hi, FYI: I tried building the trunk, it failed with following error. [INFO] [INFO] Building Apache Tuscany SCA iTest Base [INFO]task-segment: [compile] [INFO] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}] [INFO] [remote-resources:process {execution: default}] [INFO] [INFO] Building Apache Tuscany SCA iTest Base Dependencies [INFO]task-segment: [compile] [INFO] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}] [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/src/main/resources [INFO] Copying 0 resource [INFO] Copying 3 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] No sources to compile [INFO] [dependency:copy-dependencies {execution: copy}] [INFO] Copying classes to /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error copying artifact from /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes to /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes Embedded error: /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes (Is a directory) [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error copying artifact from /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes to /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error copying artifact from /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes to /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes at org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:194) at org.apache.maven.plugin.dependency.CopyDependenciesMojo.copyArtifact(CopyDependenciesMojo.java:186) at org.apache.maven.plugin.dependency.CopyDependenciesMojo.execute(CopyDependenciesMojo.java:85) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: java.io.FileNotFoundException: /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes (Is a directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:929) at org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:189) ... 21 more -- Best
Re: [Composite Diagram Generator] Need a suggestion
Firstly many thanks to Luciano, Ant and Jean for your valuable ideas. On Tue, Jun 28, 2011 at 8:26 AM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: On Sat, Jun 25, 2011 at 5:54 AM, Nirmal Fernando nirmal070...@apache.org wrote: Hi All, I need your help to decide how should Composite Diagram Generator loads composite XML. I can see two main options: 1) Load from the Jar file 2) Directly load the composite XML (i.e. user gives it as the input) Thanks. I think this calls for bigger questions: - Why will a user want to use the tool? - How will he use it? Here are some ideas, as I can think of a few use cases: A) I'm an SCA app developer and I want to use it to visualize the composites I'm in the middle of authoring on in my development environment. B) I'm an SCA app developer and I want to use it to browse a bunch of composites that I'm thinking about reusing. C) I'm a system administrator and I want to use it to browse the domain composite, the composites it includes and the composites it uses to check that my domain is correctly configured and wired up. D) I'm embedding Tuscany, building some tools for it, and want to generate these SVG diagrams programmatically. With these use cases in mind, I can see the following requirements: t) a command line tool that takes the text of a composite on standard input and prints the corresponding HTML + SVG on standard output; Do you mind explaining what you meant by corresponding HTML output? u) a command line tool that takes a directory containing a bunch of SCA contributions, and produces a tree of HTML + SVG linked together; v) a Web based tool that takes the URL of a composite document and serves the corresponding HTML + SVG; w) a Web based tool that takes the URL of an SCA domain and serves the corresponding HTML + SVG documents; x) a reusable library that takes the text of a composite and returns the corresponding SVG for it; y) a reusable library that takes a list of SCA contributions URLs and produces a tree of HTML + SVG linked together. z) all of the above should work with buggy, unresolved, and incomplete composites or they won't be really useful to a developer or administrator... just think of a Java editor that couldn't load a Java source with bugs in it... it wouldn't be so useful :) So, I think still I can use Tuscany runtime to load the composite XML, am I right? (assuming that the validation part is done separately) Obviously you don't want to implement all of the above right now... To start small and simple, you could just do (x), (t) and (z), which would already be great! Then you could try to do (v) (x wrapped in a servlet) if you have time, for a nice Web browser based experience... Hope this helps Thanks -- Jean-Sebastien -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [Composite Diagram Generator] Need a suggestion
On Tue, Jun 28, 2011 at 9:00 PM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: On Tue, Jun 28, 2011 at 7:20 AM, Nirmal Fernando nirmal070...@gmail.com wrote: On Tue, Jun 28, 2011 at 8:26 AM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: ... t) a command line tool that takes the text of a composite on standard input and prints the corresponding HTML + SVG on standard output; Do you mind explaining what you meant by corresponding HTML output? I meant this: html head ... some CSS, Javascript etc, meta tags etc /head body ... whatever you want here, a h1 tag with the name of the composite, or an href link to the composite XML for example svg ... your SVG composite diagram /svg /body /html Most SVGs you can find on the Web are included in HTML like that as it's easier to include help, additional text, href links, meta tags, dynamic behavior with javascript etc around the SVG diagram. I see! ... z) all of the above should work with buggy, unresolved, and incomplete composites or they won't be really useful to a developer or administrator... just think of a Java editor that couldn't load a Java source with bugs in it... it wouldn't be so useful :) So, I think still I can use Tuscany runtime to load the composite XML, am I right? Maybe, but I'm not sure, as the runtime is not supposed to proceed with incorrect composites. Last time I checked, but that was about a year ago, I was getting exceptions preventing me to proceed and get the composite model. The error handling may have been improved since then. Better check with the other Tuscany folks working on that. (assuming that the validation part is done separately) I'd recommend to double check without assuming :) I will! Thanks. ... -- Jean-Sebastien -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: Getting the Tuscany model objects for a contribution
Hi, On Thu, Jun 23, 2011 at 1:17 PM, ant elder ant.el...@gmail.com wrote: Someone was asking me about how to load a contribution and get the Tuscany model objects for its artifacts so I've just committed a testcase to show one way of doing that, see: https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/DeployerTestCase.java That loads a contribution jar and then gets the composite, component and service thats in the contribution. The main part of the code is: Node node = TuscanyRuntime.newInstance().createNode(); String curi = node.installContribution(src/test/resources/sample-helloworld.jar); node.validateContribution(curi); Contribution contribution = node.getContribution(curi); If you wanted to run that in a separate Maven build outside of the domain-node module build then the simplest dependency to use in a Maven pom.xml is: dependency groupIdorg.apache.tuscany.sca/groupId artifactIdtuscany-base-runtime/artifactId version2.0-SNAPSHOT/version /dependency It seems like 2.0-SNAPSHOT is not there in the Maven public repository, instead 2.0-Beta2. Is it okay to use 2.0-Beta2? That seems the simplest approach to me, there are other ways such as using the Deployer directly, does anyone want to show some code to do that? ...ant -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
[Composite Diagram Generator] Need a suggestion
Hi All, I need your help to decide how should Composite Diagram Generator loads composite XML. I can see two main options: 1) Load from the Jar file 2) Directly load the composite XML (i.e. user gives it as the input) Thanks.
Re: [Composite Diagram Generator] Need a suggestion
On Sat, Jun 25, 2011 at 10:02 PM, Luciano Resende luckbr1...@gmail.comwrote: On Sat, Jun 25, 2011 at 5:54 AM, Nirmal Fernando nirmal070...@apache.org wrote: Hi All, I need your help to decide how should Composite Diagram Generator loads composite XML. I can see two main options: 1) Load from the Jar file 2) Directly load the composite XML (i.e. user gives it as the input) Thanks. How do you plan to run the tool that loads the composite diagram ? Currently the tool runs independently. It gets the composite XML as the input and outputs the composite diagram. To load the composite diagram Ant suggested me to use Tuscany which makes implementation easier. So the issue I have is whether to load the composite XML using jar file is better than directly loading composite XML (By the way, is this possible with Tuscany?). Highly appreciate your ideas! If this is part of a Domain Manager kind of thing, you could have some options like : a) display the diagram from the domain composite, this would display the aggregate view of all contributions, components, etc available on the domain b) from the information harvested from the domain, you could list the contributions, and it's deployable composites, and the user can click on it, to display the diagram for that specific composite. I had started doing some of harvesting of the domain composite and list of components, etc on nodeManager module in trunk Thanks! -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Possible ways to specify target service for a reference
Hi All, As you know, I'm in the process of creating composite diagram automatically for a given composite XML. I have a question, where I need your input. According to the spec there are many ways that one could specify a target service for a reference [1]. I am wondering whether I've to consider all of those options? Thanks. PS: Herewith I've attached a sample image generated by the tool which is still not fully complete! I am using Apache Batiks to create SVG document, and I am implementing my own layout algorithm. If you have any comments please do fire them. Source code is available at [2]. [1] http://docs.oasis-open.org/opencsa/sca-assembly/sca-assembly-1.1-spec-cd03.html#_Toc225073583 [2] https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/ attachment: store_diagram.svg
Re: Drawing composite graphs, was: [jira] [Commented] (TUSCANY-3496) Develop a simple tool that can be used to generate composite diagrams from the xml files
On Mon, Jun 13, 2011 at 1:16 PM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: On Wed, May 25, 2011 at 6:19 AM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi Jean, Please see my comments in line. Another way to ask the question is: What if you spend time to master Graphviz (1.6Mb) and Batik (1657 classes, 8Mb) and build something nice with them, and then somebody else just tries without these big dependencies, at the expense of some hard (but interesting) work to craft and tune the necessary algorithms, and produces a similar result with a few pages of lightweight code? Which one will be more successful? Reusing is good other than building one from scratch not knowing what will be the outcome, don't you think? Sorry for the delay, I've been really busy recently. In a way it's good that I didn't reply too quickly as that allowed you to figure part of the answer yourself :) and I see that you've given up on Graphviz after running into some limitations. No problem! :) I think my main observation is reusing software requires to evaluate: a) the useful function provided by that software that'll help you; b) its baggage, limitations, bugs, operational constraints that'll get in your way; c) the effort to understand how to use it to your advantage; d) the effort to adapt and glue it to the pile of other software you've decided to reuse. ... and put that in balance with: e) not reusing that useful function; f) but spend the effort you'd had spent to (b), (c) and (d) on writing the exact function you need. Often people only look at (a) and then struggle with (b), (c), (d). I think this is a problem in particular on the Java platform, where the development community is very quick to reuse giant piles of code just because they're available, without measuring all the implications (as opposed to C or C++ where developers tend to think more before making a move, or Python for example where libraries are typically smaller or much easier to re-implement). Thanks for the explanation! I looked at the code you've started to commit in the collaboration area. Looks like a good start to (f) -- spend quality time to implement the algorithm you need :). I started on layout algorithm and send a progress diagram to the dev list, hope you saw it! I have a few review comments: - it's good that you have Apache license headers in some files, would be even better to have them in all the files; Just now committed! :) - a few more comments in the code will help others in the community review and understand your code, and perhaps even come and help you; Added few, but will add more in coming days! - a Maven build and automated JUnit test cases will help you and others exercise your code and verify that it works. I will try to provide them as soon as possible! Thanks. -- Jean-Sebastien -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: Possible ways to specify target service for a reference
On Tue, Jun 14, 2011 at 4:33 AM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: On Mon, Jun 13, 2011 at 9:50 AM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi Mike, On Mon, Jun 13, 2011 at 10:15 PM, Mike Edwards mike.edwards.inglen...@gmail.com wrote: On 13/06/2011 08:42, Nirmal Fernando wrote: Hi All, As you know, I'm in the process of creating composite diagram automatically for a given composite XML. I have a question, where I need your input. According to the spec there are many ways that one could specify a target service for a reference [1]. I am wondering whether I've to consider all of those options? Thanks. PS: Herewith I've attached a sample image generated by the tool which is still not fully complete! I am using Apache Batiks to create SVG document, and I am implementing my own layout algorithm. If you have any comments please do fire them. Source code is available at [2]. [1] http://docs.oasis-open.org/opencsa/sca-assembly/sca-assembly-1.1-spec-cd03.html#_Toc225073583 [2] https://svn.apache.org/repos/asf/tuscany/collaboration/GSoC-2011-Nirmal/ -- Best Regards, Nirmal Nirmal, Can you help us a bit please? Which forms of reference specification are you dealing with at the moment? The basic ones are: o @target parameter o @autowire o promotion (and thus targeting at a higher level) o wire/ element(s) o binding with a specified target URI Currently only @target attribute is supported. I wanted to know what other forms are exactly needed! In the spec there are 7. 1.Through a value specified in the @target attribute of the reference element 2.Through a target URI specified in the @uri attribute of a binding element which is a child of the reference element 3.Through the setting of one or more values for binding-specific attributes and/or child elements of a binding element that is a child of the reference element 4.Through the specification of @autowire=true for the reference (or through inheritance of that value from the component or composite containing the reference) 5.Through the specification of @wiredByImpl=true for the reference 6.Through the promotion of a component reference by a composite reference of the composite containing the component (the target service is then identified by the configuration of the composite reference) 7.Through the presence of a wire/ element which has the reference specified in its @source attribute. - I leave out @wiredByImpl since there is no implementation type that does this at the moment Yours, Mike. -- Best Regards, Nirmal I would list, in decreasing priority order: - @target - wire - promotion Great! I'll provide support for the above 3. Thanks. - autowire, which you could leave out for now, as (1) I've not seen it used a lot and (2) if you didn't want to explicitly declare the wires explicitly, but on the other hand you really want to see them in a diagram... I could argue that you don't really know what you want :) - binding URIs, I'd leave that one out as configuring binding endpoint addresses is not really wiring. Thoughts? -- Jean-Sebastien -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: Drawing composite graphs, was: [jira] [Commented] (TUSCANY-3496) Develop a simple tool that can be used to generate composite diagrams from the xml files
Hi Jean, Please see my comments in line. On Mon, May 23, 2011 at 8:48 AM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: On Wed, May 11, 2011 at 9:02 AM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi Jean, On Wed, May 11, 2011 at 10:49 AM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: On Sun, May 8, 2011 at 10:21 AM, C.S. Nirmal J. Fernando (JIRA) dev@tuscany.apache.org wrote: [ https://issues.apache.org/jira/browse/TUSCANY-3496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13030511#comment-13030511 ] C.S. Nirmal J. Fernando commented on TUSCANY-3496: -- Hi, I'm looking at Graphviz API, playing around it and checking whether it can be used in this project ! Also watching few screen casts, reading the paper Drawing graphs with dot by Emden Gansner and Eleftherios Koutsofios and Stephen North to learn dot language, and experimenting :) Sounds good. I think it'd be interesting to try to generate the same diagram using Batik, Graphviz, and 'nothing' (just print SVG directly in your code), and then compare the three programs. There may be other options out there too, but I'm suggesting to try the 'nothing' approach, as in my experience SVG is easy enough to print without a complex object model like Batik's. Don't you think that 'nothing' approach would need some significant work on finding/implementing a layout building algorithm? If Graphviz implementation succeed, I am not sure whether it is worth to put an effort on 'nothing' approach. What do you think? Thanks. I think the best way to know is to try. I didn't mean spending a lot of time investigating the 'nothing' approach. Just enough to decide if it's worth doing, or if it can be eliminated without a doubt... but based on concrete data. I think there's different aspects in what you're trying to do: a) walk an SCDL model and transforming it to a model from which you can derive a layout easily b) compute the layout of the composite diagram c) generate SVG for that layout d) allow a user to navigate it, zoom etc My guess is that Graphviz and Batik won't help with (a), may help with (b), are probably over complicated for (c), and I don't know if they can help or instead get in the way for (d). I am experimenting with graphViz and it appears to be used for our tool. Will update you soon, about my conclusions on using graphViz. The 'nothing' approach wouldn't change the situation for (a), would require you to think hard and craft some algorithms for (b), and wouldn't get in your way for (c) and (d). True, depending on how graphViz reacts this approach will be considered. Another way to ask the question is: What if you spend time to master Graphviz (1.6Mb) and Batik (1657 classes, 8Mb) and build something nice with them, and then somebody else just tries without these big dependencies, at the expense of some hard (but interesting) work to craft and tune the necessary algorithms, and produces a similar result with a few pages of lightweight code? Which one will be more successful? Reusing is good other than building one from scratch not knowing what will be the outcome, don't you think? But again we won't know if that's possible without trying... If you're already comfortable with Graphviz and Batik, I don't want to derail your progress, it's really up to you to decide which way you prefer to go here :) Thanks, I will update on how my journey with GraphViz goes. :) Thoughts? -- Jean-Sebastien -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: GSOC working space
On Thu, May 12, 2011 at 12:44 PM, ant elder ant.el...@gmail.com wrote: On Thu, May 12, 2011 at 4:43 AM, Nirmal Fernando nirmal070...@gmail.com wrote: Just wanna get clarified whether what I am doing now is what you have expected. Now, I am creating a whole new Maven project which has no connection to Tuscany trunk. If you find it easy enough to create a whole new project then that is fine for the prototype experiments that you're doing presently, for any code that you want to eventually include in the Tuscany build then that would need to use the Tuscany parent pom's when it gets added to the build so it might be easiest starting off using that. Even for code that you have no intention of adding to the Tuscany build it might be easiest to start with a Tuscany pom.xml as then you can inherit all the plugin config for things like the compiler, testing, etc which will help make things simple. Its easy to start with a tuscany one, just copy one of the Tuscany pom.xml's to your project, eg the pom.xml at [1], and in that delete the old dependency's and the plugin's elements, and change the artifactId and name for your project name. (I've pointed you at one of the Tuscany sample pom.xml's because if you use a module one then it has requirements on including things like manifests and legal files that you really don't need to worry about yet) ...ant [1] https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld/pom.xml Thanks Ant, it's really helpful! -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: Drawing composite graphs, was: [jira] [Commented] (TUSCANY-3496) Develop a simple tool that can be used to generate composite diagrams from the xml files
Hi Jean, On Wed, May 11, 2011 at 10:49 AM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: On Sun, May 8, 2011 at 10:21 AM, C.S. Nirmal J. Fernando (JIRA) dev@tuscany.apache.org wrote: [ https://issues.apache.org/jira/browse/TUSCANY-3496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13030511#comment-13030511] C.S. Nirmal J. Fernando commented on TUSCANY-3496: -- Hi, I'm looking at Graphviz API, playing around it and checking whether it can be used in this project ! Also watching few screen casts, reading the paper Drawing graphs with dot by Emden Gansner and Eleftherios Koutsofios and Stephen North to learn dot language, and experimenting :) Sounds good. I think it'd be interesting to try to generate the same diagram using Batik, Graphviz, and 'nothing' (just print SVG directly in your code), and then compare the three programs. There may be other options out there too, but I'm suggesting to try the 'nothing' approach, as in my experience SVG is easy enough to print without a complex object model like Batik's. Don't you think that 'nothing' approach would need some significant work on finding/implementing a layout building algorithm? If Graphviz implementation succeed, I am not sure whether it is worth to put an effort on 'nothing' approach. What do you think? Thanks. -- Jean-Sebastien -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [NOTICE] Nirmal Fernando voted website committer
Thanks all!! :) -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: GSOC working space
On Wed, May 11, 2011 at 10:22 AM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: On Sun, May 8, 2011 at 9:25 PM, Luciano Resende luckbr1...@gmail.com wrote: On Sun, May 8, 2011 at 8:04 PM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi, On Mon, May 9, 2011 at 6:44 AM, Luciano Resende luckbr1...@gmail.com wrote: On Sat, May 7, 2011 at 7:50 AM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi, I would like to send my initial patch which is a composite diagram generator prototype using Apache Batik. How should I share the project? It's around 3MB including Apache Batik binaries. Thanks. Are you using maven to create the project ? the batik dependencies can be defined as dependencies and thus you won't need to provide the binaries itself. Not really, it's just a Java project created by Eclipse! Then, it's ok if you just attach it as a zip, but you should start migrating it to a maven project. To make things easier, you could try merging your new code inside modules/node-manager ... I could try helping with that... Looks like good progress already :) You can attach it to a JIRA, but we usually don't put dependency JARs in SVN. Also, it'll be easier for others to try your code if you do the following: - create a Maven module with a pom.xml file declaring your dependencies; - check that this module builds OK with Maven after you've built the Tuscany trunk; - use mvn eclipse:eclipse to generate an Eclipse project from the declarations in your pom.xml. These steps are a little more work than just creating and exporting a project from Eclipse, but they help: - share your work with more people in the community, e.g. people not using Eclipse, like me for example; - make it easier for others to get in your code, as it'll be in a predictable Maven folder structure; - provide a reproducible, command line based, way to build, execute and test your code; - eventually integrate your code and tests in the project's automated builds. As a starting point you could copy the structure of an existing Tuscany Maven module (just the pom.xml and the folder structure), like node-manager for example. Once that works, add a test case or two under src/test/java, as it'll help others play with it and understand how to invoke it. Hope this helps. Thanks Jean for the detailed information, I will create a Maven project. -- Jean-Sebastien -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Fwd: GSOC working space
Hi, On Wed, May 11, 2011 at 10:22 AM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: On Sun, May 8, 2011 at 9:25 PM, Luciano Resende luckbr1...@gmail.com wrote: On Sun, May 8, 2011 at 8:04 PM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi, On Mon, May 9, 2011 at 6:44 AM, Luciano Resende luckbr1...@gmail.com wrote: On Sat, May 7, 2011 at 7:50 AM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi, I would like to send my initial patch which is a composite diagram generator prototype using Apache Batik. How should I share the project? It's around 3MB including Apache Batik binaries. Thanks. Are you using maven to create the project ? the batik dependencies can be defined as dependencies and thus you won't need to provide the binaries itself. Not really, it's just a Java project created by Eclipse! Then, it's ok if you just attach it as a zip, but you should start migrating it to a maven project. To make things easier, you could try merging your new code inside modules/node-manager ... I could try helping with that... Looks like good progress already :) You can attach it to a JIRA, but we usually don't put dependency JARs in SVN. Also, it'll be easier for others to try your code if you do the following: - create a Maven module with a pom.xml file declaring your dependencies; - check that this module builds OK with Maven after you've built the Tuscany trunk; - use mvn eclipse:eclipse to generate an Eclipse project from the declarations in your pom.xml. These steps are a little more work than just creating and exporting a project from Eclipse, but they help: - share your work with more people in the community, e.g. people not using Eclipse, like me for example; - make it easier for others to get in your code, as it'll be in a predictable Maven folder structure; - provide a reproducible, command line based, way to build, execute and test your code; - eventually integrate your code and tests in the project's automated builds. As a starting point you could copy the structure of an existing Tuscany Maven module (just the pom.xml and the folder structure), like node-manager for example. Once that works, add a test case or two under src/test/java, as it'll help others play with it and understand how to invoke it. Just wanna get clarified whether what I am doing now is what you have expected. Now, I am creating a whole new Maven project which has no connection to Tuscany trunk. Hope this helps. -- Jean-Sebastien -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [NOTICE] Nirmal Fernando voted website committer
On Tue, May 10, 2011 at 9:47 PM, Luciano Resende luckbr1...@gmail.comwrote: The Tuscany PMC has voted to make Nirmal Fernando as a website committer. Congratulations, and have fun helping enhancing/fixing our website. Thanks , I appreciate that! :) -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: GSOC working space
Hi, On Mon, May 9, 2011 at 6:44 AM, Luciano Resende luckbr1...@gmail.comwrote: On Sat, May 7, 2011 at 7:50 AM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi, I would like to send my initial patch which is a composite diagram generator prototype using Apache Batik. How should I share the project? It's around 3MB including Apache Batik binaries. Thanks. Are you using maven to create the project ? the batik dependencies can be defined as dependencies and thus you won't need to provide the binaries itself. Not really, it's just a Java project created by Eclipse! -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: GSOC working space
Hi All, On Sat, May 7, 2011 at 12:46 PM, ant elder ant.el...@gmail.com wrote: On Tue, May 3, 2011 at 8:29 AM, ant elder ant.el...@gmail.com wrote: On Sat, Apr 30, 2011 at 2:56 PM, Florian Moga moga@gmail.com wrote: Hi, We currently have a couple of places where we keep work in progress code. It would be nice to agree on a location for GSOC projects so we can suggest it to the students so they will know how to create their patches. Options include: 1) sca-java-2.x/contrib/ 2) sca-java-2.x/trunk/unreleased I'd go with contrib/ as it currently has a trunk-like structure with modules, samples, etc and contains more experimental code. Thanks, Florian It could be left up to each student to decide. Most of us usually put things directly in trunk/modules so the students could also do that, and include it in the build when they feel confident, if they want to experiment a bit before going to trunk then contrib would be fine, or create a folder in the sandbox for the project would work too. and one more option is the SVN collaboration area which is the sandbox to make it easier to work with people who don't yet have Tuscany commit privileges - https://svn.apache.org/repos/asf/tuscany/collaboration/ I would like to use sandbox for my development work! ...ant -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: GSOC working space
Hi, I would like to send my initial patch which is a composite diagram generator prototype using Apache Batik. How should I share the project? It's around 3MB including Apache Batik binaries. Thanks. On Sat, May 7, 2011 at 1:49 PM, Nirmal Fernando nirmal070...@gmail.comwrote: Hi All, On Sat, May 7, 2011 at 12:46 PM, ant elder ant.el...@gmail.com wrote: On Tue, May 3, 2011 at 8:29 AM, ant elder ant.el...@gmail.com wrote: On Sat, Apr 30, 2011 at 2:56 PM, Florian Moga moga@gmail.com wrote: Hi, We currently have a couple of places where we keep work in progress code. It would be nice to agree on a location for GSOC projects so we can suggest it to the students so they will know how to create their patches. Options include: 1) sca-java-2.x/contrib/ 2) sca-java-2.x/trunk/unreleased I'd go with contrib/ as it currently has a trunk-like structure with modules, samples, etc and contains more experimental code. Thanks, Florian It could be left up to each student to decide. Most of us usually put things directly in trunk/modules so the students could also do that, and include it in the build when they feel confident, if they want to experiment a bit before going to trunk then contrib would be fine, or create a folder in the sandbox for the project would work too. and one more option is the SVN collaboration area which is the sandbox to make it easier to work with people who don't yet have Tuscany commit privileges - https://svn.apache.org/repos/asf/tuscany/collaboration/ I would like to use sandbox for my development work! ...ant -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: Documentation Patch Creating Guide
Hi Simon, On Wed, May 4, 2011 at 1:57 PM, Simon Laws simonsl...@googlemail.com wrote: On Sun, May 1, 2011 at 6:45 PM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi, Is there any guide on providing documentation patches to Tuscany? Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/ Hi Nirmal Do you mean documentation on the website or in readmes? I meant website, but Luciano already fixed it :) For the web site we're still using the wiki to create the pages. This makes it very easy for those with karma to go and fix it but a bit tricky to create patches for it. There are some instructions here [1]. The Tuscany 1.x. web site wiki can be found here [2] and the Tuscany 2.x web site here [3]. I see. If it's some readme docs in the distribution you want to change then just create a patch file base on the difference between what's in svn and what you want and attach it to a JIRA. [1] https://cwiki.apache.org/confluence/display/TUSCANYWIKI/Home [2] https://cwiki.apache.org/confluence/display/TUSCANY/Home [3] https://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/Index Hope that helps Very much, thanks for the information! Simon -- Apache Tuscany committer: tuscany.apache.org Co-author of a book about Tuscany and SCA: tuscanyinaction.com -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: Documentation Patch Creating Guide
Hi, On Thu, May 5, 2011 at 8:40 AM, Luciano Resende luckbr1...@gmail.com wrote: On Wed, May 4, 2011 at 1:27 AM, Simon Laws simonsl...@googlemail.com wrote: Hi Nirmal Do you mean documentation on the website or in readmes? For the web site we're still using the wiki to create the pages. This makes it very easy for those with karma to go and fix it but a bit tricky to create patches for it. There are some instructions here [1]. The Tuscany 1.x. web site wiki can be found here [2] and the Tuscany 2.x web site here [3]. If it's some readme docs in the distribution you want to change then just create a patch file base on the difference between what's in svn and what you want and attach it to a JIRA. [1] https://cwiki.apache.org/confluence/display/TUSCANYWIKI/Home [2] https://cwiki.apache.org/confluence/display/TUSCANY/Home [3] https://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/Index Hope that helps Simon For anyone interested in helping with the website, I'd recommend filling a ICLA with apache and the PMC can look into providing necessary karma for editing the website. I have filled an ICLA last year! :) [1] http://www.apache.org/licenses/icla.txt -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [GSoC 2011] Appreciation for acceptance
On Sun, May 1, 2011 at 9:58 PM, Jean-Sebastien Delfino jsdelf...@gmail.com wrote: On 04/25/2011 01:03 PM, Nirmal Fernando wrote: Hi All in the Tuscany Community, I am really happy to inform you that I have been selected to GSoC-2011 under Apache Tuscany for the project Develop a simple tool that can be used to generate composite diagrams (https://issues.apache.org/jira/browse/TUSCANY-3496). It is a privilege to me to get the opportunity to work with such an active, helpful community and also with a such a great project. It is really amazing how you helped me in clarifying the problems I had regarding the idea. Especially I would like to thank Jean-Sebastien Delfino, my mentor, Raymond Feng who reported the idea and all the other Tuscany developers who helped me in various aspects. Special thanks to Florian Moga, for personally giving me feedback on my proposal. I promise you to keep your trust on me. Thank you very much. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/ Congratulations! Looking forward to working with you, and seeing these SCA assembly diagrams :) Thanks Jean, me too :) -- Jean-Sebastien -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [GSoC] Artifacts of SCA
Hi Jean, On Sun, May 1, 2011 at 10:44 PM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: On 04/29/2011 07:05 AM, Nirmal Fernando wrote: Hi, Under my project Develop a simple tool that can be used to generate composite diagrams https://issues.apache.org/jira/browse/TUSCANY-3496 I need to identify all the possible artifacts that can be occurred in a composite.xml file. I already recognized following: * Composite * Component * Property * Reference * Service Is there any other artifacts I should consider? (other than the wire (link)) ... The SCA assembly specification [1] should give you a good idea of all the elements in a composite. The spec also describes a visual representation for these elements. Thanks for the spec, that will be very helpful! What you have here is fine as a first step in my opinion. I also prefer incremental development, for the time being I'll stick to those. Once you have that working, here are a few more, off the top of my head: - different implementation types - different binding types - composites nested in implementation.composite - promoted services, references and properties - includes Policies introduce yet another dimension so I'd suggest to look at them later as an option if you have time after completing the implementation of the above. Thanks for these! [1] http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=sca-assembly -- Jean-Sebastien -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Documentation Patch Creating Guide
Hi, Is there any guide on providing documentation patches to Tuscany? Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
[GSoC] Artifacts of SCA
Hi, Under my project Develop a simple tool that can be used to generate composite diagrams https://issues.apache.org/jira/browse/TUSCANY-3496 I need to identify all the possible artifacts that can be occurred in a composite.xml file. I already recognized following: * Composite * Component * Property * Reference * Service Is there any other artifacts I should consider? (other than the wire (link)) Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: Problem in checking out the code
Hi, On Fri, Apr 29, 2011 at 8:12 PM, Amindri Udugala amindriudug...@gmail.com wrote: Hi All I tried to check out the code using the following command svn checkout http://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/sca, as stated here http://tuscany.apache.org/sca-java-development-guide.html . It seems to be that the URL doesn't work. I get the following message svn: URL 'http://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/sca' doesn't exist Any suggestions? This is the link to the trunk of sca-java-1: http://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/ I am planning to contribute a patch regarding that documentation! thanks Amindri -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: Problem in checking out the code
Hi Florian, On Fri, Apr 29, 2011 at 8:43 PM, Florian Moga moga@gmail.com wrote: Hi Amindri, Nirmal, Your projects will be 2.x extensions so you'll be working on the 2.x branch. You can use http://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/ to checkout code. I already did this. :) I don't recommend you try and build the whole distribution as it literally takes hours with an empty maven repo (you probably noticed Tuscany integrates a good number of different technologies). It's enough to build the modules you're making modifications on to reflect them into the runtime. The rest of artifacts will be downloaded from the apache-snapshots repository. There are times when the Hudson nightly build fails and 2.0-SNAPSHOT artifacts don't get deployed to the apache-snapshots repository so if you need them, you'll need to build them yourself. Thanks for the piece of advice. Soon, we'll let you know the exact location where your code will be checked in so you'll know how to create the patches. Florian On Fri, Apr 29, 2011 at 5:54 PM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi, On Fri, Apr 29, 2011 at 8:12 PM, Amindri Udugala amindriudug...@gmail.com wrote: Hi All I tried to check out the code using the following command svn checkout http://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/sca, as stated here http://tuscany.apache.org/sca-java-development-guide.html . It seems to be that the URL doesn't work. I get the following message svn: URL 'http://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/sca' doesn't exist Any suggestions? This is the link to the trunk of sca-java-1: http://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/ I am planning to contribute a patch regarding that documentation! thanks Amindri -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [GSoC] Artifacts of SCA
Hi, On Fri, Apr 29, 2011 at 9:53 PM, Raymond Feng enjoyj...@gmail.com wrote: Hi, For references/services, there are one or more bindings and one interface. Node is not an SCA concept, it's Tuscany way to control the unit of work for the runtime. BTW, for the graphing, you can also look at a popular tool http://www.graphviz.org/. It supports multiple layout algorithms and the .dot file is a very simple text file that describes the graph (vertex, edge). The Graphviz tool can export the .dot into most of the image formats. One option for you is to generate the .dot from the composite. Is Eclipse Public License - v 1.0 compatible with Apache License? Thanks. Thanks, Raymond Raymond Feng rf...@apache.org Apache Tuscany PMC member and committer: tuscany.apache.org Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com Personal Web Site: www.enjoyjava.com On Apr 29, 2011, at 8:24 AM, Florian Moga wrote: Hi Nirmal, Looking at the SCA plugin for Eclipse, I can see they also have * Includes * Intents / Policies Other concepts which it would be good to consider are * SCA Domain * SCA Node There is also an eventing spec that Tuscany doesn't support yet which defines producers, consumers and channels. I don't think it's necessary to support these now but you should probably consider an extensible design which will allow adding them later. Florian On Fri, Apr 29, 2011 at 5:05 PM, Nirmal Fernando nirmal070...@gmail.com wrote: Hi, Under my project Develop a simple tool that can be used to generate composite diagrams https://issues.apache.org/jira/browse/TUSCANY-3496 I need to identify all the possible artifacts that can be occurred in a composite.xml file. I already recognized following: * Composite * Component * Property * Reference * Service Is there any other artifacts I should consider? (other than the wire (link)) Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
[GSoC] Develop a simple tool that can be used to generate composite diagrams
Hi All, I've significantly improved my proposal by developing a small prototype. This is how it's look like now: https://cwiki.apache.org/confluence/display/TUSCANYWIKI/Develop+a+simple+tool+that+can+be+used+to+generate+composite+diagrams I highly appreciate your valuable feedback on this! Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [jira] [Commented] (TUSCANY-3496) Develop a simple tool that can be used to generate composite diagrams from the xml files
Hi All, Thanks for the replies!! But it's only 30 mints away from the deadline. I'll change my mentor name to Sebastien, but will it be ok to just keep other as it is for now? Thanks. On Fri, Apr 8, 2011 at 11:40 PM, Raymond Feng enjoyj...@gmail.com wrote: Sebastien, thank you for volunteering to mentor Nirmal. Your expertise in this area can definitely makes Nirmal easier :-). Nirmal, I have a few other student proposals to mentor. Can you change your mentor to be Sebastien? We can always work together on the mailing list. Thanks, Raymond Raymond Feng rf...@apache.org Apache Tuscany PMC member and committer: tuscany.apache.org Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com Personal Web Site: www.enjoyjava.com On Apr 8, 2011, at 10:51 AM, Jean-Sebastien Delfino wrote: Hi Nirmal, Your proposal looks very good! I have two minor comments: - It'd be good to mention how you're going to handle recursive composition, there could be a few interesting options here, ranging from (from simple to more complex) just opening a composite component in a new page, zooming into it / expanding it to show his contents, up to -- if you're up to it -- 3D fly through :) - Your test phase could perhaps mention that you're going to include some of the composites from the OASIS SCA compliance test suite in your tests. Also, (this is more a question as I'm really not sure how to handle this) how are you going to automate the tests of the SVG user interface? Are you going to just verify that the output looks good, visually? or actually verify that the generated SVG matches some expected content? I'll be happy to mentor you with this project if you like. -- Jean-Sebastien On Fri, Apr 8, 2011 at 7:29 AM, C.S. Nirmal J. Fernando (JIRA) dev@tuscany.apache.org wrote: [ https://issues.apache.org/jira/browse/TUSCANY-3496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13017471#comment-13017471 ] C.S. Nirmal J. Fernando commented on TUSCANY-3496: -- I have submitted my proposal to Google http://socghop.appspot.com/gsoc/proposal/review/google/gsoc2011/nirmal070125/1 Really exciting to work on this project and contribute to Apache Tuscany! Develop a simple tool that can be used to generate composite diagrams from the xml files Key: TUSCANY-3496 URL: https://issues.apache.org/jira/browse/TUSCANY-3496 Project: Tuscany Issue Type: Wish Components: Java SCA Community Ideas Affects Versions: Java-SCA-1.x Reporter: Raymond Feng Labels: gsoc, gsoc2010, gsoc2011, mentor Attachments: proposed_design_1.jpg Original Estimate: 1m Remaining Estimate: 1m I'm looking a simple tool (web based or command) that can generate the composite diagrams from a list of composite files. One technology we can try is the Apache Batik project. http://xmlgraphics.apache.org/batik/ This tool can serve multiple purposes: 1) Help document our tutorials and samples 2) Be integrated with the SCA domain manager to visualize the SCA domain (contributions, composites, nodes etc) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira -- Jean-Sebastien -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [jira] [Commented] (TUSCANY-3496) Develop a simple tool that can be used to generate composite diagrams from the xml files
On Fri, Apr 8, 2011 at 11:21 PM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: Hi Nirmal, Your proposal looks very good! Thanks! :) I have two minor comments: - It'd be good to mention how you're going to handle recursive composition, there could be a few interesting options here, ranging from (from simple to more complex) just opening a composite component in a new page, zooming into it / expanding it to show his contents, up to -- if you're up to it -- 3D fly through :) I prefer option of expanding and showing the content, for now! If we got time we can look into more complex ones, but I think it's better to implement them incrementally, isn't it? - Your test phase could perhaps mention that you're going to include some of the composites from the OASIS SCA compliance test suite in your tests. Also, (this is more a question as I'm really not sure how to handle this) how are you going to automate the tests of the SVG user interface? Are you going to just verify that the output looks good, visually? or actually verify that the generated SVG matches some expected content? Testing • Some of the the composites from the OASIS SCA compliance test suite will be used. • Verifying that the generated SVG tags are exactly what we expected. eg: We can check the number of Components, number of Services / References, and the wires. I'll be happy to mentor you with this project if you like. I've added you as my mentor and did the changes you requested in a hurry! http://socghop.appspot.com/gsoc/proposal/review/google/gsoc2011/nirmal070125/1# Thanks for volunteering to mentor me Sebastien, I am looking forward for an exciting summer! -- Jean-Sebastien On Fri, Apr 8, 2011 at 7:29 AM, C.S. Nirmal J. Fernando (JIRA) dev@tuscany.apache.org wrote: [ https://issues.apache.org/jira/browse/TUSCANY-3496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13017471#comment-13017471 ] C.S. Nirmal J. Fernando commented on TUSCANY-3496: -- I have submitted my proposal to Google http://socghop.appspot.com/gsoc/proposal/review/google/gsoc2011/nirmal070125/1 Really exciting to work on this project and contribute to Apache Tuscany! Develop a simple tool that can be used to generate composite diagrams from the xml files Key: TUSCANY-3496 URL: https://issues.apache.org/jira/browse/TUSCANY-3496 Project: Tuscany Issue Type: Wish Components: Java SCA Community Ideas Affects Versions: Java-SCA-1.x Reporter: Raymond Feng Labels: gsoc, gsoc2010, gsoc2011, mentor Attachments: proposed_design_1.jpg Original Estimate: 1m Remaining Estimate: 1m I'm looking a simple tool (web based or command) that can generate the composite diagrams from a list of composite files. One technology we can try is the Apache Batik project. http://xmlgraphics.apache.org/batik/ This tool can serve multiple purposes: 1) Help document our tutorials and samples 2) Be integrated with the SCA domain manager to visualize the SCA domain (contributions, composites, nodes etc) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira -- Jean-Sebastien -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [GSoC-2011] Proposal
On Fri, Apr 1, 2011 at 4:45 AM, Raymond Feng enjoyj...@gmail.com wrote: It sounds good to me. Thanks Raymond! I'll try to improve it further! Thanks, Raymond Raymond Feng rf...@apache.org Apache Tuscany PMC member and committer: tuscany.apache.org Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com Personal Web Site: www.enjoyjava.com On Mar 30, 2011, at 8:57 PM, Nirmal Fernando wrote: Hi All, I have written a draft of my proposal for the idea Develop a simple tool that can be used to generate composite diagrams from the xml files (Tuscany 3496: https://issues.apache.org/jira/browse/TUSCANY-3496) at Tuscany wiki : https://cwiki.apache.org/confluence/display/TUSCANYWIKI/Develop+a+simple+tool+that+can+be+used+to+generate+composite+diagrams I appreciate the valuable comments of the community! I think those will help me to submit a compelling proposal! Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
[GSoC-2011] Proposal
Hi All, I have written a draft of my proposal for the idea Develop a simple tool that can be used to generate composite diagrams from the xml files (Tuscany 3496: https://issues.apache.org/jira/browse/TUSCANY-3496) at Tuscany wiki : https://cwiki.apache.org/confluence/display/TUSCANYWIKI/Develop+a+simple+tool+that+can+be+used+to+generate+composite+diagrams I appreciate the valuable comments of the community! I think those will help me to submit a compelling proposal! Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [jira] [Commented] (TUSCANY-3496) Develop a simple tool that can be used to generate composite diagrams from the xml files
On Thu, Mar 24, 2011 at 8:50 PM, C.S. Nirmal J. Fernando (JIRA) dev@tuscany.apache.org wrote: [ https://issues.apache.org/jira/browse/TUSCANY-3496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13010699#comment-13010699 ] C.S. Nirmal J. Fernando commented on TUSCANY-3496: -- Hi, After studying about the idea, I came up with the following design proposal. Please refer the attached proposed_design_1 image. I'm having trouble with attaching it in JIRA, meanwhile kind enough to attached image herewith. Thanks. Composite XML should be generated using the Tuscany's in-memory representation of the composite model. It will then will give as an input for the Composite Analyzer. Composite Analyzer then analyzes the XML document and grab the relevant DOM Elements such as Composite, Component, Service, Reference, Wire etc. and starts to build the SVG document using SVG DOM API of Apache Batik. After Composite Analyzer built up the SVG document it will be the output which represents the composite diagram. DOM elements (Composite, Component, Service, Reference, Wire etc.) possibly be static classes which holds the shape of the artifact, colour, other static properties and will be given the dynamic properties (such as position, size etc.) as input, in order to create a DOM element and it will be then handover to the Composite Analyzer. This may be very high level design, but I would appreciate if you can give me some feedback. Thanks. Develop a simple tool that can be used to generate composite diagrams from the xml files Key: TUSCANY-3496 URL: https://issues.apache.org/jira/browse/TUSCANY-3496 Project: Tuscany Issue Type: Wish Components: Java SCA Community Ideas Affects Versions: Java-SCA-1.x Reporter: Raymond Feng Labels: gsoc, gsoc2010, gsoc2011, mentor Original Estimate: 1m Remaining Estimate: 1m I'm looking a simple tool (web based or command) that can generate the composite diagrams from a list of composite files. One technology we can try is the Apache Batik project. http://xmlgraphics.apache.org/batik/ This tool can serve multiple purposes: 1) Help document our tutorials and samples 2) Be integrated with the SCA domain manager to visualize the SCA domain (contributions, composites, nodes etc) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/ attachment: proposed_design_1.jpg
[GSoC-2011] TUSCANY-3496 idea
Hi All, I'm an undergraduate at Department of Computer Science and Engineering, University of Moratuwa, Sri Lanka, and I'm hoping to have an exciting summer with GSoC 2011. I participated in GSoC 2010 for Apache Derby (RDBMS in Java) project and successfully finished the project. This is a sample of the work (final output) which I've done for Derby last summer (http://nirmalfdo.blogspot.com/p/my-work-at-gsoc-2010.html). You can find my profile and recommendations at LinkedIn (http://www.linkedin.com/profile/view?id=54105394trk=tab_pro). While looking through The ASF idea page, I found this entry in JIRA about Develop a simple tool that can be used to generate composite diagrams from the xml files https://issues.apache.org/jira/browse/TUSCANY-3496 is interesting. I would appreciate if I can get further details on the requirements of this tool. I'm still new to Apache Tuscany project, but willing to learn quickly, any help on getting me started is highly appreciate. Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [GSoC-2011] TUSCANY-3496 idea
On Tue, Mar 22, 2011 at 10:54 PM, Raymond Feng enjoyj...@gmail.com wrote: Hi, Nirmal. The idea is to have a simple way to generate a diagram from the composite file to illustrate the SCA components (service/reference) and their wirings. It could be a simple .dot or .svg file. Eclipse has a tooling project for SCA [1]. It can generate nice diagrams. This idea is more on the lightweight side, for example, allowing a browser to point to Tuscany runtime to show the composite diagram. [1] http://www.eclipse.org/stp/sca/ Thanks for the quick response Raymond, I will study on Apache Batik Project http://xmlgraphics.apache.org/batik/ and Eclipse tool and will log my findings on JIRA. If you have any other thing in your mind that I should start looking at, please share them. I am hoping to contribute to this project in GSoC! Thanks. Thanks, Raymond Raymond Feng rf...@apache.org Apache Tuscany PMC member and committer: tuscany.apache.org Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com Personal Web Site: www.enjoyjava.com On Mar 22, 2011, at 10:16 AM, Nirmal Fernando wrote: Hi All, I'm an undergraduate at Department of Computer Science and Engineering, University of Moratuwa, Sri Lanka, and I'm hoping to have an exciting summer with GSoC 2011. I participated in GSoC 2010 for Apache Derby (RDBMS in Java) project and successfully finished the project. This is a sample of the work (final output) which I've done for Derby last summer (http://nirmalfdo.blogspot.com/p/my-work-at-gsoc-2010.html). You can find my profile and recommendations at LinkedIn (http://www.linkedin.com/profile/view?id=54105394trk=tab_pro). While looking through The ASF idea page, I found this entry in JIRA about Develop a simple tool that can be used to generate composite diagrams from the xml files https://issues.apache.org/jira/browse/TUSCANY-3496 is interesting. I would appreciate if I can get further details on the requirements of this tool. I'm still new to Apache Tuscany project, but willing to learn quickly, any help on getting me started is highly appreciate. Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/ -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [GSoC-2011] TUSCANY-3496 idea
Hi, On Wed, Mar 23, 2011 at 12:27 AM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: On Tue, Mar 22, 2011 at 10:47 AM, Nirmal Fernando nirmal070...@gmail.com wrote: On Tue, Mar 22, 2011 at 10:54 PM, Raymond Feng enjoyj...@gmail.com wrote: Hi, Nirmal. The idea is to have a simple way to generate a diagram from the composite file to illustrate the SCA components (service/reference) and their wirings. It could be a simple .dot or .svg file. Eclipse has a tooling project for SCA [1]. It can generate nice diagrams. This idea is more on the lightweight side, for example, allowing a browser to point to Tuscany runtime to show the composite diagram. [1] http://www.eclipse.org/stp/sca/ Thanks for the quick response Raymond, I will study on Apache Batik Project http://xmlgraphics.apache.org/batik/ and Eclipse tool and will log my findings on JIRA. If you have any other thing in your mind that I should start looking at, please share them. I am hoping to contribute to this project in GSoC! Thanks. ... Just a thought: if you're going to generate SVG using Batik, it'd be really cool to be able to edit the diagram too. It shouldn't be too difficult to add mouse onclick event handlers to the SVG elements representing components, wires etc and let the user move them around, unwire and rewire components for example. This sounds interesting Jean, thanks for firing it up! Another thought, since Raymond mentioned Eclipse tools. It may be worth taking a look at Eclipse Orion [1][2] and see if you can use any of it... I mean, if it's not too complicated and you think that it'll actually help you with the user interface. [1] http://www.eclipse.org/orion/ [2] http://download.eclipse.org/e4/orion/ Orion looks pretty cool! I will consider the possibility of using it in this project. Thanks Jean for the support, hope you'll continue! Thanks! -- Jean-Sebastien -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Invalid links in sca-java-development-guide
Hi All, While surfing through Tuscany web site's sca-java development guide, http://tuscany.apache.org/sca-java-development-guide.html I've noticed that some links to repositories are broken. Isn't it valuable to add the correct links? I would like to create a JIRA documentation issue on this, if the community agrees. Appreciate if you can guide me to the documentation patching guide of Tuscany. Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/