Re: SDO and Spring
Tim, as Kelvin mentioned, DAS would be the component handling heterogeneous data sources, it would be the interface between the Data (SDO Graphs) and the Data repository. From your e-mail, it looks like you want to persist the SDO utilizing Hibernate or Spring DAO. I could see two ways here : Having a new DAS implementation that would utilize this technology to persist the data (but note that Apache have license issues with Hibernate) or refactory DAS to allow plugability of the persistent layer (today RDB DAS uses JDBC under the covers to persist the data to RDB). Could you also elaborate little more on your cache question ? On Dec 13, 2007 1:39 AM, kelvin goodson [EMAIL PROTECTED] wrote: Hi Tim, welcome to Tuscany. What I'm not completely clear on from your question is what you mean by publish and central graph. There's a related discussion on this list going on (see [1]), and its clear that Jason too had initial difficulty seeing the picture here until he found the DAS material. I think perhaps we need to do some work on the SDO part of the Tuscany website to make this better understood. Bert Robben has taken part in that discussion, and his scenario involves SDO as the primary data API, with conversion to other data formats via an abstract black box snapshot format being done when necessary, such as Hibernate being used for some of the back end persistence activity. So the notion behind the SDO API design is that in order to access heterogeneous data sources, Data Access Services will be created to build SDO data graphs. The RDB DAS is one such example, and you can view the XMLHelper as providing the services of another. If you are using an RDB as your central store and want SDO access to the data then the natural solution is to use the RDB DAS. Tuscany has no concept of providing a façade over other data handling implementations, and I think the disparity in the features of the data representations you mention would mean that providing an SDO façade would not be the natural way of solving interoperability. I'd be keen to get a better idea of your scenario in order to be able to understand in more detail how SDO can help you. Regards, Kelvin. [1] http://www.mail-archive.com/tuscany-user@ws.apache.org/msg02162.html On 13/12/2007, Tim Frey [EMAIL PROTECTED] wrote: Hello, I searched the whole day how i could build up a data graph and publish it via SDO. I want to access the data graph via Tuscany SDO. I found out about the relational solution DAS, but I would like to have the data graph as Java objects with hibernate persistency. Or Maybe even better have also spring DAOs as nodes in the graph. How can I build up a central graph and is this even possible to do what I want? Or is the relational solution also capable of caching? Sorry maybe this questions are answered somewhere but I don't find out where to start. I really hope that someone can help that I can build up a central data store accessed in a unified way in my application. Or maybe someone can propose me a better solution than SDO for that. Kind regards Tim Frey -- Luciano Resende Apache Tuscany Committer http://people.apache.org/~lresende http://lresende.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SDO and Spring
Hello, thanks a lot for your help. First of all I had a misunderstanding of SDO. I thought there is somewhere stored a central graph and I can get a part out of it. However I realized it is not this way. I'll try to explain what my scenario is and what I want to do. My scenario is that I build an application with the spring framework. The different components should have access to the same master data. Therefore it would have liked to use SDO to have a local copy of the master data in each component. It could be that all the components access the same master data very often. So in this case if there is a read on the same data very often I want it to be cached and not read from the database every time. I define my data as ecore model. I use spring in my application and it is easy to define DAOs - so I thought I could program DAOs and maybe put them easily into a DAS. Is there a guide howto write your own DAS? - cause this would be very cool cause I want also to use SDO for my services of the components as abstraction layer later. There also is the question when some data refers to another data in another graph (I have semantic links between the data objects)- is there any support from Tuscany here? And how can I put all the different DAS together and put them into a big graph - that I can visualize or browse for example - is there a way? Cause I have data that is often needed - so I can serve it as in memory Java objects that are delivered via SDO and not so often used data is delivered via a slower data source. And when I want to access a DAS I don't want to use the XML transformation or RMI when the DAS and the access is on the same server. Is this possible via OSGI or so that I directly get plain Java objects from the source without being transformed and so on? Regards Tim -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Luciano Resende Gesendet: Donnerstag, 13. Dezember 2007 13:00 An: tuscany-user@ws.apache.org Betreff: Re: SDO and Spring Tim, as Kelvin mentioned, DAS would be the component handling heterogeneous data sources, it would be the interface between the Data (SDO Graphs) and the Data repository. From your e-mail, it looks like you want to persist the SDO utilizing Hibernate or Spring DAO. I could see two ways here : Having a new DAS implementation that would utilize this technology to persist the data (but note that Apache have license issues with Hibernate) or refactory DAS to allow plugability of the persistent layer (today RDB DAS uses JDBC under the covers to persist the data to RDB). Could you also elaborate little more on your cache question ? On Dec 13, 2007 1:39 AM, kelvin goodson [EMAIL PROTECTED] wrote: Hi Tim, welcome to Tuscany. What I'm not completely clear on from your question is what you mean by publish and central graph. There's a related discussion on this list going on (see [1]), and its clear that Jason too had initial difficulty seeing the picture here until he found the DAS material. I think perhaps we need to do some work on the SDO part of the Tuscany website to make this better understood. Bert Robben has taken part in that discussion, and his scenario involves SDO as the primary data API, with conversion to other data formats via an abstract black box snapshot format being done when necessary, such as Hibernate being used for some of the back end persistence activity. So the notion behind the SDO API design is that in order to access heterogeneous data sources, Data Access Services will be created to build SDO data graphs. The RDB DAS is one such example, and you can view the XMLHelper as providing the services of another. If you are using an RDB as your central store and want SDO access to the data then the natural solution is to use the RDB DAS. Tuscany has no concept of providing a façade over other data handling implementations, and I think the disparity in the features of the data representations you mention would mean that providing an SDO façade would not be the natural way of solving interoperability. I'd be keen to get a better idea of your scenario in order to be able to understand in more detail how SDO can help you. Regards, Kelvin. [1] http://www.mail-archive.com/tuscany-user@ws.apache.org/msg02162.html On 13/12/2007, Tim Frey [EMAIL PROTECTED] wrote: Hello, I searched the whole day how i could build up a data graph and publish it via SDO. I want to access the data graph via Tuscany SDO. I found out about the relational solution DAS, but I would like to have the data graph as Java objects with hibernate persistency. Or Maybe even better have also spring DAOs as nodes in the graph. How can I build up a central graph and is this even possible to do what I want? Or is the relational solution also capable of caching? Sorry maybe this questions are answered somewhere but I don't find out where to start. I
tuscany architecture
Hello All: I am a newbie for Tuscany. After reading the architecture guide, I still didn't quite understand how the Tuscany based SCA applications actually run. I mean, if we are using a top-down approach and build everything from scratch, it will be more easy to understand. However, I don't know whether Tuscany can support the Bottom-Up approach and enable users to reuse some existing sources and platforms. For example, I have some BPEL processes running on an ActiveBPEL server instead of ODE. Is it Possible for me to include them as components in a SCA composite in Tuscany. And if so, how does Tuscany handle different component runtime and make appropriate selections? Thanks. Best Regards Peng Han FernUniversitaet in Hagen
Re: Working with related beans
Simon Laws escribi: On Dec 13, 2007 3:19 PM, lvaro Martnez [EMAIL PROTECTED] wrote: Hi, I'm a newbie to Apache Tuscany and I have a very dumb doubt... I think. My question is: how can I use related beans when calling web services (as parameters) or on return from them. By "related" I mean specifically that one Client has a set of Vehicles, and these own a set of Devices. That is, beans with a "to-many" relation inside regarding other beans. I tried to use a plain Java array but doesn't seem to work. Thanks! ---lvaro Martnez Hernndez,Push The Button, S.L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi Alvaro, welcome to Tuscany. There's no such thing as a dumb question;-) I think the answer in this case is yes you should be able to pass trees of java objects across services interfaces. Can I ask, is the web service you are trying to communicate with also implemented with Tuscany or is it a web service that someone else is providing. If the former what does the service interface look like? If the latter do you have a WSDL description of the service that we can see? Also are you able to show us the code that is making the service call and can you give us some more details about the errors you are getting. Regards Simon No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.17/1179 - Release Date: 09/12/2007 11:06 Just one more note, I've changed the plain arrays to ArrayList objects and then I get this exception: Exception in thread "main" org.apache.tuscany.sca.databinding.TransformationException: org.apache.tuscany.sca.databinding.javabeans.XML2JavaMapperException: org.apache.tuscany.sca.databinding.javabeans.XML2JavaMapperException: No field or setter method to configure xml data modems in class com.ptb.commons.beans.GwClient modems in class com.ptb.commons.beans.GwClient at org.apache.tuscany.sca.core.databinding.transformers.Output2OutputTransformer.transform(Output2OutputTransformer.java:202) at org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate(MediatorImpl.java:73) at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInteceptor.transform(DataTransformationInteceptor.java:173) at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInteceptor.invoke(DataTransformationInteceptor.java:157) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130) at $Proxy6.createClient(Unknown Source) at com.ptb.ws.gw.AdministrationComponent.createClient(AdministrationComponent.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:105) at org.apache.tuscany.sca.core.databinding.wire.PassByValueInteceptor.invoke(PassByValueInteceptor.java:49) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130) at $Proxy6.createClient(Unknown Source) at com.ptb.ws.gw.AdministrationApp.main(AdministrationApp.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Caused by: org.apache.tuscany.sca.databinding.javabeans.XML2JavaMapperException: org.apache.tuscany.sca.databinding.javabeans.XML2JavaMapperException: No field or setter method to configure xml data modems in class com.ptb.commons.beans.GwClient modems in class com.ptb.commons.beans.GwClient at org.apache.tuscany.sca.databinding.javabeans.XML2JavaBeanTransformer.createJavaObject(XML2JavaBeanTransformer.java:110) at org.apache.tuscany.sca.databinding.javabeans.XML2JavaBeanTransformer.toJavaObject(XML2JavaBeanTransformer.java:67) at org.apache.tuscany.sca.databinding.javabeans.XML2JavaBeanTransformer.transform(XML2JavaBeanTransformer.java:59) at org.apache.tuscany.sca.databinding.DefaultTransformerExtensionPoint$LazyPullTransformer.transform(DefaultTransformerExtensionPoint.java:187) at org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate(MediatorImpl.java:73) at
Re: Working with related beans
Simon Laws escribi: On Dec 13, 2007 3:19 PM, lvaro Martnez [EMAIL PROTECTED] wrote: Hi, I'm a newbie to Apache Tuscany and I have a very dumb doubt... I think. My question is: how can I use related beans when calling web services (as parameters) or on return from them. By "related" I mean specifically that one Client has a set of Vehicles, and these own a set of Devices. That is, beans with a "to-many" relation inside regarding other beans. I tried to use a plain Java array but doesn't seem to work. Thanks! ---lvaro Martnez Hernndez,Push The Button, S.L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi Alvaro, welcome to Tuscany. There's no such thing as a dumb question;-) I think the answer in this case is yes you should be able to pass trees of java objects across services interfaces. Can I ask, is the web service you are trying to communicate with also implemented with Tuscany or is it a web service that someone else is providing. If the former what does the service interface look like? If the latter do you have a WSDL description of the service that we can see? Also are you able to show us the code that is making the service call and can you give us some more details about the errors you are getting. Regards Simon No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.17/1179 - Release Date: 09/12/2007 11:06 Oh, just for the record, I'm not misunderstanding Tuscany. It worked for me before, but as soon as I started to link beans, I couldn't go on. Thanks again. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tuscany example
Hello, Build your first SCA application in 10 minutes! Give it a tryhttp://incubator.apache.org/tuscany/sca-overview.data/getting_started_Rest_099_07.pdf I'm trying to run this example but I'm not able, I dont get any error but the list of products doesnt populate I tried to debug with no lucky, currently I'm completely without a clue , does any have any tip to help me? Thanks in advance
Re: tuscany example
Hi Luciano, I tried using Firefox 2.0.0.11 and IE 6.0.2900. I ran the class src/launch/Launch inside Eclipse vs 3.3.0 I dont get any error. I believe that the class CatalogImpl is not being called, I added some logs at this class to check it. by the way, I saw your presentation this week at IBM, was very good, congratulation! Thank you On Dec 13, 2007 4:54 PM, Luciano Resende [EMAIL PROTECTED] wrote: Couple questions : What browser version are you using ? Do you get any javascript error ? Did you try to run the sample application from : java/sca/samples/store On Dec 13, 2007 10:42 AM, eu mesmo [EMAIL PROTECTED] wrote: Hello, Build your first SCA application in 10 minutes! Give it a try http://incubator.apache.org/tuscany/sca-overview.data/getting_started_Rest_099_07.pdf I'm trying to run this example but I'm not able, I dont get any error but the list of products doesnt populate I tried to debug with no lucky, currently I'm completely without a clue , does any have any tip to help me? Thanks in advance -- Luciano Resende Apache Tuscany Committer http://people.apache.org/~lresende http://people.apache.org/%7Elresende http://lresende.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tuscany architecture
Adding back to the Tuscany-user mailling list. On Dec 13, 2007 11:23 AM, Luciano Resende [EMAIL PROTECTED] wrote: Let me give you some comments based on the current status of BPEL support. At the moment, Tuscany has a embedded ODE engine in it's runtime that gets started when BPEL components are being used. We are not supporting remote servers at the moment. Are there requirements to have the BPEL process deployed in a remote ODE server ? Instead of using the embedded ODE server ? On Dec 13, 2007 8:20 AM, Peng Han [EMAIL PROTECTED] wrote: Then I have another two questions. 1. I know Tuscany packaged an embedded ODE runtime, does it mean even if I install another version of ODE, it will be ignored? 2. What about I have another BPEL process running on ODE on another machine? I mean, is it possible to include it as component and should that machine also Be installed the Tuscany? Thanks. Best Regards -Original Message- From: Luciano Resende [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 5:02 PM To: tuscany-user@ws.apache.org; [EMAIL PROTECTED] Subject: Re: tuscany architecture Currently in Tuscany, when you use the BPEL support (implementation.bpel), the current implementation will deploy and execute your process in an ODE environment. Composition with others BPEL engines are not yet available, but you might want to check if you could do a direct web service call to invoke the ActiveBPEL process and use a SCA reference with a ws binding. On Dec 13, 2007 7:45 AM, Peng Han [EMAIL PROTECTED] wrote: Hello All: I am a newbie for Tuscany. After reading the architecture guide, I still didn't quite understand how the Tuscany based SCA applications actually run. I mean, if we are using a top-down approach and build everything from scratch, it will be more easy to understand. However, I don't know whether Tuscany can support the Bottom-Up approach and enable users to reuse some existing sources and platforms. For example, I have some BPEL processes running on an ActiveBPEL server instead of ODE. Is it Possible for me to include them as components in a SCA composite in Tuscany. And if so, how does Tuscany handle different component runtime and make appropriate selections? Thanks. Best Regards Peng Han FernUniversitaet in Hagen -- Luciano Resende Apache Tuscany Committer http://people.apache.org/~lresende http://lresende.blogspot.com/ -- Luciano Resende Apache Tuscany Committer http://people.apache.org/~lresende http://lresende.blogspot.com/ -- Luciano Resende Apache Tuscany Committer http://people.apache.org/~lresende http://lresende.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tuscany example
Using latest trunk code, I have run src/launch/Launch trough eclipse and accessed the application from http://localhost:8080/store/store.html. The catalog items are showing ok for me. Are you using trunk or a specific release ? Did you start the application from scratch or used the existing sample ? On Dec 13, 2007 11:04 AM, eu mesmo [EMAIL PROTECTED] wrote: Hi Luciano, I tried using Firefox 2.0.0.11 and IE 6.0.2900. I ran the class src/launch/Launch inside Eclipse vs 3.3.0 I dont get any error. I believe that the class CatalogImpl is not being called, I added some logs at this class to check it. by the way, I saw your presentation this week at IBM, was very good, congratulation! Thank you On Dec 13, 2007 4:54 PM, Luciano Resende [EMAIL PROTECTED] wrote: Couple questions : What browser version are you using ? Do you get any javascript error ? Did you try to run the sample application from : java/sca/samples/store On Dec 13, 2007 10:42 AM, eu mesmo [EMAIL PROTECTED] wrote: Hello, Build your first SCA application in 10 minutes! Give it a try http://incubator.apache.org/tuscany/sca-overview.data/getting_started_Rest_099_07.pdf I'm trying to run this example but I'm not able, I dont get any error but the list of products doesnt populate I tried to debug with no lucky, currently I'm completely without a clue , does any have any tip to help me? Thanks in advance -- Luciano Resende Apache Tuscany Committer http://people.apache.org/~lresende http://people.apache.org/%7Elresende http://lresende.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Luciano Resende Apache Tuscany Committer http://people.apache.org/~lresende http://lresende.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is Tuscany?
On 12/8/07, Raymond Feng [EMAIL PROTECTED] wrote: Hi, Joshua. Thank you for your interests in Tuscany. Let me try to dump some information to you :-). Tuscany provides open-source software for distribution at no charge to the public, that simplifies the development, deployment and management of distributed applications built as compositions of service components, where the components may be written using any of a wide range of programming languages and where the components can be connected using any of a wide range of communication technologies. This software will implement relevant open standards including, but not limited to, the SCA and SDO standards defined by the OASIS OpenCSA member section. There are a few articles/slides: http://webservices.sys-con.com/read/325183.htm http://java.sys-con.com/read/458183.htm http://cwiki.apache.org/confluence/download/attachments/70211/Tuscany-SOAWorld.ppt?version=1 http://apache-tuscany.blogspot.com/ Thanks for the article. I kind of get idea now. This is what I get from it: SCA is a kind of glue code for glueing pool of apps to be used by another apps. So our new apps will connect to SCA and SCA will connect to these pool of apps. CMIIW. You can find more information at: http://incubator.apache.org/tuscany/. Tuscany is not an ESB offering. My understanding is that it's closer to the business application developers by providing a service assembly model and programming model. The ESB will provide the flexible IT infrastructure that composite applications can be deployed. I don't quite understand. People out there compares SCA with JBI, which is an ESB. :( And that's an insight that I get from those articles you gave me too. For AS400, what protocols do you have in mind to provide the connectivity? They are captured as bindings in Tuscany/SCA. There is a bunch of bindings available in Tuscany (http://incubator.apache.org/tuscany/sca-java-user-guide.html#SCAJavaUserGuide-AvailableExtensions). Tuscany runtime is extensible to plug in new bindings. Thanks. I will confirm these to my I.T team what protocol do Ineed in order to connect to AS400. Is there anything I need to know in order for Tuscany to connect to AS400 ? Thanks in advance -- I'm a coder not a drag-n-dropper Blog: http://joshuajava.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is Tuscany?
Joshua Jackson wrote: On 12/8/07, Raymond Feng [EMAIL PROTECTED] wrote: Hi, Joshua. Thank you for your interests in Tuscany. Let me try to dump some information to you :-). Tuscany provides open-source software for distribution at no charge to the public, that simplifies the development, deployment and management of distributed applications built as compositions of service components, where the components may be written using any of a wide range of programming languages and where the components can be connected using any of a wide range of communication technologies. This software will implement relevant open standards including, but not limited to, the SCA and SDO standards defined by the OASIS OpenCSA member section. There are a few articles/slides: http://webservices.sys-con.com/read/325183.htm http://java.sys-con.com/read/458183.htm http://cwiki.apache.org/confluence/download/attachments/70211/Tuscany-SOAWorld.ppt?version=1 http://apache-tuscany.blogspot.com/ Thanks for the article. I kind of get idea now. This is what I get from it: SCA is a kind of glue code for glueing pool of apps to be used by another apps. So our new apps will connect to SCA and SCA will connect to these pool of apps. CMIIW. You can find more information at: http://incubator.apache.org/tuscany/. Tuscany is not an ESB offering. My understanding is that it's closer to the business application developers by providing a service assembly model and programming model. The ESB will provide the flexible IT infrastructure that composite applications can be deployed. I don't quite understand. People out there compares SCA with JBI, which is an ESB. :( And that's an insight that I get from those articles you gave me too. This may help: http://www.osoa.org/display/Main/Relationship+of+SCA+and+JBI -- Jean-Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SCA and IBM Toolbox
On 12/8/07, Raymond Feng [EMAIL PROTECTED] wrote: For AS400, what protocols do you have in mind to provide the connectivity? They are captured as bindings in Tuscany/SCA. There is a bunch of bindings available in Tuscany (http://incubator.apache.org/tuscany/sca-java-user-guide.html#SCAJavaUserGuide-AvailableExtensions). Tuscany runtime is extensible to plug in new bindings. I already find out from the IT department here, to connect to AS400 I have to use IBM Toolbox protocol. CMIIW. How do I create these binding in Tuscany? Is there any tutorial for it? -- I'm a coder not a drag-n-dropper Blog: http://joshuajava.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]