uri of binding.ws should be used restrictedly

2007-09-11 Thread shaoguang geng
Hello every one,

uri attribute of binding.ws/ is much convenient to attach a WS in.

But it works only within a few circumstances, such as another java generated WS 
provided by Tuscany, JAXWS.

But much more WS is complecated, such as JBoss or even a Tuscany WS when the 
wsdl becomes delicate.

Under these circumstances, pre loading wsdl (locally save the wsdl) and use 
wsdlElement will do most of them. Up to now, I have gone over it with JBoss 
and ODE.

So I just think, to make things frank, I would suggest that Tuscany user should 
be warned of uri's limitation, and encouraged of using wsdl preloading.



   
-
Need a vacation? Get great deals to amazing places on Yahoo! Travel. 

Re: jax-ws instead of axis2

2007-08-15 Thread shaoguang geng
Hi, here is some of my vision:
Performance: 
It seems jaxws is faster than axis2, at this point, I agree jaxws should be 
part of Tuscany.
Another hand, we use axiom for axis2's databinding model, in fact this model is 
slower than ADB, so change axiom into ADB might be another thing we should do.



Jean-Marc Taillant [EMAIL PROTECTED] wrote: Hello,

Do you know if there is a way to use jax-ws instead of Axis2 for web 
services. If not is there a plan to integrate jax-ws into Tuscany?

Thanks in Advance,

Jean-Marc

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   
-
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.

Re: Tuscany Java2WSDL

2007-08-06 Thread shaoguang geng
Hi, this tool and other tools in Tuscany are distributed as maven plugins. It's 
not of any value to set them in Tuscany's release. Another word, they should be 
in maven's repository ready for download.

Good Luck

Radim Kolarik [EMAIL PROTECTED] wrote: Hi,

I noticed that there is a Java2WSDL tool in Tuscany, however, it is
available only in source code, it is not released with binary
distribution of Tuscany (the compiled jar file is not in the modules
directory).

Is there any reason for this?

Thanks,
Radim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, 
when. 

Re: Injecting servlet context into component

2007-07-22 Thread shaoguang geng
My oppinion is that service is something independent to any environment, such 
as servlet container, against your question, I thing you'd better walk around 
it, it seems you made a wrong design now.
   
  
Jean-Sebastien Delfino [EMAIL PROTECTED] wrote:
  [snip]
Robert Young wrote:
 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 wrote:
 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 myself.


 On 7/13/07, ant elder wrote:
  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 wrote:
  
   I am running Tuscany with Tomcat and I need the servlet context 
 to be
   available to one of my service implementations (used to load a
   particular configuration). I understand I can inject properties with
   default values but I can't seem to figure out how I can inject the
   servlet context.
  
   Thanks
   Rob
  


There is no facility to inject a ServletContext into an SCA component at 
the moment but we should be able to work something out if we understand 
your scenario. Who invokes your SCA component? a JSP or a Servlet? or is 
the component accessed through an SCA binding (WS, JSONRPC or Ajax for 
example)?

Thanks
--
Jean-Sebastien

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. 

Re: BindException when re-deploying webapp

2007-07-17 Thread shaoguang geng
binding.ws in Tuscany must rely on embedded jetty or tomcat engine, this is 
generaly used in stand along application, so you saw the address in use 
error. 
   
  To avoid this error, just change the binding.ws uri=[different port].
   
  Good luck.

Robert Young [EMAIL PROTECTED] wrote:
  If I try to re-deploy my webapp in Tomcat (by copying the war into the
webapps directory and letting Tomcat do the rest) I get a
BindException from Jetty saying that the address is already in use. I
have no idea what it's talking about, as I'm concerned Jetty shouldn't
be getting involved at all, I'm using Tomcat not Jetty. Does anyone
know what's going on here?

Cheers
Rob

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. 

Re: Using Tuscany for dynamic component loading

2007-07-15 Thread shaoguang geng
Write your own composite files then. SCADomain looks for them in you classpaths.
   
  Dynamc is something you could do with Tuscany, but not recommended, that is 
out of the scope of SCA.

Peizhao Hu [EMAIL PROTECTED] wrote:
  Hi All,

I am wondering whether the Tuscany is able to perform dynamic component 
loading at runtime. I would like to have the Tuscany runtime as an 
execution environment for my service components to be composed on the 
fly. Firstly, can i do it?

also, another thing is that when I run the calculator example, it 
specifies a composite file for service components. what happen if I want 
to write my own program, how can I tell the Tuscany runtime where to 
look for this composite file?

-- 
regards;

Peizhao


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.

Re: puzzle from a fresh

2007-07-15 Thread shaoguang geng
Thanks first. But the point is: The BigBank sample will refer to a class in 
1.0M2(older), and this class does not exists in 0.9 or svn.
  Name of the class is org.apache.tuscany.api.annotation.DataType.
  

Raymond Feng [EMAIL PROTECTED] wrote:
  Hi,

It seems that you was confused by two versions: 0.90-incubating and 
1.0-incubator-M2. The fact is that 0.90-incubating is newer than 
1.0-incubator-M2. Please use version 0.90-incubating.

