Re: Can anyone show me example of a simple scenario?

2007-07-13 Thread shaoguang geng
Hi, around your question, I may suggest the samples/calculator to you. It is very easy to enjoy. Since your scenario is not clear, I can not write more info here. Any way, samples/calculator is to be used in one JVM, if you are working in a distributed environment, I may suggent you something

Re: Does DAS could support the blob field read and write ?

2007-07-13 Thread Amita Vadhavkar
Hi All, In an attempt to see how to ensure support from DAS to Blob, Clob etc. I tried a MySQL table with Blob column having some rows and tried to access it using DAS. It could not go through and on the way of debugging - I finally wrote the below code (part from

Re: Injecting servlet context into component

2007-07-13 Thread Robert Young
On a slightly different tack, if I implement my own servlet which loads the servlet from WebAppServletHost would I be able to inject the servlet context into the service via the generated servlet? On 7/13/07, Robert Young [EMAIL PROTECTED] wrote: Strangely I don't need anything from it, I just

Re: Getting service manually through servlet

2007-07-13 Thread Robert Young
Ah yes, I hadn't spotted the sca-contributions.xml file in the sample. It working now, just my other trouble of how to get hold of the servlet context in the service now. Cheers Rob On 7/12/07, Luciano Resende [EMAIL PROTECTED] wrote: I remember having similar discussions when we discussed

Re: Does DAS could support the blob field read and write ?

2007-07-13 Thread Amita Vadhavkar
Hi, DAS does show support for Blob. I am trying a small sample with MySQL -DAS to verify the same. There is also a DefaultConverter provided in DAS Impl which seems to be there for handling Blobs. Thanks, Amita On 7/13/07, litaojian [EMAIL PROTECTED] wrote: Hi All , I need to read or

Re: Injecting servlet context into component

2007-07-13 Thread ant elder
I think there isn't any way with the current code as-is. We could look at providing something, I'm not sure we should what support injecting the entire ServletContext into a component though, what is it exactly that you need from it in the service impl? ...ant On 7/12/07, Robert Young [EMAIL

Re: Injecting servlet context into component

2007-07-13 Thread Robert Young
Strangely I don't need anything from it, I just need it. The service is for interacting with Nutch, which requires the servlet context to load the configuration instance.The NutchConfiguration class grabs all it's parameters from the servlet context but I don't really want to have to do that

RE: [SCA Java] Using complex types in the helloworld-ws-reference example

2007-07-13 Thread David Haney
Thanks Raymond, I filed TUSCANY-1432 for this issue and attached my test case. Thanks. David. -Original Message- From: Raymond Feng [mailto:[EMAIL PROTECTED] Sent: Thursday, July 12, 2007 6:16 PM To: tuscany-user@ws.apache.org Subject: Re: [SCA Java] Using complex types in the

Re: Can anyone show me example of a simple scenario?

2007-07-13 Thread Peizhao Hu
Hi Sorry for any confusion, here are an abstract example of what I am trying to do. I would like to treat each component as a function as the followings: ComponentA(x) := x + 2 ComponentB(y) := y * 3 and I would like a composite file to dynamically compose them, for example:

Returning complex types from a service

2007-07-13 Thread Robert Young
Hi, I am running Tuscany within a Tomcat web project and I am getting the following exception Caused by: java.lang.NullPointerException at commonj.sdo.impl.HelperProvider.getDefaultContext(HelperProvider.java:379) ... I am guessing this is to do with trying to return a complex

Re: SDO Java 1.0-incubating release candidate 1

2007-07-13 Thread kelvin goodson
Thanks for looking at this ant ... snip/ NOTICE file still contains the incubating disclaimer will fix RELEASE_NOTES should have a sentence or 2 at the top saying, in a nutshell, what is SDO. maybe also rather than saying just '...is a superset of previous release... make it sound a bit