Re: Website down or moved?
Let me inform infra team. thanks for reporting it. On Wed, Nov 19, 2014 at 12:32 PM, Kallen McInerney kall...@marketamerica.com wrote: tuscany.apache.org seems to be 404ing -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Website down or moved?
Created blocker issue to track this : https://issues.apache.org/jira/browse/INFRA-8663 On Wed, Nov 19, 2014 at 12:53 PM, Luciano Resende luckbr1...@gmail.com wrote: Let me inform infra team. thanks for reporting it. On Wed, Nov 19, 2014 at 12:32 PM, Kallen McInerney kall...@marketamerica.com wrote: tuscany.apache.org seems to be 404ing -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/ -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Any new development plans or work needed?
The first priority we should have is to update our website, fixup the links which I believe stopped working due to infrastructure changes on the Apache side. Another simple thing we could work on is to get a new release out, with updated dependencies, which would bring a lot of bug fixes from these dependencies to our users. On Thu, Aug 21, 2014 at 9:00 AM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: Activity on the Tuscany user and dev lists has been pretty low in the last few months, so I'd like to discuss here if our developers have any new development plans, or if there's a need for any changes, improvements, new release or focus to a particular area of the project from our users. The most recent discussions on our lists mentioned policies and our Spring and Eclipse integrations, but I'm not really sure what work these areas need and who would be interested in contributing. Thoughts anyone? - Jean-Sebastien -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Which Tuscany version to use for my new project?
I'd definitely recommend SCA 2.0. On Mon, Aug 4, 2014 at 12:01 AM, jinesh v jineshte...@gmail.com wrote: Hi Guys I am about to start a new SOA project. I intend to use Tuscany. But I am confused on whether to go with SCA 1.6.2 or SCA 2.0. I am more confused because the download links given for these releases appear to be broken. Please advice. Thank you, Jinesh -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Node Implementation Problem
(Unknown Source) at javax.net.ssl.TrustManagerFactory.init(Unknown Source) at org.apache.http.conn.ssl.SSLSocketFactory.createSSLContext(SSLSocketFactory.java:190) at org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:209) ... 29 more I don´t know what hapenned, Does anybody know what is my problem? -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Could you please help me how to consume spring services from tuscany rest services.
Could you provide a sample app or a test case to reproduce the problem ? It would make it much easier to investigate the issue. Thanks On Fri, Sep 13, 2013 at 11:16 PM, Gopi Lokavarapu gopi.lokar...@gmail.comwrote: could you please help how can I resolve the following issue one component in composite file then implementation.spring location=/someLocation is declared one time,like that composite component name=component1 implementation.spring=/somLocation/spring-conentx.xml / service name=component1Service tuscany:binding.rest uri=http://localhost:8085/hell0/ //here can i give like this uri=/hello' (if it is tomcat server) /service /component component name=component2 implementation.spring=/somLocation/spring-conentx.xml / service name=component2Service tuscany:binding.rest uri=http://localhost:8085/hell01/ //here can i give like this uri=/hello1' (if it is tomcat server) /service /component . . . component name=componentN' implementation.spring=/somLocation/spring-conentx.xml / service name=componentNService tuscany:binding.rest uri=http://localhost:8085/hell0N/ /service /component /composite Problem:From the above scenario spring-context.xml contains all services as beans,sessionFactory obj bean also there in spring-context.xml.Now whenever I start the server,every time all service beans instatntiation takesplace. i.e beans bean id=mySessionFactroy class=LocalSessionFactoryBean/ sca:service name=Component1Service target=bean1/ sca:service name=Component2Service target=bean2/ .. .. sca:service name=ComponentNService target=beanN/ bean id=bean1 class=class1/ bean id=bean2 class=class2/ bean id=bean3 class=classN/ /beans. i.e whenever loading composite file for every implementaion.spring all beans instantiation is takesplace component1implementation.spring--bean id=bean1 component2-implementaion.spring---bean id=bean1' bean id=bean2' --- --- componentN---implementaion.spring--bean id=bean1 bean id=bean2...bean id=beanN Thank you T -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Could you please help me how to consume spring services from tuscany rest services.
On Sat, Aug 31, 2013 at 6:45 AM, Gopi Lokavarapu gopi.lokar...@gmail.comwrote: Could you please help me to do the following scenario:While using apche tuscany with spring implementation -- I have 2 components and spring context file I configured as 2 services in spring-context file as spring beans.Now i want to access these from tuscany rest binding. I attached my spring context file and compoite file Could you please give me reply please. Thank you I have modified the spring sample to expose the helloworld service using the REST binding, please take a look at https://svn.apache.org/repos/asf/tuscany/sandbox/lresende/sca-2.x/samples/helloworld-spring/ -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Need Info
This can give you some insight : http://www.mail-archive.com/user@tuscany.apache.org/msg03859.html On Wed, Aug 7, 2013 at 10:12 PM, Raja Roy kingraja...@gmail.com wrote: Hi, Just wanted to check something ...how active is Tuscany currently, is it still relevant and alive? Is there any planned release coming shortly ? Not seen much activity from july 2012 onawards...will appreciate if you can provide some insight on the same. regards King -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Still Alive?
On Wed, Jul 31, 2013 at 4:46 PM, Raymond Feng enjoyj...@gmail.com wrote: Glad to hear that. FYI, my former employer has Tuscany in production for a few days now. I guess you meant few years, right ? Thanks, Raymond -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Still Alive?
On Mon, Jul 29, 2013 at 10:47 AM, Sajjad Daya sajjad.da...@gmail.comwrote: Hi Guys I'm writing to inquire if Tuscany is still alive, and most importantly, is it still relevant? From the Tuscany site, I see many references to 2007, and 2008, but not so much after that. Mature projects are less active than new projects which what you see today in Tuscany. I am about to start a new SOA project for the cloud, and want to know if I should use Tuscany for my services, or is there something new that has caught the interests of Tuscany patrons? There are several companies utilizing Tuscany as of today, and they have seen little issues with the current functionality. If you need new stuff (e.g. new bindings, etc), then you might be prepared to help, and we will be here to guide. As you can imagine, I'm quite concerned about having a large part of our application depend on a technology, that appears to have been abandoned. So any guidance or assistance you can provide would be very helpful. Agree with you, see comments above. Thank you for your help! Sajjad -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: No Eclipse Plugin Found For Tuscany 2.x
On Tuesday, July 9, 2013, Akhil Anil wrote: Hi Guys, I'm a newbie here. I tried to get the eclipse plugin for tuscany 2.x but i could find only till 1.6 : http://archive.apache.org/dist/tuscany/java/sca/1.6/tuscany-sca-1.6-updatesite/ is it that, it has not been written yet? or will the 1.6 version suffice for 2x as well? -- We have not ported the eclipse plugin to Tuscany 2.0. -- Sent from my Mobile device
Re: about bpel implmentation example in tuscany 2.0
On Wed, Jun 5, 2013 at 12:02 AM, Guochao Ren rgc.nju...@gmail.com wrote: Hi, guys I'm running the helloworld-bpel sample in tags/2.0-M4, and i encounter the following problem 六月 05, 2013 2:53:43 下午 org.apache.tuscany.sca.impl.NodeImpl startComposite Info: startComposite: helloworld-bpel/helloworld.composite Exception in thread main java.lang.IllegalArgumentException: Business interface helloworld.Hello is not compatible with {http://testing/}Hello at org.apache.tuscany.sca.core.context.impl.ComponentContextImpl.getInterfaceContract(ComponentContextImpl.java:494) at org.apache.tuscany.sca.core.context.impl.ComponentContextImpl.createEndpointReference(ComponentContextImpl.java:424) at org.apache.tuscany.sca.core.context.impl.ComponentContextImpl.createEndpointReference(ComponentContextImpl.java:400) at org.apache.tuscany.sca.core.context.impl.ComponentContextImpl.createSelfReference(ComponentContextImpl.java:301) at org.apache.tuscany.sca.core.context.impl.ComponentContextImpl.createSelfReference(ComponentContextImpl.java:255) at org.apache.tuscany.sca.core.assembly.impl.RuntimeComponentImpl.getServiceReference(RuntimeComponentImpl.java:127) at org.apache.tuscany.sca.impl.ServiceHelper.getService(ServiceHelper.java:82) at org.apache.tuscany.sca.impl.NodeImpl.getService(NodeImpl.java:470) at helloworld.HelloworldLauncher.accessServices(HelloworldLauncher.java:34) at helloworld.HelloworldLauncher.main(HelloworldLauncher.java:28) and i debug into ComponentContextImpl in tuscany-core-2.0, and found that in line 466, we never go into this if sentence, because in bpel this interfaze is not instanceof JavaInterface if (interfaze instanceof JavaInterface) { Class? cls = ((JavaInterface)interfaze).getJavaClass(); if (businessInterface.isAssignableFrom(cls)) { compatible = true; } Can anyone tell me what's wrong has happened? Or can anyone give me a runnable bpel implementation example? I cannot find bpel implementation in the distribution of 2.0. Regards, Guochao You should be able to see a few BPEL examples at : https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/testing/itest/bpel/ -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: alternative to SCADomain
On Sun, Jan 20, 2013 at 2:27 PM, Jan Jelschen jelsc...@se.uni-oldenburg.dewrote: Hi, there is no domain manager in Tuscany 2.x anymore. I think you need to look at classes org.apache.tuscany.sca.Node and TuscanyRuntime, instead. This is from a simple test app I wrote some months ago and just dug up: TuscanyRuntime scaRuntime = TuscanyRuntime.newInstance(); Node node = scaRuntime.createNode(); out.println(Domain Composite: + node.getDomainComposite().getName()); out.println(Domain Name: + node.getDomainName()); out.println(Domain URI:+ node.getDomainURI()); out.println(Local Node Name: + node.getLocalNodeName()); node.installContribution(args[0]); (args[0] contains the path to a contribution jar file) Maybe this will get you started… -JJ On Jan 20, 2013, at 22:55 , Luiz Gustavo wrote: Hi! I'm trying to follow a tutorial of Tuscany ( http://tuscany.apache.org/getting-started-with-tuscany.html) and I'm getting problems 'cause the code seems to be outdated for 2.x version: public class Launch { public static void main(String[] args) throws Exception { System.out.println(Starting ...); SCADomain scaDomain = SCADomain.newInstance(store.composite); System.out.println(store.composite ready for big business !!!); System.in.read(); System.out.println(Stopping ...); scaDomain.close(); System.out.println(); } } SCADomain can not be founf anymore. How can I do the same using the new API? ps: I could not find the API for both 1.x and 2.x versions. Best regards, Luiz Gustavo S. de Souza http://luizgustavoss.wordpress.com There is a working version of the store application in tuscany sca 2.x trunk : https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/samples/applications/store/ -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuscany class loading (was: Re: Using EMF with Tuscany 1.6)
On Tue, Nov 27, 2012 at 2:30 AM, Millies, Sebastian sebastian.mill...@softwareag.com wrote: Hello there, I've never been back to talk about this, so here goes. To re-iterate the problem: I want to set up my contributions, so that they can use different versions of third-party libraries than the Tuscany runtime. My original example was using recent versions of EMF (hence the subject line), another example is using Tuscany with an Apache Solr 4.0 backend, which requires different Apache Http Components. The standard recommendation is [1], but I have had great trouble to get that to work. (The reasons have to do with the use of SDOs in the application in question.) I have therefore decided to try the opposite approach of including any different versions of components used by Tuscany in nested jars in the contribution itself. Nested jars in a zip contributionget added into the contribution classpath. Here I am working under the assumption that the SCA contribution classloader would work somewhat like a webapp class loader in that it would not follow the delegation model, but would look for classes in the following order 1) inside the contribution 2) in the imports 3) in the parent classloader With this behavior, everything goes well. For example, I can make calls to Apache Solr through the solr-solrj-4.0.0.jar and its dependents, including httpclient-4.1.3.jar and httpcore-4.1.4.jar, without impacting HTTP calls made by Tuscany-generated proxies elsewhere. Here's the snag: As it turned out, org.apache.tuscany.sca.contribution.java.impl.ContributionClassLoader DID NOT work the way I expected, but rather looked in the parent classloader first, only then inside the contribution. I had to change the coding (in module contribution-java) and the associated test. A patch is attached. Would my change break anything, perhaps with respect to OSGi? Is there anything in the SCA spec that mandates a certain class loading behavior? I do feel that the alternative behavior is more natural than the one that is currently implemented. (There a very few resources on Tuscany classloading, and e. g. [2] does not seem to mention this particular issue.) Unfortunately, I cannot get all the Tuscany 1.6 tests to compile and run with maven. Please, would anyone be willing to see if Tuscany 1.6 with my patch applied would still pass all current tests? (unless my proposal is obviously wrong for other reasons, of course) Best, Sebastian [2] https://cwiki.apache.org/TUSCANYWIKI/classloading.html -Ursprüngliche Nachricht- Von: Simon Nash [mailto:n...@apache.org] Gesendet: Samstag, 25. August 2012 09:17 An: user@tuscany.apache.org Betreff: Re: Using EMF with Tuscany 1.6 It's been over 2 years since I looked into this in detail and put together the list of gudelines in [1], so I don't recall 100% of the detail of how this works. See inline below for my impressions of what may be happening. [cut] I'll be interested to hear how you get on with that. Simon -- Sebastian [1] http://mail-archives.apache.org/mod_mbox/tuscany-user/201006.mbox/%3C 4c164dd3.8090...@apache.org%3E IDS Scheer Consulting GmbH Geschäftsführer/Managing Directors: Michael Rehm, Ivo Totev Sitz/Registered office: Altenkesseler Straße 17, 66115 Saarbrücken, Germany - Registergericht/Commercial register: Saarbrücken HRB 19681 http://www.ids-scheer-consulting.com Thanks for the detailed explanation and patch. Could you please create a JIRA and attach the patch there (making sure you give permission to use it in the available checkbox). Thanks -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Calling a simple http webpage in Tuscany
On Mon, Nov 19, 2012 at 10:12 PM, Jet Knight dolt131...@gmail.com wrote: remote url/service must match some standard protocol, that has be implemented in Tuscany. e.g. JSONRPC, WebService. if you are use custom protocol , you must write a wrap class. Look like your service response is not JSONRPC format, but a custom JSON format. On Mon, Nov 19, 2012 at 5:54 PM, Osama Abboud abb...@kom.tu-darmstadt.de wrote: Hi, I have a web service that I want to use in Tuscany without writing a any code. The web service has the task of checking whether a certain text is spam or not. I use this URL: http://remoteserver.com/isspam/test-is-this-spam I get over http the following response: {text:test-is-this-spam,isspam:0,result:Text is not spam.}. My current solution is based on a wrapper (written in Java) that acts as a Tuscany component, and does the work of calling the URL and retrieving the result. But this is not what I want. Is there a way to link the mentioned service without writing any code? I just want Tuscany to handle calling the URL and returning the response and provide it to some other component. Is this possible? Thanks for the help. Osama Abboud -- Jet Knight It seems that you are posting a value to a REST resource, and receiving a json response. You might be able to use the REST reference binding support. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuscany Multiprocessor support?
On Thu, Nov 15, 2012 at 11:30 PM, Millies, Sebastian sebastian.mill...@softwareag.com wrote: Hello there, I have a question concerning Tuscany on multi-processor machines. Suppose I have an application consisting of several composites all running in the same JVM. There are concurrent requests coming in from the outside to several of the components. Will Tuscany make use of parallelism when processing these requests even if all composites are in the same JVM? Does this depend on the bindings used to call service methods? I would imagine that binding.wsdl would involve an internal web server with some sort of threading model, but I use mainly Java RMI for inter-service communication. What about that? Does it depend on the JVM and OS? (in my case Oracle JVM on Windows or Linux) AFAIK, we don't do any specific optimizations in Tuscany related to parallelism in a multi-processor environment. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Latest tuscany 2.0 version
On Fri, Oct 5, 2012 at 9:40 AM, Raymond Feng enjoyj...@gmail.com wrote: The 2.0 release is official. +1, we need to announce it and update the site, but as you have discovered it's out there and can be used. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: REST POST\PUT\DELETE Support
On Thu, Sep 13, 2012 at 4:58 PM, Kallen McInerney kall...@marketamerica.com wrote: Just wondering if support for these other methods has been implemented. I can’t seem to get @FormParams to come through for my @Referenced REST services in 2.0-Beta3 All operations are supported, not sure if it wasn't in Beta3, but you could try 2.0 from maven. Also when will the next release be happening? You should be able to use 2.0 from maven. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Need help on Big SCA Applications deployment strategy
On Fri, Aug 10, 2012 at 1:46 PM, Raymond Feng enjoyj...@gmail.com wrote: The other option is to protect Tuscany services using a framework like oAuth 2.0. Tuscany allows you to expose services to HTTP, such as json-rpc or REST to become web apis. Adding a security layer in front of the web apis should help. Agree, and oAuth would provide you a better granularity for what applications and users can do. But in this case, where everything seems to be in a intranet, he would still have to add some kind of firewall to prevent any access that is not being authorized/proxyied by the oAuth layer, otherwise internal machines could still try to access the services endpoints directly. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuscany on Tomcat
On Thu, Aug 9, 2012 at 7:34 PM, 浩宇郑 bjtyrael...@gmail.com wrote: Hi all, I've read this mail: http://mail-archives.apache.org/mod_mbox/tuscany-user/201206.mbox/%3cb6aaa513-3670-4cd5-9aae-da9e3368b...@gmail.com%3E But this solution didn't work on tomcat. I've copied wink and dependencies jars into tomcat lib's directory,but it didn't work. So,What am I going to solve this problem? Haoyu Cheng Any more details on what error you are getting, versions of Tuscany and Tomcat ? Usually, having all dependencies on the war\web-inf\lib is enough to get things working on Tomcat. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Need help on Big SCA Applications deployment strategy
On Thu, Aug 9, 2012 at 6:30 PM, binhnt22 binhn...@viettel.com.vn wrote: Hi all, ** ** My team is going to convert a big in-house software into a SOA enterprise applications by Tuscany SCA. ** ** The legacy systems use struts2 + hibernate, they communicate with each other through a central database (or synchronize database to their own server). ** ** I want to reuse the UI; change the database, software architecture. The number of services (after analyzing) are approximately 1000. ** ** May you suggest me? Something like: **- **How should I deploy SCA applications? On wrapper, tomcat or JBoss For a production environment I'd recommend a web app server (e.g. Tomcat). It is probably a more robust environment, and would allow you to properly tweak and configure it. **- **The total services are quite big, how should I manage them. **- **Some services require very high availability, how can I handle that. One simple solution would be to have a pool of servers for the service in front of a load balancer. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Need help on Big SCA Applications deployment strategy
On Thu, Aug 9, 2012 at 9:53 PM, binhnt22 binhn...@viettel.com.vn wrote: I’m interested in creating a Security Policy and attaching it to the services. But I don’t know how to do and where to start. Could you provide some links or some terms involved. ** ** *Thanks Best regards* Binh, Nguyen Thanh Cell phone: (+84)982260622 You could take a look in the existing policies available in trunk : https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/policy-* I have also started a policy maven archetype, which can be very useful to get all the right things in the right place to get you started. The only thing is that there might be few bugs on the archetype, as it wasn't fully tested yet, but I can certainly guide you on providing patches for any fixes you might find. https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/maven/archetypes/policy/ -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Is Tuscany SCA still growing?
On Wed, Aug 8, 2012 at 6:45 PM, binhnt22 binhn...@viettel.com.vn wrote: Thanks Raymond, I checked it yesterday and 2.0 distributions were really ready. However the central maven repository doesn't have any 2.0.RC1 lib yet. Maven should have version2.0/version -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuscany on Glassfish
On Fri, Jun 29, 2012 at 3:30 PM, Kallen McInerney kall...@marketamerica.com wrote: Yes I did include Wink and Tuscany in the WAR to start with. I was migrating from the embedded Jetty implementation to Glassfish so had something to compare against. Started debugging into Wink and from what I could tell it was a classloader issue. Again probably my inexperience with glassfish but hopefully it will get someone else over the hump. In couple of app servers (e.g. websphere and I believe geronimo), we have to configure to use the webapp classloader first. Based on your workaround and [1] this might seem to be the same problem, And [2] seems to explain how to turn app classload priority under Application-Specific Class Loading section. Let us know if that helps a bit... so we can document for others. Thanks [1] http://docs.oracle.com/cd/E18930_01/html/821-2418/beadf.html [2] http://docs.oracle.com/cd/E19798-01/821-1752/beade/index.html -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: SCA adoption ,in general
On Tue, Feb 14, 2012 at 2:13 AM, Simon Laws simonsl...@googlemail.com wrote: On Mon, Feb 13, 2012 at 6:08 AM, RV vra...@gmail.com wrote: Hello, I am making an architectural decision of using SCA ( Tuscany others) , in my product. I am just wondering ,how is adoption of SCA in the industry ? is it popular ? also, iam interested in seeing some performance metrics of Tuscany. Appreciate your reply. THanks, RV Hi Re. adoption of SCA in the industry. Certainly people are using it but I don't have an easy way of quantifying it. We get questions here on the user list and I know that people who build infrastructure products use it and support it, e.g. [1]. A quick Google will show others. Another way to look at this is that, in various cases, SCA is used as the platform for building large solutions/tools and you might not really see it's usage (e.g. IBM in their Websphere tools, and others like Oracle, Tibco, etc). Re. performance metrics. A good while back on the 1.x code base we had a user testing performance. They posted comment here on the User Feedback page [2]. We've been working on the 2.x code base but I haven't seen any performance metrics done. Would be a good project for someone (are you interested;-). A good starting question would be what specifics of performance are you interested in. Deployment, startup, runtime, partciular bindings etc. The performance for Tuscany 2.x and the web 2.0 bindings are very good and can handle webscale load very well without any noticeable overhead. [1] http://publib.boulder.ibm.com/infocenter/wasinfo/v8r0/topic/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/csca_overview.html?resultof=%22%53%43%41%22%20%22%73%63%61%22%20 [2] http://tuscany.apache.org/projects-using-tuscany.html Regards Simon -- Apache Tuscany committer: tuscany.apache.org Co-author of a book about Tuscany and SCA: tuscanyinaction.com -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Versioning Services
On Wed, Feb 8, 2012 at 8:54 AM, Anuj Bhatia anujbha...@gmail.com wrote: Hi, I have a Tuscany component that exposes a service via binding.rest and this forms the public API of my application. I would like to be able to version this service so that old clients can use the older version of the API if they want to. Clients could specify the version they want to invoke using a custom HTTP header, but if the header is missing the request should be routed to the latest version of the component by default. Are there any suggestions on the best way to achieve this with Tuscany? I could make a copy of the component for each supported version of the API. Each component would expose the slightly different interface. But can the be exposed at the same URL and requests routed based on a header value? One possibility I considered was to make a new component that would have a reference to all components that implement the different API versions. But this routing component would itself need to have a generic interface that accepts all incoming requests. I'm not sure how to accomplish that. Thanks Anuj Some food for thought http://www.infoq.com/news/2012/01/http-api-evolvability -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: can HelloWorldJSONRPC be modified to send objects?
On Thu, Oct 20, 2011 at 5:43 AM, Willis C White whiw...@us.ibm.com wrote: thank you for providing the demo. sorry to keep asking for more but my knowledge of how this all works is seriously lacking. In the HelloWorldJSONRPC example tuscany is started from the web.xml using a filter - does this serve the same purpose as the Launch.java class you have? Yes You also have some dojo included in you example but I don't see where it is used. Did I miss something? If so what? Some of the dojo details are hidden in the widget (see generated widget.js), but when i do personService.createPerson(person).addCallback... that's basically invoking a remote service via json-rpc using dojo. The sample in the distribution is very close to what I need - starting Tuscany form web.xml and not using dojo. I just need it to send objects to back end. Good luck, you should be able to identify the things your application needs from the sample I provided. Please see how the model pojo is defined, the interface and annotations on the interface, and you should be good to go. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: can HelloWorldJSONRPC be modified to send objects?
On Wed, Oct 19, 2011 at 5:45 AM, Willis C White whiw...@us.ibm.com wrote: implements java.io.Serializable { private String FirstName; private String LastName; private String Longatude; private String Latitude; private Integer ID; private String Description; public person() { } public void setFirstName(String firstName) { this.FirstName = firstName; } public String getFirstName() { return this.FirstName; } public String getLastName() { return this.LastName; } public void setLastName(String lastName) { this.LastName = lastName; } public String getLongatude() { return this.Longatude; } public void setLongatude(String longatude) { this.Longatude = longatude; } public String getLatitude() { return this.Latitude; } public void setLatitude(String latitude) { this.Latitude = latitude; } public Integer getID() { return this.ID; } public void setID(Integer id) { this.ID = id; } public String getDescription() { return this.Description; } public void setDescription(String description) { this.Description = description; } } Ok, I guess it's really easy with access to the code, please find a working example at https://svn.apache.org/repos/asf/tuscany/sandbox/lresende/sca-2.x/samples/person-jsonrpc/ -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: can HelloWorldJSONRPC be modified to send objects?
On Tue, Oct 18, 2011 at 5:50 AM, Willis C White whiw...@us.ibm.com wrote: I am still getting the same error. I used the code you sent me. function sendAndGetInfo(){ try{ var person = new Object(); person.Firstname = document.getElementById(Firstname).value; person.Lastname = document.getElementById(Lastname).value; person.Description = document.getElementById(Description).value; person.Latitude = document.getElementById(Latitude).value; person.Longatude = document.getElementById(Longatude).value; json_data = JSON.stringify(person); console.log(person); HelloWorldService.setPersonInfo(person, handleInfoResponse); }catch(e){ console.dir(e); } } function handleInfoResponse(result) { console.log(result); } this is what firebug says is being posting {id: 4, method: Service.setPersonInfo, params: [{Firstname: willis, Lastname: white, Description: sdfsdfds, Latitude: 23, Longatude: 2455}]} this is the error I am getting {error:{msg:argument type mismatch,trace:java.lang.IllegalArgumentException: argument type mismatch\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)\r\n\tat java.lang.reflect.Method.invoke(Method.java:599)\r\n\tat org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:156)\r\n\tat org.apache.tuscany.sca.binding.jsonrpc.provider.JSONRPCServiceServlet.handleJSONRPCMethodInvocation(JSONRPCServiceServlet.java:261)\r\n\tat org.apache.tuscany.sca.binding.jsonrpc.provider.JSONRPCServiceServlet.handleServiceRequest(JSONRPCServiceServlet.java:164)\r\n\tat org.apache.tuscany.sca.binding.jsonrpc.provider.JSONRPCServiceServlet.service(JSONRPCServiceServlet.java:97)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:831)\r\n\tat org.apache.tuscany.sca.host.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:107)\r\n\tat org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:94)\r\n\tat com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)\r\n\tat com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)\r\n\tat com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)\r\n\tat com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:852)\r\n\tat com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:917)\r\n\tat com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:924) this is the beginning of the data class. I have tried this with and without constructors and with and with out default values for the private members. package TOdata; public class person { private String FirstName = ; private String LastName = ; private String Longatude = ; private String Latitude = ; private Integer ID = 0; private String Description = ; public person() { super(); } public person(String firstName, String lastName, String longatude, String latitude, String description) { super(); FirstName = firstName; LastName = lastName; Longatude = longatude; Latitude = latitude; Description = description; } This is my interface class. package helloworldjsonrpc; import TOdata.person; public interface HelloWorldService { String getGreetings(String name); person setPersonInfo(person info); } Willis C. White III Software Engineer, CIO Lab IBM Certified IT Specialist Code Warrior EM:whiw...@us.ibm.com NM:Willis White/Poughkeepsie/IBM From: Luciano Resende luckbr1...@gmail.com To: user@tuscany.apache.org Date: 10/18/2011 01:13 AM Subject: Re: can HelloWorldJSONRPC be modified to send objects? On Mon, Oct 17, 2011 at 10:19 AM, Willis C White whiw...@us.ibm.com wrote: function sendAndGetInfo(){ try{ var info = new Object(); info.Firstname = document.getElementById(Firstname).value; info.Lastname = document.getElementById(Lastname).value; info.Description = document.getElementById(Description).value; info.Latitude = document.getElementById(Latitude).value; info.Longatude = document.getElementById(Longatude).value; json_data
Re: can HelloWorldJSONRPC be modified to send objects?
On Tue, Oct 18, 2011 at 12:09 PM, Willis C White whiw...@us.ibm.com wrote: I still have the problem. Fix one thing these two line where wrong info.Firstname = document.getElementById(Firstname).value; info.Lastname = document.getElementById(Lastname).value; should be FirstName and LastName (not Firstname and Lastname) are the constructors I have in my earlier post, wrong? Yes, see [1]... default no arg constructor and getters and setters for all the properties [1] http://en.wikipedia.org/wiki/JavaBean -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
WADL and Google APIs discovery service for REST Binding
I have added support for generating WADL for resources exposed with the rest binding, this follows the same pattern of the wsdl generation and any resource can add a ?wadl to the root of the resource. e.g.: http://localhost/Catalog?wadl I'm also going to look into adding something similar to generate a resource description document to enable live testing of resources via Google APIs Discovery Service [1] [1] http://code.google.com/apis/discovery/ -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Consuming a REST Service that returns values in a custom HTTP header
On Thu, Sep 15, 2011 at 1:45 AM, Anuj Bhatia anujbha...@gmail.com wrote: Hi All, I'm trying to use Tuscany's rest binding to invoke a REST web service operation that return values using a custom header. But it looks like the custom header values are not returned by the rest binding classes and there's no way right now to add a custom JAX-RS provider to parse the response. Is my understanding correct? The REST binding currently does not allow you to inject your own providers. The existing binding.rest does add two custom JAX_RS providers - DataBindingJAXRSReader and DataBindingJAXRSWriter - which hookups the Tuscany runtime's data binding framework and allows them to read and transform the request and response bodies, but there's no explicit support for parsing custom headers, right? Thanks Anuj One of the benefits of using Tuscany/SCA is the ability to abstract the actual infrastructure layer being used which allows your service to be exposed with different bindings. Based on that, having your service interface dependent directly on http specific things will make it less flexible. Having said that, if this is really a requirement, you could try using some of the JAX-RS/WINK specific resources into your service like @Context private HttpHeaders headers; or try using wink extensibility... -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuscany 1.6 dependency on HttpClient 3.1
On Wed, Jun 22, 2011 at 9:31 AM, Simon Nash n...@apache.org wrote: Millies, Sebastian wrote: Hello there, Tuscany 1.6 depends on Apache Commons HttpClient 3.1. Is there any chance of upgrading this to Apache HttpComponents HttpClient (currently 4.1.1)? Is it really necessary to have the dependency in Tuscany at all? Best, Sebastian Hi Sebastian, This dependency is necessary because HttpClient is used by the Java code in a number of Tuscany modules: binding-atom-abdera binding-feed binding-gdata-runtime binding-jsonp-runtime binding-ws-axis2 To upgrade this dependency, the pom.xml files in these modules would need to be changed to use the newer version, and the newer version would need to be verified for compatibility by doing a complete top-level build. The commons-httpclient dependency also appears in the following poms: modules/binding-rss-rome samples/simple-bigbank-spring There's no use of httpclient in the Java code for these modules, so it should be OK to remove the dependency from these poms. The 3.1 level of commons-httpclient is used by Axis2 1.4.1. It would be necessary to add explicit exclusions for this in all the Tuscany poms that have an Axis2 1.4.1 dependency, and add the newer version to these poms as an explicit dependency. It would also be necessary to verify that Axis2 1.4.1 works correctly with the newer version. This could be quite a lot of work. The binary distribution build would need to be changed to exclude the commons-httpclient-3.1 jar file (brought in as a dependency of Axis2) and add the newer HttpClient jar instead. Then the binary distribution would need to be tested fully to make sure that it still works correctly. Finally the LICENSE file in the distribution module would need to be updated. I think that's everything, but I might have missed something. Would you like to try doing this, and then create a JIRA with a patch so that someone can apply it? Simon We moved some of these HttpClient 3.1 dependencies to a more current release in 2.x and while doing that we noticed that the two APIs are incompatible, so changing in 1.x would require some code changes. I believe we can do that in all our bindings, but we need to investigate what are the side effects/hard dependency on this library. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Error loading deployable composite with exploded directory
On Tue, Dec 21, 2010 at 4:39 AM, Hudgins, Paul phudg...@ciena.com wrote: Following the instructions from Dave’s blog [1] I successfully deployed the sample-calculator-webapp.war from the 1.6.1 version of Tuscany SCA within a WebLogic 10.3.3 hosting environment. My next step was to explode the war and begin replacing the composites and classes with my own code. Before I replaced any files, I tried to deploy the web app as an exploded directory since it is easier to develop in this fashion. To my surprise, the following error happens: Caused By: java.lang.IllegalArgumentException: No deployable composite is declared at org.apache.tuscany.sca.node.impl.NodeImpl.aggregate(NodeImpl.java:643) at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:565) at org.apache.tuscany.sca.node.impl.NodeImpl.init(NodeImpl.java:381) at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANode(NodeFactoryImpl.java:47) at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:175) So my questions are whether other folks have experienced this, and what was done (if anything) to get it working in an exploded directory? Is this specific to WebLogic’s deployment implementation? The obvious workaround is to not develop in the expanded dir and just add a jar step to my build/deploy process. [1] http://davesowerby.blogspot.com/2008/02/using-tuscany-with-weblogic.html Do you have a sca-contribution.xml with deployable element containing the QName of the composite you want to start ? See [1] for an example : [1] https://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/samples/calculator-webapp/src/main/webapp/META-INF/sca-contribution.xml -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Widget composition
On Mon, Dec 13, 2010 at 5:01 PM, Emilio Numazaki mediasoni...@gmail.com wrote: Hi Luciano, thanks for your reply. Hmmm, ok, since it is not possible to create a binding for a widget, I was thinking about a way to get all components and its implementations. Let's suppose I have a SCA Composite with many Components into. 1) How can I get reference (by code or declarativelly) for all Components? 2) How can I get the location of widget implementation? I'll download code you've suggested and test it... Thank you, The following documentation can give you better details about Widget and it's usage http://tuscany.apache.org/getting-started-with-tuscany.html http://tuscany.apache.org/sca-java-implementationwidget.html These links are based on 1.x, but these haven't changed much in 2.x -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Widget composition
On Mon, Dec 13, 2010 at 12:23 PM, Emilio Numazaki mediasoni...@gmail.com wrote: Hi all, I'd like to create a kind of workspace which is basically an aggregation of many HTML snippets in one dynamic page. Each snippet will be a reference of an implementation.widget. (http://tuscany.apache.org/sca-java-implementationwidget.html) My questions are: - Is there a way to use implementation.widget as a reference? - If last question is yes, then how can I discovey all the references that is part of my composite? For example, let's suppose I have a component with three references a.html, b.html and c.html. I'd like to create a dynamic AJAX page (as implementation.widget) that can get each piece of reference to compose a single dynamic page. Thanks in advance. Widget only support references to SCA server side services, and not to other widgets/pages. But what you are describing is available in couple places, and uses widget to certain extent. See [1] and [2] [1] https://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/tutorials/store/store-mashup/ [2] https://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/modules/domain-manager/ -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Elementary question about Scopes
On Wed, Dec 8, 2010 at 12:27 AM, Millies, Sebastian sebastian.mill...@ids-scheer.com wrote: I've noticed that I have been making some of my services COMPOSITE scope, others not, without apparent reason. My question regards the difference between composite and default (request) scope, disregarding conversations. As I see it, either a service implementation maintains state or it does not. If it does, it must be made composite scope, so as not to lose the state between requests, and one must take care of shared access (thread issues) in one's programming. If it does not, it wouldn't matter if it were composite scope, as there would be no shared state to care about how to access anyway. So it could as well be made composite. A service being composite scope earns the additional benefit of the init() method, which can be costly, only being executed once. So I would decide to make all my services composite scope by default. Would that be wrong? In other words, is there any particular advantage associated with default scope services? Any specific runtime properties in Tuscany 1.6 perhaps? -- Sebastian In the 1.x context, here is a good explanation from Mike: http://tuscany.markmail.org/thread/ubfs2ohn67vv5nw2 In 2.x, the SCA Specs reduced to only support COMPOSITE and STATELESS (default) -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: [ANNOUNCE] Apache Tuscany SCA Java 2.0-Beta1 released
On Wed, Nov 24, 2010 at 9:59 AM, Raymond Feng cyberf...@gmail.com wrote: Thanks Simon for managing the release. I make Raymond's words my words. +1 and Thanks. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuscany running in weblogic
On Mon, Nov 22, 2010 at 2:04 PM, Li, Bangyi b...@ciena.com wrote: Hi, I am wondering if anyone has successfully run Tuscany with weblogic application server, if so, what’s the steps? This might be helpful : http://davesowerby.blogspot.com/2008/02/using-tuscany-with-weblogic.html As Simon noted, this is based on Tuscany 1.x. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Newbie config stuff...
On Tue, Nov 23, 2010 at 8:02 PM, Ted Stevens tstevens...@earthlink.net wrote: Not sure if this is the right place to post but here goes: I've got a project and directory structure similar to the 'store' example - I've got just 1 client service class.. should be pretty simple. Problem is the javascript is unable to resolve the tuscany package in the html page, ie... myJavaClass myObject = new tuscany.sca.Reference(myService); produces a javascript error In order to tuscany.sca.Reference to work, you need to have a component defined using implementation.widget. Do you have that ? Could you please post your composite here ? -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Meaning of ContributionWriteException?
On Fri, Nov 5, 2010 at 11:02 AM, Millies, Sebastian sebastian.mill...@ids-scheer.com wrote: Hello there, I’m trying to call a service method over an RMI-Binding, passing a static SDO. I get the following exception: org.apache.tuscany.sca.contribution.service.ContributionWriteException: javax.xml.stream.XMLStreamException: Unbound namespace URI 'http://tuscany.apache.org/xmlns/sca/1.0' Without knowing further details, can anyone guess what this might mean and where I can look for the cause of the problem? Are you trying to persist a composite from a contribution model by any chance ? -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
[ANNOUNCE] Apache Tuscany SCA Java 2.0-M5.1 released
The Apache Tuscany team is pleased to announce the 2.0-M5.1 release of the Java SCA 2.0 project. Apache Tuscany/SCA provides a runtime environment based on Service Component Architecture (SCA), which is a set of OASIS specifications aimed at simplifying SOA application development. The main purpose of this minor release is to fix the Tuscany Runtime to restore support for running SCA applications in the Google AppEngine environment. See the RELEASE_NOTES and CHANGES file for more details about the release, and to download the distributions please go to: http://tuscany.apache.org/sca-java-2x-releases.html To find out more about OASIS Open CSA go to: http://www.oasis-opencsa.org Apache Tuscany welcomes your help. Any contribution, including code, testing, contributions to the documentation, or bug reporting is always appreciated. For more information on how to get involved in Apache Tuscany visit the website at: http://tuscany.apache.org Thank you for your interest in Apache Tuscany! -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuscany Tools 1.3.1 plugin with Eclipse 3.4 (Ganymede) installation
On Tue, Oct 19, 2010 at 9:57 AM, Bo Xie mrbo...@gmail.com wrote: Hi Simon, I got same error with http://www.apache.org/dist/tuscany/java/sca/1.6/tuscany-sca-1.6-updatesite/. Eclipse is 3.4.2(Ganymede). After select search for updates of the currently installed features, the old update manager was launched and started to download things, I can see Update Manager(..%) shown progress on the eclipse status bar. At around Update Manager(57%), the Network connection problem encountered during search message pop up. The error message attached in the original message was cut/pasted from the detail panel. Attached is a screen shot. You might be reaching some timeout limit, try from a mirror http://www.fightrice.com/mirrors/apache/tuscany/java/sca/1.6/tuscany-sca-1.6-updatesite/ -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: what is the release plans for SCA Tuscany 2.0
On Mon, Oct 11, 2010 at 7:52 AM, Malisetti, Ramanjaneyulu ramanjaneyulu.malise...@ca.com wrote: Hi, So far SCA Tuscany 2.0 has been into milestone releases. What are the blocking features for RTM release? How stable it is as of now? We have been using 1.6 version and our product is not yet released. We would like to switch to 2.0 for REST and HTTPS. Before that we would like to know 2.0 release plans and its stability. I appreciate your response on this. Take a look at this thread : http://www.mail-archive.com/user@tuscany.apache.org/msg02782.html -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: [Tuscany M5] Problem with the REST binding...
On Mon, Sep 20, 2010 at 2:32 AM, Alexander Blotny alexander.blo...@fokus.fraunhofer.de wrote: Hi Luciano, does the hudson build work again? So that your fix is in the snapshot? Thx, Alex Hudson is very unstable these days, I'd recommend you checkout the latest code and build it yourself and you will have all fixes. Instructions to download the source and build is available at [1]. [1] http://tuscany.apache.org/documentation-2x/sca-java-development-guide.html -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: FW: Distributed Logging with SCA and Log4J
On Mon, Sep 13, 2010 at 3:13 PM, Millies, Sebastian sebastian.mill...@ids-scheer.com wrote: I'd really be interested in some other views on how to implement logging in an SCA application. Many people must have implemented something, and even more at least thought about it ... -- Sebastian Have you looked into Scribe ? Not sure if this is too over engineered to your needs, but it seems others have been playing with it in 2.x https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/samples/logging-scribe/ -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Tuscany related sessions at JavaOne 2010
Some of us will be at JavaOne this year, and we will be presenting two Tuscany related sessions : Session ID: S314011 Session Title: Developing composite applications for the Cloud using Apache Tuscany Wednesday, September 22, 11:30AM Today's cloud environments pose new challenges for application developers: hiding cloud infrastructure from business logic, assembling components on heterogeneous and distributed cloud environments, and optimizing the provisioning of the required cloud resources. This session will demonstrate how to use Apache Tuscany and the Service Component Architecture (SCA) to develop, build, and run an application composed of several service components in a distributed cloud environment. We'll illustrate how to encapsulate cloud infrastructure services as SCA components to simplify the construction and assembly of the application and how to move components around and rewire the application to adjust to new business and cloud deployment conditions. Session ID: S313731 Session Title: Databinding Unleashed for Composite Applications Tuesday, September 21, 8:00AM Data bindings such as JAXB, SDO, DOM, and JSON denote how business data is represented. Collaborating components in a composite application often need to use different data bindings as required by the business logic or protocol stacks. Apache Tuscany provides a framework that allows mixing and matching of data bindings so that application developers can have the freedom to choose their preferred data binding technology without worrying about complex data transformations. This session is for developers looking for flexibility of data bindings in the enterprise. Attendees will learn about: * Decoupling data bindings between service consumers and providers * Tuscany?s approach to transform data without the intervention from application code If you are going to be around, stop by and introduce yourself... -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Q: How to create a binary distribution
On Mon, Sep 6, 2010 at 4:38 PM, Simon Nash n...@apache.org wrote: Luciano Resende wrote: On Fri, Sep 3, 2010 at 3:57 PM, Simon Nash n...@apache.org wrote: Apologies for the delay in making a 1.6.1 test build available. I'll try to get something out for review early next week. I have setup a Hudson build for the 1.6.1 branch and you can check a SNAPSHOT Distribution at [1] [1] https://hudson.apache.org/hudson/view/Tuscany/job/Tuscany-1.6.1/ws/sca-java-1.6.1/distribution/target/ Thanks for doing this. I tried the link but it hung my browser and never came back with a response. Simon Not sure what's going on with Hudson, it's hanging trying to access the workspace... if it's still not working in a little while, we will need to contact Infra to get some help. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Q: How to create a binary distribution
On Fri, Sep 3, 2010 at 3:57 PM, Simon Nash n...@apache.org wrote: Apologies for the delay in making a 1.6.1 test build available. I'll try to get something out for review early next week. I have setup a Hudson build for the 1.6.1 branch and you can check a SNAPSHOT Distribution at [1] [1] https://hudson.apache.org/hudson/view/Tuscany/job/Tuscany-1.6.1/ws/sca-java-1.6.1/distribution/target/ -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Q: How can use SDO with MySQL?
On Sun, Sep 5, 2010 at 10:54 PM, hanni_xu hanni...@126.com wrote: Hello all, I want to use Tuscany SDO with MySQL, but I don't know whether SDO can support MySQL. If not support, what should I do to make MySQL been supported by SDO? Thanks in advance. 2010-09-06 hanni_xu You would need to use DAS to read/write SDO from the MySQL database. There should be various tests/samples using Derby in the DAS project, but they should be easily adaptable to MySQL. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuscany 1.6 vs. 2.0
On Thu, Sep 2, 2010 at 3:39 PM, Millies, Sebastian sebastian.mill...@ids-scheer.com wrote: I am not sure about moving up to Tuscany 2.0. Can anyone comment on the state of the 2.0 code to help me decide? You should definitely move to 2.x, and in the case that you might be using some extensions not yet migrated to 2.x let us know, or let us migrate it. A few things come to mind: Have the specifications on which 2.0 is based even been finalized by OASIS? How stable is the code? There are many bugs in JIRA for 2.0, but much fewer for 1.6 - is it because 2.0 is in a state of flux, or because no one bothers with 1.6 anyway? 2.x has been in more active development, and we are also tracking compliance fixes/todos via jira, that's probably why. What about the sad lack of documentation for 2.0? A lot of 1.x documentation still applies to 2.x. We have also started a wiki to migrate 2.x specific documentation at http://tuscany.apache.org/documentation-2x/ The very fine book Tuscany SCA in Action is based on 1.4 - how much of that will survive for 2.0? How much work would it be to migrate to 2.0 later on? What constructs should be avoided now to make such migration easier (conversational interfaces etc.)? A lot of the concepts haven't changed, samples might change a little, but people have started porting the Travel Sample to 2.x as well, which is the sample used in the book. When developing a business application, with a team that does not have much SCA experience, at the moment I'd feel slightly safer with 1.6. Do you think I should overcome that feeling? Yes, and if you find issues, you will definitely get a quicker fix if this is in the 2.x code stream. Well, these are my personal view.. others feel free to jump with your thoughts. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: FW: Q: Adding classes to a node
On Thu, Sep 2, 2010 at 3:29 PM, Millies, Sebastian sebastian.mill...@ids-scheer.com wrote: I don't understand. When I start the DomainManagerLauncher and then use the web ui to configure and start my nodes, I can only set the classpath for the VM in which the domain manager runs. Do all nodes in the domain automatically share that classpath? I can't imagine that, as the nodes may be distributed over differently configured servers. (I am not talking deployment of web apps etc., just simple Java components in a Tuscany runtime.) -- Sebastian Is you scenario more like, your contribution that is deployed to a node requires a system utility or some java code such as Log4J, then you need to have that available in the classpath or the distribution being used for that node. If the code is really more like business functionality needed by your contribution, then your scenario looks more like what is described in the Tutorial/store where most of the contributions uses store-assets and then there are imports/exports of resources, packages, etc. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: [Tuscany M5] Problem with the REST binding...
On Tue, Jul 20, 2010 at 10:53 AM, Luciano Resende luckbr1...@gmail.com wrote: On Mon, Jul 19, 2010 at 11:05 AM, Alexander Blotny alexander.blo...@fokus.fraunhofer.de wrote: Hi Luciano, did you have a look at the JIRA issue TUSCANY-3595? I do not find a solution. greetings, Alex I did take a look, and had it going further... I´m currently having issues with class loaders which is loading different interface and causing issues with the wink integration. I´m having limited access to internet untill this weekend, but will try to update the progress when I get back to us. Hi Alex I finally got enough time to go over this and hopefully find and fix all of the issues with Tuscany and Wink to allow the REST binding to work properly in a OSGi environment. Could you please give it a try and let me know if you still have any issues. Thanks -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: tutorial
On Wed, Aug 25, 2010 at 10:46 PM, Hemavathy S hemavath...@gmail.com wrote: Hello, I've ordered the book. In the meantime, I just need to understand this. I have a set of POJO classes that make an app and I need to expose a few of them as web service/rmi and REST. I cannot use Atom/Rss bindings. I need to use binding.rest. I think Luciano Resende wrote an post on that in his blog. So do I have to use Tuscany 1.6 or 2.0-M5. 2.0-M5 Since most of the articles and the book is also based on Tuscany 1.6, if I have to use 2.x, are there a lot of differences other than the launcher classes, ie, in the way the services/bindings are specified and built? Some documentation here: http://tuscany.apache.org/documentation-2x/sca-java-bindingrest.html Do I have to deploy any tuscany library(war) in tomcat first? I use tomcat 6.0.26. Either deploy it as a webapp or use embedded http. There are multiple examples on using embedded http in the test folder for the binding-http-runtime I hope someone has time to clarify these. Hope this helps, otherwise please let us know if you find specific issues. Thanks in advance -Hema -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: tutorial
On Wed, Aug 25, 2010 at 10:51 PM, Luciano Resende luckbr1...@gmail.com wrote: Do I have to deploy any tuscany library(war) in tomcat first? I use tomcat 6.0.26. Either deploy it as a webapp or use embedded http. There are multiple examples on using embedded http in the test folder for the binding-http-runtime I replied to quick on this part. So, you can create a webapp which would have tuscany dependencies on it (see couple webapp examples in tuscany). -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: DOJO and Tuscany 2.0
On Tue, Aug 10, 2010 at 7:07 AM, fabia...@br.ibm.com wrote: java.lang.NoClassDefFoundError: org/codehaus/jackson/map/AnnotationIntrospector It looks like you are still missing some dependencies... best would be to go to a working sample, do a mvn dependency:copy-dependencies and check what jars you have missing. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: DOJO and Tuscany 2.0
On Mon, Aug 9, 2010 at 12:17 PM, fabia...@br.ibm.com wrote: Hi , I could develop a simple service in Tuscany 2.0, but I'm trying to reach it trough a DOJO javascript application, this service uses a JSON-RPC binding.. I'd like to know if there's some sample like this in the web site, could you pass me the link? or if someone has developed something like this and wants to share... https://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/samples/helloworld-dojo-webapp/ https://svn.apache.org/repos/asf/tuscany/sandbox/lresende/sca-1.x/samples/store-secure-webapp/ -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: DOJO and Tuscany 2.0
On Mon, Aug 9, 2010 at 12:36 PM, fabia...@br.ibm.com wrote: Thanks for your answer, But I just would like to confirm if these samples will work with service deployed in a Tuscany 2.0 code since that in the URL it refers to a *1.x* Thanks Regards,* * The pure dojo portion is independent of Tuscany and would work on both 1.x or 2.x using DOJO native support for JSON-RPC and passing the Service URI with ?smd on it's initialization : var helloWorldService = new dojo.rpc.JsonService(HelloWorldService?smd); -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuscany-cpp packaging options for minimal disk space, was: Qpid functionality in Tuscany
On Thu, Aug 5, 2010 at 2:52 AM, Mario Grotschar mario.grotsc...@gmail.com wrote: Thanks for the informaton. Could there be any license poblems with Apache when using it for commerical purposes? The Apache License is a very permissible license and very commercial friendly license. More details about the license is available at [1]. I'd always recommend checking with your lawyer to make sure things are ok on your specific case. [1] http://www.apache.org/licenses/ -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Creating a simple Tuscany 2.0 application
On Wed, Aug 4, 2010 at 9:24 AM, fabia...@br.ibm.com wrote: Hi I removed that jars and the error messages stopped. The application could start normally. Thanks for the suggestion. In the other hand, in the same application, I'm trying to get the ?SMD to use it in a DOJO object like this in my js code: .. *var* authenticationService = *new* dojo.rpc.JsonService( AuthenticationComponent/authentication?smd); ... Any how I think it should give the contract of the service by the browser url, when I'm submitting it, but it's not working http://localhost:8081/sample-service/AuthenticationComponent/authentication?smd You have : tuscany:binding.*jsonrpc* *uri*=authentication/ You might want to try: tuscany:binding.*jsonrpc* *uri*=/authentication/ Or check the console output of your server startup to see what URI is being registered to your service... if you don't do a /authentication the runtime might prefix component/service name to the URI. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: [Tuscany M5] Problem with the REST binding...
On Mon, Jul 19, 2010 at 11:05 AM, Alexander Blotny alexander.blo...@fokus.fraunhofer.de wrote: Hi Luciano, did you have a look at the JIRA issue TUSCANY-3595? I do not find a solution. greetings, Alex I did take a look, and had it going further... I´m currently having issues with class loaders which is loading different interface and causing issues with the wink integration. I´m having limited access to internet untill this weekend, but will try to update the progress when I get back to us. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: SCA/Tuscany x Portlet JSR 268
Ola Paulo, comments inline On Mon, Jul 5, 2010 at 12:17 PM, Paulo Alvim al...@powerlogic.com.br wrote: Hi Folks, I`m starting with SCA/Tuscany and I have a few conceptual questions: I need to build some kind of “Dashboard/Portal” application composed by a “Dashboard View” (a dynamic layout) and various dynamic Dashboard Gadgets that I’d like to develop in a component model like SCA. In fact, I could use “Portlet JSR 268” but I would need a traditional “server centric” Portal product – and my impression is that the portlet model is old fashioned (although I’m not completely sure). I’d like to have only one SCA (Java) component that should be able to: - FIRST: Serve “Web Static Content” (HTML5, CSS3 and Javascript files) to be rendered in a dashboard panel/gadget area (this would probably be persisted locally by using HTML5 Local Persistence) - SECOND: To keep RESTful Ajax interations with the client My questions are: 1. I didn't find examples of SCA components serving client content (HTML) directly. The HTML/CSS/JS files are normally deployed in the client application. But it’s a reasonable architecture? Is there any problems to do that that I can't see (as a begginer)? Here is an example of a service returning images, should be same scenario as the one you are describing, where you want to basically send resources back to client. http://svn.apache.org/repos/asf/incubator/photark/trunk/photark-jcr/src/main/java/org/apache/photark/jcr/services/JCRImageCollectionImpl.java !-- Component responsible for providing REST access to images -- component name=ImageServiceComponent implementation.java class=org.apache.photark.jcr.services.JCRImageCollectionImpl/ service name=ImageCollection tuscany:binding.http uri=/gallery/ /service reference name=repositoryManager target=RepositoryManager/ /component You also mentioned you want to have a AJAX iterations between the client and the services, and you could also see an example of a in-progress REST API at http://svn.apache.org/repos/asf/incubator/photark/branches/photark-rest/ Some other examples are available in the binding-rest-runtime test scenarios https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/ 2. If it's reasonable: Must I deliver this component as a regular JAR or is there another more appropriate format in SCA/Tuscany? In SCA, you are delivering things as contributions, depending on how you are packing your application you can have jars, zips or even folder structures as contributions. 3. Does anyone have links (or arguments) about “portlet JSR268 x SCA”? I don't think these two technologies compete with themselves. SCA would be used for assembling you services, where you would use JSR268 more towards providing portlets (ui pieces/widgets) that consume your SCA services. Having said that, I'm not sure if you are asking more towards replacing JSR268 with SCA, and if that is your question, let me put this way, you should be able to build your ui that integrates with your SCA Services as Portlets, JSPs following Java EE standards, Web 2.0 client applications (you might get some help of SCA Widgets), etc Thanks in advance! I intend to study Tuscany in depth but any tip at this moment will help me a lot... Paulo Alvim Brazil -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuscany and Spring 3
On Tue, Jun 29, 2010 at 4:21 AM, Gregor Kiddie gregor.kid...@channeladvisor.com wrote: Ok, checked out the latest code ( as of 18/06/10 ) and built it. I'm getting this exception when I try to run it. Caused by: java.lang.ClassCastException: org.apache.tuscany.sca.assembly.impl.ExtensionImpl cannot be cast to org.apache.tuscany.sca.assembly.Composite at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.read(CompositeDocumentProcessor.java:114) at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.read(CompositeDocumentProcessor.java:87) at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.read(CompositeDocumentProcessor.java:50) at org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExtensionPoint$LazyURLArtifactProcessor.read(DefaultURLArtifactProcessorExtensionPoint.java:288) at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.read(ExtensibleURLArtifactProcessor.java:109) at org.apache.tuscany.sca.contribution.processor.impl.ContributionContentProcessor.read(ContributionContentProcessor.java:152) at org.apache.tuscany.sca.contribution.processor.impl.ContributionContentProcessor.read(ContributionContentProcessor.java:64) at org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExtensionPoint$LazyURLArtifactProcessor.read(DefaultURLArtifactProcessorExtensionPoint.java:288) at org.apache.tuscany.sca.deployment.impl.DeployerImpl.loadContribution(DeployerImpl.java:621) at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(NodeFactoryImpl.java:394) at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:125) -Original Message- From: Luciano Resende [mailto:luckbr1...@gmail.com] Sent: 22 June 2010 07:28 To: user@tuscany.apache.org Subject: Re: Tuscany and Spring 3 On Wed, Jun 16, 2010 at 9:46 AM, Luciano Resende luckbr1...@gmail.com wrote: On Wed, Jun 16, 2010 at 8:54 AM, Gregor Kiddie gregor.kid...@channeladvisor.com wrote: Well, I utterly failed in trying to update it to 3! Any chance you could take a look at it? Gk. Sure, let me look at it over the weekend. I have fixed this in the 2.x trunk via TUSCANY-3605 and the Spring dependency is now moved to 3.0.2.RELEASE. Please let me know if this works for you. [1] https://issues.apache.org/jira/browse/TUSCANY-3605 Note that I also recently changed the implementation-spring-sca to implementation-spring-runtime. If your application is using maven, please make sure you have the right artifact name for the dependency. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Problem with Tuscany 2.0 M5 hello world example
On Wed, Jun 23, 2010 at 1:52 PM, Roberts, Keith (SAIC) keith.robe...@va.gov wrote: I’m using maven to resolve dependencies. The only difference I see in the pom.xml files are 2 web libraries in the store example. I don’t see an explicit dependency for the java extension package in the store pom. mvn dependency:tree should give you a list of transient dependencies. The store might be using the web 2.0 feature pom that aggregates all required dependencies for a wb 2.0 type of application. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuscany and Spring 3
On Wed, Jun 16, 2010 at 9:46 AM, Luciano Resende luckbr1...@gmail.com wrote: On Wed, Jun 16, 2010 at 8:54 AM, Gregor Kiddie gregor.kid...@channeladvisor.com wrote: Well, I utterly failed in trying to update it to 3! Any chance you could take a look at it? Gk. Sure, let me look at it over the weekend. I have fixed this in the 2.x trunk via TUSCANY-3605 and the Spring dependency is now moved to 3.0.2.RELEASE. Please let me know if this works for you. [1] https://issues.apache.org/jira/browse/TUSCANY-3605 -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: [Tuscany M5] Problem with the REST binding...
On Tue, Jun 22, 2010 at 10:05 AM, Alexander Blotny alexander.blo...@fokus.fraunhofer.de wrote: Hi, I am still trying to get REST working in Tuscany M5. I changed the tuscany-binding-rest-runtime-2.0-M5.jar Manifest file as attached. At first the org.apache.tuscany.sca.interfacedef.java;version=2.0.0 import was missing as filed in https://issues.apache.org/jira/browse/TUSCANY-3595. Secondly a package was resolved from a wrong bundle resulting in: java.lang.NoClassDefFoundError: org/apache/tuscany/sca/core/invocation/ProxyFactory The package org.apache.tuscany.sca.invocation is exported by org.apache.tuscany.sca.core bundle and org.apache.tuscany.sca.core.spi bundle. I have added following line in manifest to use the right bundle: Require-Bundle: org.apache.tuscany.sca.core Not sure if this should be done in that way... Nevertheless the next exception occurred and I don't know what to do for solving that issue. I attached the error log. Thanks in advance for some help. greetings, Alex I have assigned the JIRA to myself, and I'm going to start looking at this today in my night shift :) -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuscany and Spring 3
On Thu, Jun 10, 2010 at 8:33 AM, Gregor Kiddie gregor.kid...@channeladvisor.com wrote: Is this possible yet? Whenever I try it with any version of Spring later than 2.5.5 I get unimplemented exceptions (Using Tuscany 1.6). I noticed Tuscany 2 is using Spring 2.5.5 as well, so nothing has changed on this front? Gk. I've recently updated 2.x to 2.5.6 (which was included in the latest M5 release), and moving to Spring 3.x should not have big impact. You could try providing us a patch, but otherwise I could try to look at it sometime by middle/end of next week. [1] https://issues.apache.org/jira/browse/TUSCANY-3585 -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuscany and Spring 3
On Thu, Jun 10, 2010 at 9:39 AM, Gregor Kiddie gregor.kid...@channeladvisor.com wrote: I'll take a look at the fix for that issue you linked. Any ideas how much effort it would be to write a patch for using Spring 3? I'll take a look at it myself if you reckon it's not too bad. Gk. Bumping Spring to 3 shouldn't be hard, you might experience some compilation errors if there are API changes, and we can help solving the issues you find along the way. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuscany SCA Java implementation.jpa
On Sun, Jun 6, 2010 at 5:01 PM, Flavio Faria flavio.fa...@uniriotec.br wrote: Hi All! I have been try to execute the example in https://cwiki.apache.org/confluence/display/TUSCANY/SCA+Java+implementation.jpa but it doesn't work. The annotation @Query doesn't compile. Are there any jar or lib who I should include in application classpath? Thanks, Flávio Sorry if this page is a little misleading, but these are ideas for implementing a new persistence extension based on JPA, but currently this is not implemented yet. Having said that, if you want to help us implement, I'm happy to mentor and help get it done. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Qpid functionality in Tuscany
On Sun, May 30, 2010 at 12:20 PM, Mario Grotschar mario.grotsc...@gmail.com wrote: Thanks very much for this detailed description! Do you by accidentally know when the qpid component was added ? On Sat, May 29, 2010 at 12:43 PM, Jean-Sebastien Delfino jsdelf...@apache.org wrote: When was Qpid added as a component to Tuscany? Tuscany C++, Feb 2010. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: There maybe a BUG when publish SCA Service through Spring implement.
On Thu, May 13, 2010 at 1:38 AM, Knight Chen dolt131...@gmail.com wrote: Does anybody notice this question? If you could provide a test case that reproduces the issue via JIRA, I could try to take a look at this over the weekend. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: how to make the echo-binding sample be recognized
On Tue, May 4, 2010 at 6:45 AM, fabia...@br.ibm.com wrote: I trying to create a new binding on tuscany 1.4, and in order to learn better on how to do that, I´m trying to make the sample: echo-binding to recognized when I add tuscany:binding.echo on the composite file. What I´m doing is to create a jar from the the project : binding-echo-extension and put this on my project´s \lib folder and in the \tuscany-sca-1.4\modules. I got: NFO: Loading contribution: file:/C:/EED1/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/eed-rest-services/ 04/05/2010 10:42:14 org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor read WARNING: Element {http://tuscany.apache.org/xmlns/sca/1.0}binding.echo cannot be processed. ([row,col {unknown-source}]: [20,13]) 04/05/2010 10:42:14 org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor WARNING: Element {http://tuscany.apache.org/xmlns/sca/1.0}binding.echo cannot be processed. ([row,col {unknown-source}]: [20,13]) 04/05/2010 10:42:16 org.apache.tuscany.sca.node.impl.NodeImpl start Can someone tell me exactly how to make the echo binding be recognized as a binding? If you look at the binding-echo sample composite, you can see that it's being defined in a different namespace : e:binding.echo while you are trying to use it as sca namespace : { http://tuscany.apache.org/xmlns/sca/1.0}binding.echo. Please follow the example in [1] to define and use the echo binding in the defined namespace, and it should work with the steps you mentioned (e.g having the jar in the lib folder) [1] https://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/samples/binding-echo/src/main/resources/EchoBinding.composite -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
[2.x] New REST Binding is now available
I have started working on a REST Binding, and the basic functionality is now available. The current functionality is documented at [1] or [2] and some scenarios are available as interface-java-jaxrs and binding-rest-runtime unit tests. I'll continue to work some additional functionality on the next couple weeks on the following areas : - Allow RPC style calls over HTTP GET operation - Tide up cache control functionality and allow declarative cache control with possible field injection - Investigate possible integration between implementation.jaxrs and binding.rest - Investigate possible integration with existent JAX-RS runtime to provide JAX-RS parsing/matching of JAX-RS annotations - Provide a store sample application based on RESTFull services [1] https://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/SCA+Java+binding.rest [2] http://tuscany.apache.org/documentation-2x/sca-java-bindingrest.html -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Fwd: Call for Participation: Technical Talks -- ApacheCon North America 2010
-- Forwarded message -- From: Sally Khudairi s...@apache.org Date: Wed, Apr 28, 2010 at 10:48 AM Subject: Call for Participation: Technical Talks -- ApacheCon North America 2010 To: annou...@apachecon.com ApacheCon North America 2010 1-5 November 2010 -- Westin Peachtree in Atlanta Technical Tracks: Call For Participation All submissions must be received by Friday, 28 May 2010 at midnight Pacific Time. The official conference, trainings, and expo of The Apache Software Foundation (ASF) returns to Atlanta this November, with dozens of technical, business, and community-focused sessions at the beginner, intermediate, and advanced levels. Over the past decade, the ASF has gone from strength to strength, developing and shepherding nearly 150 Top-Level Projects and new initiatives in the Apache Incubator and Labs. This year's ApacheCon celebrates how Apache technologies have sparked creativity, challenged processes, streamlined development, improved collaboration, launched businesses, bolstered economies, and improved lives. We are proud of our achievements and recognize that the global Apache community --both developers and users-- are responsible for the success and popularity of our products. The ApacheCon Planning Team are soliciting 50-minute technical presentations for the next conference, which will focus on the theme “Servers, the Cloud, and Innovation”. We are particularly interested in highly-relevant, professionally-directed presentations that demonstrate specific probrlems and real-world solutions. Part of the technical program has already been planned; we welcome proposals based on the following Apache Projects and related technical areas: - Cassandra/NoSQL - Content Technologies - (Java) Enterprise Development - Felix/OSGi - Geronimo - Hadoop + friends/Cloud Computing - Lucene, Mahout + friends/Search - Tomcat - Tuscany Submissions are open to anyone with relevant expertise: ASF affiliation is not required to present at, attend, or otherwise participate in ApacheCon. Please keep in mind that whilst we encourage submissions that the highlight the use of specific Apache solutions, we are unable to accept marketing/commercially-oriented presentations. Other proposals, such as panels, or those longer than 50 minutes in duration have been considered in the past. You are welcome to submit an alternate presentation, however, such sessions are accepted under exceptional circumstances. Please be as descriptive as possible, including names/bios of proposed panelists and any related details. All accepted speakers (not co-presenters) qualify for general conference admission and a minimum of two nights lodging at the conference hotel. Additional hotel nights and travel assistance are possible, depending on the number of presentations given and type of assistance needed. To submit a presentation proposal, please send an email to submissions AT apachecon DOT com containing the following information in plaintext (no attachments, please): 1. Your full name, title, and organization 2. Contact information, including your address 3. The name of your proposed session (keep your title simple and relevant to the topic) 4. The technical category of the intended presentation (Cassandra/NoSQL; Content Technologies; (Java) Enterprise Development; Felix/OSGi; Geronimo; Hadoop + friends/Cloud Computing; Lucene, Mahout + friends/Search; Tomcat; or Tuscany) 5. The classification for each presentation (Servers, Cloud, or Innovation) – some presentations may have more than one theme (e.g., a next-generation server can be classified both as Servers and Innovation 6. The intended audience level (beginner, intermediate, advanced) 7. A 75-200 word overview of your presentation 8. A 100-200-word speaker bio that includes prior conference speaking or related experience 9. Feedback or references (with contact information) on presentations given within the last three years To be considered, proposals must be received by Friday, 28 May 2010 at midnight Pacific Time. Please email any questions regarding proposal submissions to cfp AT apachecon DOT com. Technical Tracks Key Dates 23 April 2010: Call For Participation Open 28 May 2010: Call For Participation Closes 11 June 2010: Speaker Acceptance/Rejection Notification 1-5 November 2010: ApacheCon NA 2010 We look forward to seeing you in Atlanta! For the ApacheCon Planning team, Sally Khudairi, Program Lead -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: about tuscany sca
2010/4/23 ant elder ant.el...@gmail.com: Something seems to be up with the website synchronization between the wiki and the live website where things like the content inside some markup tags isn't appearing on the live site even though it does exist in the wiki pages. We'll take a look... I have forced a Tuscany website export, hopefully this will fix the problem after the new sync. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: about tuscany sca
On Fri, Apr 23, 2010 at 10:25 AM, ant elder antel...@apache.org wrote: On Fri, Apr 23, 2010 at 5:21 PM, Luciano Resende luckbr1...@gmail.com wrote: 2010/4/23 ant elder ant.el...@gmail.com: Something seems to be up with the website synchronization between the wiki and the live website where things like the content inside some markup tags isn't appearing on the live site even though it does exist in the wiki pages. We'll take a look... I have forced a Tuscany website export, hopefully this will fix the problem after the new sync. I'd tried that too, but that was hours ago now and nothing seems to have changed so i don't think its working. Whats interesting is if you look at the html page source the text is there but wrapped in what must be incorrect tags, for example the bottom of the page http://tuscany.apache.org/sca-java-implementationjava.html has: DIV class=code panel style=border-width: 1px;DIV class=codeContent panelContent SCRIPT type=syntaxhighlighter class=toolbar: false; theme: default; brush: java; gutter: false![CDATA[ lt;composite xmlns=http://www.osoa.org/xmlns/sca/1.0; targetNamespace=http://sample; xmlns:sample=http://sample; name=SampleCompositegt; lt;component name=SampleComponentgt; lt;implementation.java class=sample.SampleImpl/gt; lt;/componentgt; lt;/compositegt; ]]/SCRIPT /DIV/DIV ...ant There is a thread going on around the {code} tags in the infra@ list, this seems to be related... there are some people reporting things are related to rsync from some internal machines ... so this is not a specific case in Tuscany, but a more broad infra issue... -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Commit a bug in tuscany DAS.
2010/3/25 fuguijie1985 fuguijie1...@126.com: I'm a user from China. Today I found a bug in DAS projects. So I commit it to you. I made a picture in the appendix . Please file a JIRA describing your issue, and attach a patch if you have a solution for it. See [1] for more details. [1] http://tuscany.apache.org/issue-tracking.html -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
GSoC 2010
This participating Organizations for GSoC 2010 will be announced on March 18th (see program time line for details [1]). Although students should officially start discussing project ideas after march 18th, the reality is that they usually arrive early and we should be ready for them. The process for creating project ideas has changed a little from past years, and we should be creating JIRAs with the mentor gsoc tag, and these JIRAs will be aggregated to the overall ASF project ideas list available for all students. I have also created a query for Tuscany ideas only [2]. and updated the Tuscany main page to have a link for this query as well. We should also start organizing the committers that are going to be volunteer as mentors, and they should be joining the code-awa...@a.o and d...@community.a.o mailing lists. [1] http://socghop.appspot.com/document/show/gsoc_program/google/gsoc2010/timeline [2] http://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truepid=12310210status=1customfield_12310260=gsocsorter/field=issuekeysorter/order=DESC On Mon, Mar 15, 2010 at 2:58 PM, Raymond Feng enjoyj...@gmail.com wrote: Hi, I have created a new component in Tuscany JIRA named as Java SCA Community Ideas to hold some of the ideas that our community such as GSoC students can request and contribute. I added two proposals there: https://issues.apache.org/jira/browse/TUSCANY-3496 https://issues.apache.org/jira/browse/TUSCANY-3497 Please add yours as well. Don't forget to add mentor and gsoc to the labels. Thanks, Raymond --- Raymond Feng Apache Tuscany PMC Member: http://tuscany.apache.org Co-author of Tuscany In Action (A book on Tuscany SCA): http://tuscanyinaction.com/ Web: http://www.enjoyjava.com Twitter: http://twitter.com/raymondfeng -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: javascript client
On Sat, Mar 13, 2010 at 11:16 AM, Zoran Jeremic jeremic1...@yahoo.com wrote: Hi, I thought that my problems are over, but unfortunately I still have a problem to connect client web page with tuscany web server. I did everything as you suggested but I firebug gives an error 404 method not found message. This is code integrated in web page: $(document).ready(function(){ $.getJSON(http://ZoranPC:8080/CreateLearningGoalsService/getServiceTest;); }); If you are trying to overcome the javscript domain limitation, you need to use JSONP more like the following : function getGreeting() { var name = document.getElementById(name).value; $.getJSON('http://localhost:8081/HelloWorldService/sayHello?name=' + name + 'callback=?', handleResponse); } function handleResponse(data) { document.getElementById('greeting').innerHTML=data; } This is the content of the composite file: ?xml version=1.0 encoding=UTF-8? xmlns:tuscany=http://tuscany.apache.org/xmlns/sca/1.1; name=lpc targetNamespace=http://eclipse.org/intelleo-LPC/src/org/intelleo/ws/lpc; component name=CreateLearningGoalsServiceComponent implementation.java class=org.intelleo.ws.lpc.impl.CreateLearningGoalsImpl/ reference name=availableCompetencesService target=AvailableCompetencesComponent/AvailableCompetencesService/ service name=CreateLearningGoalsService interface.java interface=org.intelleo.ws.lpc.interfaces.CreateLearningGoalsService tuscany:binding.jsonrpc/ /interface.java /service /component component name=AvailableCompetencesComponent implementation.java class=org.intelleo.ws.lpc.impl.AvailableCompetencesImpl/ service name=AvailableCompetencesService interface.java interface=org.intelleo.ws.lpc.interfaces.AvailableCompetencesService/ /service /component service name=CreateLearningGoalsService promote=CreateLearningGoalsServiceComponent/CreateLearningGoalsService interface.java interface=org.intelleo.ws.lpc.interfaces.CreateLearningGoalsService/ tuscany:binding.jsonrpc/ /service /composite Please take a look at the example I ported to 2.x as it seems you are till trying to configure your service trough promotion, this is what is causing your service endpoint not to be available... and you are STILL using JSON-RPC instead of JSONP binding CreateLearningGoalsService class defines two methods: @Callback String getAvailableCompetences(String sortingCriteria); void getServiceTest(); What are you trying here with the CallBack ? -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: javascript client
On Fri, Mar 12, 2010 at 10:18 AM, Zoran Jeremic jeremic1...@yahoo.com wrote: Hi Luciano, I still can't solve this converting Tuscany 1.x to 2.x issue. According to the error message it looks like it can't resolve xml namespace but I'm using good namespace in composite file as you can see from this message. Mar 12, 2010 7:01:27 PM org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader [Contribution: c1, Artifact: org/intelleo/ws/lpc.composite] (SchemaError) SEVERE: XMLSchema validation error occured in: org/intelleo/ws/lpc.composite ,line = 2, column = 1, Message = cvc-elt.1: Cannot find the declaration of element 'composite'. Mar 12, 2010 7:01:27 PM org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor [Contribution: c1, Artifact: org/intelleo/ws/lpc.composite] (ElementCannotBeProcessed) SEVERE: Element {http://docs.oasis-open.org/ns/opencsa/sca/200912}composite cannot be processed. ([row,col {unknown-source}]: [2,1]) Exception in thread main java.lang.IllegalStateException: java.lang.ClassCastException: org.apache.tuscany.sca.assembly.impl.ExtensionImpl cannot be cast to org.apache.tuscany.sca.assembly.Composite at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:176) at org.intelleo.main.LaunchWS.main(LaunchWS.java:27) Caused by: java.lang.ClassCastException: org.apache.tuscany.sca.assembly.impl.ExtensionImpl cannot be cast to org.apache.tuscany.sca.assembly.Composite I'm using a latest Tuscany distribution. I have followed the instructions given in [1] http://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/Converting+Tuscany+1.x+Extensions Zoran There are two things here : 1) You need to adjust the SCA related artifacts (e.g composite, sca-contributions.xml, etc) to the proper namespace... this seems right as of now 2) You need to have the proper 2.0 dependencies that will register processors to handle these artifacts, and this seems to be your problem Could you please make sure you are using 2.x or 2.x-SNAPSHOT dependencies to the updated project -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: javascript client
On Fri, Mar 12, 2010 at 12:15 PM, Zoran Jeremic jeremic1...@yahoo.com wrote: Thank you guys for your generous help on this. I'm a little confused with all these settings. I didn't used Maven here, and I'm not familiar with it. I just started this as a typical Java project. I uploaded project to http://zoranjeremic.org/files/intelleo_lpc.rar Migrated 2.x version (based on what you had sent before) http://people.apache.org/~lresende/tuscany/intelleo-lpc-2x.tar.gz -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: javascript client
On Fri, Mar 12, 2010 at 3:11 PM, Zoran Jeremic jeremic1...@yahoo.com wrote: I still have the same error with the code you sent to me. I have installed maven2 plugin for eclipse and when running project with it, the following error is displayed: [INFO] Scanning for projects... [ERROR] The build could not read 1 project - [Help 1] [ERROR] The project org.apache.tuscany.sca:sample-intelleo-lpc:2.0-SNAPSHOT (F:\source folder\IntelLEO 2\intelleo_lpc\pom.xml) has 1 error [ERROR] Non-resolvable parent POM org.apache.tuscany.sca:tuscany-sca:2.0-SNAPSHOT for org.apache.tuscany.sca:sample-intelleo-lpc:2.0-SNAPSHOT: Failed to resolve POM for org.apache.tuscany.sca:tuscany-sca:2.0-SNAPSHOT due to Missing: -- 1) org.apache.tuscany.sca:tuscany-sca:pom:2.0-SNAPSHOT -- 1 required artifact is missing. for artifact: org.apache.tuscany.sca:tuscany-sca:pom:2.0-SNAPSHOT You would need to first checkout 2.x source and build svn co https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/ java-sca-2.x cd java-sca-2.x mvn -N clean install cd modules mvn -fae clean install then go to the project i sent you (the webapp one) and try mvn clean install More details at http://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/SCA+Java+Development+Guide -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: javascript client
On Mon, Mar 8, 2010 at 1:11 PM, Zoran Jeremic jeremic1...@yahoo.com wrote: Hi, Does it matter how your JavaScript communicates with the server - does it just need to make request-response style calls to the server so the protocols can be handled and hidden by Tuscany, or do you need control over that, for example to use jsonp or jsonrpc or a particular toolkit like Dojo or JQuery? I'm not sure in the moment if I will have some specific requests regarding the protocols. I think not, but I need to exchange json like data (used to generate jsTree component) between server and client. I have already tried to use Dojo, as it looks like nice solution to my problem, but I couldn't make it works. I used provided examples, but I don't know if I have missed something. Here is a code: script type=text/javascript var djConfig = { parseOnLoad: true, baseRelativePath: dojo, isDebug: true, debugContainerId: dojoDebug }; djConfig.usePlainJson=true ; /script script type=text/javascript src=js/dojo/dojo.js/script script type=text/javascript dojo.require(dojo.parser); dojo.require(dojo.rpc.JsonService); /script ... var smd=new dojo.rpc.JsonService(http://ZoranPC:8080/CreateLearningGoalsService?smd;); var competences=smd.getAvailableCompetences().addCallback(contentCallBack); I always get error in Firebug smd.getAvailableCompetences is not a function. Did I miss something here. I didn't add anything Dojo related to the server. Do I need to use something there in other to connect client with Web Services. Zoran, overall, your application looks ok, and after a slight modification to make the services available from the same webapp [1] i could retrieve the available competences from the backend service with the following code : dojo.addOnLoad(function() { dojo.require(dojo.parser); dojo.require(dojo.rpc.JsonService); var smd=new dojo.rpc.JsonService(http://localhost:8080/sample-intelleo-lpc-webapp/CreateLearningGoalsService?smd;); var competences=smd.getAvailableCompetences().addCallback(contentCallBack); }); Note that i have to access the application trough (http://localhost:8080/sample-intelleo-lpc-webapp/lpc/index.html) to get the javaScript included via relative paths to work. Have said that, you need to think on how you want to partition your application, as having your service being provided from a given host:port and trying to access it via a JavaScript served from a different host:port will hit JavaScript security constrains (see [2]) and you will need to use some type of proxy, component proxy (e.g a local json-rpc component that references a remote json-rpc service), jsonp or some other technique. Note that this is not a particular limitation from Tuscany or SCA, but something related to how JavaScript and Browser security works. I hope this helps and let you make progress, don't hesitate to ask further questions. [1] http://people.apache.org/~lresende/tuscany/intelleo-lpc-webapp.tar.gz [2] http://en.wikipedia.org/wiki/Same_origin_policy -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: javascript client
On Thu, Mar 11, 2010 at 11:15 AM, Zoran Jeremic jeremic1...@yahoo.com wrote: I have tried to use http://ajax.googleapis.com/ajax/libs/dojo/1.4.1/dojo/dojo.xd.js instead of local dojo toolkit, and now firebug does not gives any error message, but nothing after this line var smd=new dojo.rpc.JsonService(http://ZoranPC:8080/CreateLearningGoalsService?smd;); is not executed. However, if I call http://ZoranPC:8080/CreateLearningGoalsService?smd from Web browser directly, I got the following: {SMDVersion:.1,objectName:CreateLearningGoalsService,serviceType:JSON-RPC,serviceURL:http://zoranpc:8080/CreateLearningGoalsService,methods:[{name:getAvailableCompetences,parameters:[{name:param0,type:STRING}]}]} As I understand this means that this Web service is OK, and it has a method that I want to access, but somehow dojo can't access it. Zoran Please take a look at the response I just sent to your original question, it seems that you might be hitting a cross-domain JavaScript issue. BTW, i have a version of your app that is retrieving the competences in [1] [1] http://people.apache.org/~lresende/tuscany/intelleo-lpc-webapp.tar.gz -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: javascript client
On Thu, Mar 11, 2010 at 12:27 PM, Zoran Jeremic jeremic1...@yahoo.com wrote: Hi Luciano, Thank you very much for your answer. It helps me very much as I was blocked to continue my work. I'm basically java programmer and didn't have experience with javascript before so please don't mind for my fundamental questions. Note that i have to access the application trough (http://localhost:8080/sample-intelleo-lpc-webapp/lpc/index.html) to get the javaScript included via relative paths to work. As I understood this, there is no way to have a javascript outside of the Web service application? My idea was to extend some of the existing Web application like Elgg, Wiki etc., with additional Learning Web services accessible through a popup containers developed with javascript and jQuery. This javascript client should communicate with Web services to get its functionality. It is possible to let javascript client be part of the same application where Web services are stored, and include it in Elgg with absolute path to remote javascript file, or to make it be on the same server where Elgg is stored and then access Web services from javascript through absolute url. I hope you understand my idea, so I would like to hear your comment and idea what would be the best possible approach to make all these thinks work together. Do I have to put all three parts (Web services, javascript client and Elgg) in the same application? Zoran I'm not familiar with ELGG and how it integrates with other applications, but you could use JSONP from our 2.x code base (there is an example/testcase using JQuery [1]), or maybe define a proxy component similar to the idea implemented in [2], which proxy the calls to the remote service via a json-rpc reference. [1] https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/binding-jsonp-runtime/ [2] https://svn.apache.org/repos/asf/tuscany/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.composite -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: javascript client
On Thu, Mar 11, 2010 at 2:36 PM, Zoran Jeremic jeremic1...@yahoo.com wrote: Luciano, Thank you very much on your help. You save my life. I'm not familiar with ELGG and how it integrates with other applications, but you could use JSONP from our 2.x code base (there is an example/testcase using JQuery [1]) This sounds like a good solution for my problem. I will test it to check if it works. Do I need to use tuscany 2.x for it or it is also supported in 1.x? Zoran These are ONLY supported in 2.x at the moment. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: javascript client
On Thu, Mar 11, 2010 at 4:06 PM, Zoran Jeremic jeremic1...@yahoo.com wrote: I'm trying to convert my project to tuscany 2.x and now I got issue: org.apache.tuscany.sca.assembly.impl.ExtensionImpl cannot be cast to org.apache.tuscany.sca.assembly.Composite I found in archive that somebody complained about that but I didn't found the solution that I could apply. Do you have some suggestion? Zoran This is usually a namespace issue (OSOA from 1.x and OASIS from 2.x) Please check the following document, which might help you converting from 1.x to 2.x [1] http://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/Converting+Tuscany+1.x+Extensions -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Conversations with singletons?
On Tue, Mar 9, 2010 at 11:05 AM, George Baxter gbax...@shutterfly.com wrote: Hi all, We're hoping to use Tuscany for our stateless services. These services, by and large, can be (and should be) totally stateless and thus, in the interest of lower GC issues, singletons. Great, we @Scope them as Composites. Well, maybe this is a bug in Tuscany and we should implement support for stateless more efficient (e.g by providing a pool of instances). Could you please fire a jira and mention the release you are using. As you mentioned, @Scope(Composite) could be a possible workaround for now. However, if we want to have an asynchronous 'conversation' with these... well.. we haven't figured out how to do it. Issues: 1. The callback functionality is injected into the destination component object rather than maintained by a proxy. If this object is a singleton-ish entity.. well, not thread safe. 2. When the callback is actually made, the originating caller (that might be scoped as 'Conversation') can't be located and a new instance is created. This may be because the singleton's callback is being corrupted (overwritten).. thus just another variant of issue 1. So is it possible to scope a component as a 'Composite' and yet enable 'Stateless' or 'Conversation' scoped components interact with them in any asynchronous way? In this case, it seems that we are actually making the stateless service statefull, by injecting callBack information. How about trying something like passing the current object in the business operation (e.g foo(this, par1, parm2)) ? Let me know if this helps you. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: javascript client
On Mon, Mar 8, 2010 at 1:11 PM, Zoran Jeremic jeremic1...@yahoo.com wrote: Hi, Does it matter how your JavaScript communicates with the server - does it just need to make request-response style calls to the server so the protocols can be handled and hidden by Tuscany, or do you need control over that, for example to use jsonp or jsonrpc or a particular toolkit like Dojo or JQuery? I'm not sure in the moment if I will have some specific requests regarding the protocols. I think not, but I need to exchange json like data (used to generate jsTree component) between server and client. I have already tried to use Dojo, as it looks like nice solution to my problem, but I couldn't make it works. I used provided examples, but I don't know if I have missed something. Here is a code: script type=text/javascript var djConfig = { parseOnLoad: true, baseRelativePath: dojo, isDebug: true, debugContainerId: dojoDebug }; djConfig.usePlainJson=true ; /script script type=text/javascript src=js/dojo/dojo.js/script script type=text/javascript dojo.require(dojo.parser); dojo.require(dojo.rpc.JsonService); /script ... var smd=new dojo.rpc.JsonService(http://ZoranPC:8080/CreateLearningGoalsService?smd;); var competences=smd.getAvailableCompetences().addCallback(contentCallBack); I always get error in Firebug smd.getAvailableCompetences is not a function. Did I miss something here. I didn't add anything Dojo related to the server. Do I need to use something there in other to connect client with Web Services. Zoran Could you please provide your composite file where you define/configure your service -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Embedded host newInstance() only starts the 1st composite.
On Tue, Mar 2, 2010 at 5:12 PM, Wayne Keenan wayne.kee...@gmail.com wrote: Could you post the initialization code around the SCADomain ? Also, could you try adding a sca-contribution.xml to see if that workaround the issue you are having. I added 2 sca-contribution.xml files: (A|B)/META-INF/sca-contribution.xml and re-arrange the structure by moving the (A|B)/META-INF/sca-deployables/*.composite to their respective /*.composite location. However I still get the same problem only the 1st folder that appears in the class-path ever gets instantiated. Regards Wayne It seems that you are trying to add two contributions to the runtime. We have some examples that could give you a better idea... please check: https://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java or https://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/itest/contribution-import-export/ -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Embedded host newInstance() only starts the 1st composite.
On Tue, Mar 2, 2010 at 5:30 PM, Wayne Keenan wayne.kee...@gmail.com wrote: From reading the page on the SCADomain : http://tuscany.apache.org/standalone-sca-domain.html All .composite files on the classpath will be read and any deployable components will be made available in the domain I had hoped it was recursive. I wish to avoid explicitly stating the composites that are required. The use case is that users can just drop additional 'bundle' (not OSGi) folders that get added to the classpath at startup time - without having to modify a 'master' deploy. I thought the no-arg newInstance for the embedded host would do this, I was mistaken. Thanks for the pointers, I will use it as a basis to perform my own recursive classspath search and add. I haven't give it a try, I guess this would work if you had a flat directory structure: - META-INF/sca-deployables/*.composite instead of - (A|B)META-INF/sca-deployables/*.composite -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: store webapp sample
On Fri, Feb 26, 2010 at 3:23 AM, kelvin goodson kelvingood...@gmail.com wrote: Luciano, I've certainly been able to progress after your changes. However, currently I'm seeing catalog.get is not a function from Firebug on line 127 of the store.html script. Kelvin. Yes, this is the same issue I'm seeing, and here is my current understanding of the problem... 1) We registered the services as /Catalog 2) We generate store.js pointing to /Catalog 3) Runtime (host-webapp) gets called to update all registered services to contextRoot/Catalog Then, during invocation, we try to access /Catalog and fails with 404 as it is now set as contextRoot/Catalog... Although I know what is causing the problem is... I'm still investigating what the proper definitive solution should be... as this issue has come in the past [1][2] and it seemed to have regressed again. [1] http://www.mail-archive.com/d...@tuscany.apache.org/msg10134.html [2] http://www.mail-archive.com/d...@tuscany.apache.org/msg10284.html -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: store webapp sample
On Fri, Feb 26, 2010 at 8:48 AM, kelvin goodson kelvingood...@gmail.com wrote: If I put http://localhost:8080/sample-jagg-webapp/?smd into the browser I see the basic HTML of the webapp being displayed and I see two gets, one for dojo.js and one for plan.js. This doesnt seem to be any different behaviour from the variant of the url without ?smd Kelvin. On Fri, Feb 26, 2010 at 4:40 PM, Simon Laws simonsl...@googlemail.com wrote: Is the smd being pulled back from the service? Not 100% sure here but I'm assuming the client side still needs the smd description in order to understand the jsonrpc version of the service interface. You can try adding ?smd to the end of the service URL that is registered with the webapp container. Assuming this is available do you see this being pulled by the browser? Simon In the case of Store webapp, the smd is available from http://localhost:8080/sample-store-webapp/Catalog?smd -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: store webapp sample
On Thu, Feb 25, 2010 at 9:29 AM, kelvin goodson k...@thegoodsons.org.uk wrote: I'm trying to run the store webapp sample, and made a few fixups which I committed. but I'm currently seeing a message dojo is not defined in firebug when I navigate to http://localhost:8080/sample-store-webapp . I fixed a similar problem with tuscany is not defined by changing the script inclusion for store.js to /sample-webapp-store/store.js in store.html, and the current committed store.html has dojo.js included in a similar path (attempting to fix this by symmetry with the previous fix), but alas I don't seem to be able to include the dojo.js script. I've been blundering around in a browser trying to guess where dojo.js might be found, but as yet no joy. Can anyone help me pin this down please? In your scenario, where the application does not provide the dojo resources we are going to use the ones from within the web-javascript-dojo module and there was an issue on how we were trying to serve dojo resources from DojoResourceServlet (basically not considering contextRoot when in a web application server). Having said that, I would like to remove your changes from revision #916355, and fix the runtime to allow this to work in both embedded and hosted environment more transparently. Note that after my changes, there is still one issue, which seems to be related to host-webapp changing the contextPath and that seems to make the tuscany widget miss behave as it was trying to reach the initial registered endpoint based on the binding-uri... hope this gets you going... and I can check this further tomorrow... -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Deploying Tuscany Webapp in Geronimo
On Wed, Feb 24, 2010 at 9:43 AM, Stefan Kolb stefan-k...@web.de wrote: Hi, i uploaded the code at: http://www.file-upload.net/download-2292050/SCAWebshop.zip.html The scenario is pretty complex and special so i don't wanna create a jira for it yet. Some info on the code: Test classes are in junit package and they all should work fine for the components. The ant build script creates the *.war file. There may be some libs missing tho that doesn't create the problem (i included all libs and it didnt work either). Let me know when you need more information. Thanks for helping out Regards Stefan Have you tried to deploy the application into Tomcat ? If it works in Tomcat, then you might need to tweak the Geronimo deployer descriptor to properly set classPath ordering and the classes that should be loaded from inside your webapp. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Deploying Tuscany Webapp in Geronimo
On Wed, Feb 24, 2010 at 8:08 PM, Simon Nash n...@apache.org wrote: Luciano Resende wrote: On Wed, Feb 24, 2010 at 9:43 AM, Stefan Kolb stefan-k...@web.de wrote: Hi, i uploaded the code at: http://www.file-upload.net/download-2292050/SCAWebshop.zip.html The scenario is pretty complex and special so i don't wanna create a jira for it yet. Some info on the code: Test classes are in junit package and they all should work fine for the components. The ant build script creates the *.war file. There may be some libs missing tho that doesn't create the problem (i included all libs and it didnt work either). Let me know when you need more information. Thanks for helping out Regards Stefan Have you tried to deploy the application into Tomcat ? If it works in Tomcat, then you might need to tweak the Geronimo deployer descriptor to properly set classPath ordering and the classes that should be loaded from inside your webapp. I took a quick look at the code and I couldn't see any problems that would cause the Reference not found for component reference message. Luciano's suggestion sounds good to me. Simon Here is an example of a geronimo deployment descriptor https://svn.apache.org/repos/asf/tuscany/sandbox/lresende/sca-1.x/samples/store-secure-webapp/src/main/webapp/WEB-INF/geronimo-web.xml -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuschany 2.x status?
On Tue, Feb 16, 2010 at 1:01 AM, Albert Tsang ats...@shutterfly.com wrote: Thanks Raymond, yes I read about Ant's tuscany.war. Does someone have a maven project that builds this WAR from the 2.x distribution? The war is built with maven in distribution/tomcat You could also try mvn -Pdistribution clean install The other reason why we're not moving to 2.0 is because the Eclipse SCA tools aren't yet complete. It seems that the STP project is running a bit behind from their projected plans. -a- -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: Tuschany 2.x status?
On Tue, Feb 16, 2010 at 11:15 AM, ha.t@l-3com.com wrote: I got the JMS binding example working but the client and the services both run on the same JVM. How do I start the services (we'll treated this as a server - up and running waiting for request from client) from one JVM and start the client in another? Couldn't find an example on this. The closest one is calculator-distributed in 1.x but doesn't work in 2.x because of missing DomainManagerLauncherBootstrap. Could somebody point me to the right direction? Thanks, You could probably find a similar scenario in one of the nodes itest https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/itest/nodes/ If those are not what you want, please give me more details and I could try to do something in my sandbox tonight or tomorrow. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
Re: changed behaviour in store sample
On Tue, Feb 16, 2010 at 12:39 PM, kelvin goodson k...@thegoodsons.org.uk wrote: I'm seeing changed behaviour in the sample-store project after startup. If I fire up the launcher and point Firefox with Firebird at http://localhost:8080/store/, the first time I run it I see Firebird Break on Error tuscany is not defined Line 29 which is ... var catalog = new tuscany.sca.Reference(catalog); and the console contains store.composite ready for big business !!! 16-Feb-2010 20:17:38 org.apache.tuscany.sca.http.jetty.JettyLogger warn WARNING: /store/store.js java.lang.NullPointerException at org.apache.tuscany.sca.core.assembly.impl.RuntimeEndpointReferenceImpl.initInvocationChains(RuntimeEndpointReferenceImpl.java:274) at org.apache.tuscany.sca.core.assembly.impl.RuntimeEndpointReferenceImpl.getInvocationChains(RuntimeEndpointReferenceImpl.java:186) at org.apache.tuscany.sca.implementation.widget.dojo.DojoJavaScriptComponentGeneratorImpl.generateJavaScriptCode(DojoJavaScriptComponentGen eratorImpl.java:73) at org.apache.tuscany.sca.implementation.widget.provider.WidgetComponentScriptServlet.doGet(WidgetComponentScriptServlet.java:60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.apache.tuscany.sca.core.work.impl.Work.run(Work.java:63) at org.apache.tuscany.sca.core.work.impl.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:214) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) If I allow the execution to proceed, Firebird tells me catalog is not defined allowing the execution to proceed further gives a popup catalog is not defined If I continue refreshing the browser, this behaviour repeats for a further 2 occasions, If I then refresh one more time I see the store's catalog perfectly well and can add items to the cart. does anyone have any clues as to what's changed or why this is happening? I see the same behavior, and it seems related to recent changes in how the runtime is handling EP/EPR. I guess Widget and Implementation Web have a slight different behavior and this wasn't taken in consideration and we probably need two things here : a) at least workaround similar to the one introduced in revision #887662 and a test case that will identify breakage on the store scenario (this is available in tutorials in 1.x) -- Luciano Resende http://people.apache.org/~lresende http://lresende.blogspot.com/
Re: Tuschany 2.x status?
On Mon, Feb 15, 2010 at 1:06 PM, ha.t@l-3com.com wrote: Hi, I would like to know when the Tuscany 2.0 – Beta version will be released. When will DomainManagerLauncherBootstrap be ported over to 2.x from 1.x? I’m doing a study on Tuscany. My boss prefers the version that follows the OASIS spec. But since 2.x is unstable we might have to go with 1.x for now. Tuscany 2.x releases are being called Milestones because they are based on the OASIS 1.1 specification drafts. We have plans to release the official 2.0 right after the OASIS 1.1 specification is officially released. Rather then trying to specifically talk about DomainManagerLauncherBootstrap, I'd like to learn more about the scenario you want supported, as we are enhancing our Domain/Node story in 2.x. -- Luciano Resende http://people.apache.org/~lresende http://lresende.blogspot.com/