Thanks,
Raymond

- Original Message - 
From: shaoguang geng 
To: 
Sent: Monday, July 09, 2007 1:33 AM
Subject: puzzle from a fresh


A little confused: svn structure just like version 0.9 src, but 1.0-M2 
likes a new file structure!

 When I compile bigbank sample from svn, O, beside of a lot of mis 
 versioning, the very problem is that the generated java codes imports 
 org.apache.tuscany.api.annotation.DataType, which is not one of the svn 
 and 0.9, but is a class of 1.0-M2.

 I may figure it as a missing work on the svn tree, or, were I made a 
 mistake some where, please tell me.

 THANKs.


 -
 Shape Yahoo! in your own image. Join our Network Research Panel today! 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  
-
Looking for earth-friendly autos? 
 Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.  

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 more, it depends on 
you.
   
  Good Luck.

Raymond Feng [EMAIL PROTECTED] wrote:
  Hi,

Please see my comments inline.

Thanks,
Raymond

- Original Message - 
From: Peizhao Hu 

To: 
Sent: Thursday, July 12, 2007 7:44 PM
Subject: Can anyone show me example of a simple scenario?


 Hi,

 I want to achieve the following tasks in Tuscany. However, not quite sure 
 which sample I really should look into. Can anyone point me to the right 
 direction?

 I want to write implementation for two components where each component 
 take one input and generate one output. Imagine that these components are 
 generic function, therefore, composition of these components is done by 
 writing the composite file, which wires component's service(as output) and 
 reference(as input) together.

It seems that you want implement some mediation logic, am I right? You could 
define a generic interface or take advantage of the any interface 
(org.apache.tuscany.sca.interfacedef.Interface, if isDynamic() returns 
true).


 is there any simple example for this scenario?

 In the Tuscany samples, such as bigbank, it seems to me that composite 
 service needs to have knowledge about the component service they are going 
 to reference. but in my case, I want all component to be generic, and be 
 able to dynamically compose by defining the composite file of what 
 components to use.


What are the criteria for your composition? SCA spec defines the wiring 
between a component reference and component service by the interface 
compatibility. Components can also be autowired by the runtime. Do you just 
want to programatically wire the components together or do you expect the 
Tuscany runtime to wire things based on the metadata (such as business 
semantics, service-level agreement)?

 not sure whether the SCA is a better way to do this? any idea or comment?

 -- 
 regards;

 Peizhao


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  
-
Looking for earth-friendly autos? 
 Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.  

puzzle from a fresh

2007-07-09 Thread shaoguang geng
A little confused: svn structure just like version 0.9 src, but 1.0-M2 likes a 
new file structure!
   
  When I compile bigbank sample from svn, O, beside of a lot of mis versioning, 
the very problem is that the generated java codes imports 
org.apache.tuscany.api.annotation.DataType, which is not one of the svn and 
0.9, but is a class of 1.0-M2.
   
  I may figure it as a missing work on the svn tree, or, were I made a mistake 
some where, please tell me.
   
  THANKs.

   
-
Shape Yahoo! in your own image.  Join our Network Research Panel today!

Re: DAS build problems compiling SDO code-generated classes

2007-07-02 Thread shaoguang geng
I did not deal with SDA,before, today I tried it, with succeed. And without any 
change to pom.xml, and every dependency downloaded well.
   
  May be you try again, from svn, then you get it.

Ron Gavlin [EMAIL PROTECTED] wrote:
  Yes, I am building both from trunk. If I change the das-rdb pom by setting 
noUnsettable=false as listed below, all is well. I suspect there is a bug in 
the latest SDO codegen infrastructure supporting the combination 
(noNotification=false and noUnsettable=true). Does that make sense?

- Ron



org.apache.tuscany.sdo
tuscany-sdo-plugin


config

${basedir}/src/main/resources/config.xsd
true
true


generate



company

${basedir}/src/test/resources/company.xsd
false


generate



customer

${basedir}/src/test/resources/customer.xsd
false


generate






- Original Message 
From: Luciano Resende 
To: tuscany-user@ws.apache.org
Sent: Thursday, June 28, 2007 1:08:34 PM
Subject: Re: DAS build problems compiling SDO code-generated classes

Are you building from trunk or from beta1 branch ?
If building from trunk, if you build SDO locally, do you still get the errors ?

On 6/28/07, Ron Gavlin wrote:
 I am having problems building the latest DAS code. Below, I have listed the 
 trace of the build. The DAS code-generated classes with noNotification 
 enabled compile fine. The others using the default noNotification setting 
 have compilation errors related to the notify() methods. I am continuing to 
 research the issue. However, if someone knows how to fix the problem off the 
 top of their head, please let me know.

 Thanks,

 - Ron

 ...
 [INFO] Generating SDO interfaces from 
 C:\tuscany-das\das\rdb\src\main\resources\config.xsd
  Generating code
  Generating packages
  Generating package ConfigPackageImpl
  Generating Java interface org.apache.tuscany.das.rdb.config.ConfigFactory
  Generating 
  /TargetProject/org/apache/tuscany/das/rdb/config/ConfigFactory.ja
 va
  Generating Java class 
  org.apache.tuscany.das.rdb.config.impl.ConfigFactoryIm
 pl
  Generating 
  /TargetProject/org/apache/tuscany/das/rdb/config/impl/ConfigFacto
 ryImpl.java
  Generating Column
  Generating Java interface org.apache.tuscany.das.rdb.config.Column
  Generating /TargetProject/org/apache/tuscany/das/rdb/config/Column.java
  Generating Java class org.apache.tuscany.das.rdb.config.impl.ColumnImpl
  Generating 
  /TargetProject/org/apache/tuscany/das/rdb/config/impl/ColumnImpl.
 java
  Generating Command
  Generating Java interface org.apache.tuscany.das.rdb.config.Command
  Generating /TargetProject/org/apache/tuscany/das/rdb/config/Command.java
  Generating Java class org.apache.tuscany.das.rdb.config.impl.CommandImpl
  Generating 
  /TargetProject/org/apache/tuscany/das/rdb/config/impl/CommandImpl
 .java
  Generating Config
  Generating Java interface org.apache.tuscany.das.rdb.config.Config
  Generating /TargetProject/org/apache/tuscany/das/rdb/config/Config.java
  Generating Java class org.apache.tuscany.das.rdb.config.impl.ConfigImpl
  Generating 
  /TargetProject/org/apache/tuscany/das/rdb/config/impl/ConfigImpl.
 java
  Generating Connection Info
  Generating Java interface org.apache.tuscany.das.rdb.config.ConnectionInfo
  Generating 
  /TargetProject/org/apache/tuscany/das/rdb/config/ConnectionInfo.j
 ava
  Generating Java class 
  org.apache.tuscany.das.rdb.config.impl.ConnectionInfoI
 mpl
  Generating 
  /TargetProject/org/apache/tuscany/das/rdb/config/impl/ConnectionI
 nfoImpl.java
  Generating Connection Properties
  Generating Java interface 
  org.apache.tuscany.das.rdb.config.ConnectionProper
 ties
  Generating 
  /TargetProject/org/apache/tuscany/das/rdb/config/ConnectionProper
 ties.java
  Generating Java class 
  org.apache.tuscany.das.rdb.config.impl.ConnectionPrope
 rtiesImpl
  Generating 
  /TargetProject/org/apache/tuscany/das/rdb/config/impl/ConnectionP
 ropertiesImpl.java
  Generating Create
  Generating Java interface org.apache.tuscany.das.rdb.config.Create
  Generating /TargetProject/org/apache/tuscany/das/rdb/config/Create.java
  Generating Java class org.apache.tuscany.das.rdb.config.impl.CreateImpl
  Generating 
  /TargetProject/org/apache/tuscany/das/rdb/config/impl/CreateImpl.
 java
  Generating Delete
  Generating Java interface org.apache.tuscany.das.rdb.config.Delete
  Generating /TargetProject/org/apache/tuscany/das/rdb/config/Delete.java
  Generating Java class org.apache.tuscany.das.rdb.config.impl.DeleteImpl
  Generating 
  /TargetProject/org/apache/tuscany/das/rdb/config/impl/DeleteImpl.
 java
  Generating Key Pair
  Generating Java interface org.apache.tuscany.das.rdb.config.KeyPair
  Generating /TargetProject/org/apache/tuscany/das/rdb/config/KeyPair.java
  Generating Java class org.apache.tuscany.das.rdb.config.impl.KeyPairImpl
  Generating 
  /TargetProject/org/apache/tuscany/das/rdb/config/impl/KeyPairImpl
 .java
  Generating Parameter
  Generating Java interface org.apache.tuscany.das.rdb.config.Parameter
  Generating 

Re: What is the minimum set of jar files for the calculator example?

2007-06-27 Thread shaoguang geng
I have this minum jar set, for calculator sample, ohter samples needs more than 
this.
  The way I got this result, was when I test then SCA java svn code, not the 
release code.
  stax-1.2.0.jar
  stax-api-1.0.1.jar
  class files of Calculator it self
  module jars 
 sca api
 tuscany assembly (basic and -xml)
 tuscany interface java
 tuscany spi
 tuscany embedded host
 tuscany contribution
 tuscany core
 policy
 tuscany databinding(basic, databinding * not needed)
  commonj
 
 For any questions feel free to contact me.

Matthew Peters [EMAIL PROTECTED] wrote:
  The calculator sample uses a manifest jar file that points at about 60 
other jar files. Are they really all needed at runtime? Can anyone tell me 
how I can work out what the minimal set of jar fies I really need is?

Matthew Peters
SWG AB Incubators
Int: 246740 
Ext: +44-(0)1962- 816740
MP 146, IBM United Kingdom Ltd, Hursley Park
http://w3.ibm.com/bluepages/searchByName.wss?uid=073271866task=viewrecord
Internet: [EMAIL PROTECTED]






Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







  
-
Looking for earth-friendly autos? 
 Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.