Any SCA for SDO M3?

2007-04-20 Thread Dennis Virt

Hello!


I'm quite new to Tuscany. SDO  DAS M2 unfortunately did not fit my project 
requirements. I'd like to use SDO M3 in my web service, which should offer 
functionality similar to das-service example but not so generic.
Can anybody recommend some SCA version that should work inside webapp 
together with SDO M3 (from current trunk)?
If there is no such version of SCA webapp runtime at the moment, maybe 
somebody could point me to a howto on using Tuscany SDO in web services?



Any feedback would be greatly appreciated,

Dennis

_
The average US Credit Score is 675. The cost to see yours: $0 by Experian. 
http://www.freecreditreport.com/pm/default.aspx?sc=660600bcd=EMAILFOOTERAVERAGE



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



Re: Any SCA for SDO M3?

2007-04-20 Thread Luciano Resende

Comments inline

On 4/20/07, Simon Laws [EMAIL PROTECTED] wrote:


On 4/20/07, Dennis Virt [EMAIL PROTECTED]  wrote:

 Hello!


 I'm quite new to Tuscany. SDO  DAS M2 unfortunately did not fit my
 project
 requirements. I'd like to use SDO M3 in my web service, which should
offer
 functionality similar to das-service example but not so generic.
 Can anybody recommend some SCA version that should work inside webapp
 together with SDO M3 (from current trunk)?
 If there is no such version of SCA webapp runtime at the moment, maybe
 somebody could point me to a howto on using Tuscany SDO in web services?


 Any feedback would be greatly appreciated,

 Dennis

 _
 The average US Credit Score is 675. The cost to see yours: $0 by
Experian.

http://www.freecreditreport.com/pm/default.aspx?sc=660600bcd=EMAILFOOTERAVERAGE



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

 Hi Dennis

We are compiling the tuscany SCA Java runtime in the trunk against the SDO
code in the trunk and so we should be pretty much OK with whatever cut
Kelvin finally takes for the SDO M3 release. Of course you will have to
check the SCA source out of svn to use it. We are conciously trying to
keep
the trunk in a buildable state and building it is quite simple. We haven't
packaged a release yet although there is talk on the list  of doing one
quite soon. If SCA doesn't do quite what you need just at the moment now
is
a great time to propose required features. See [1].

I just looked at the build and the das-service sample is commented out in
the build. It looks like Luciano is in the middle of bringing up the
das-sample so I'll let him comment on the likely prognosis there.



Yes, I was  bringing up the das-service sample when I hit the problem that
the war plugin was not available to package my application with the right
Tuscany dependencies, I could probably try to get it integrated with Jetty,
but I was really thinking on getting the war plugin working again, as It's
probably going to be very useful for developers trying to build their own
webApp.

The Axis binding is up and running and the SDO databinding works with it.

Well enough of it so that I could run our databinding web service tests.

We also have modules that allow the axis binding to be exposed via either
Jetty or Tomcat engines embedded in the SCA runtime. So you can expose web
services with the SCA code in trunk but SCA is in charge in this
configuration.

What we don't have, as far as I know, is up to date code in the trunk that
allows SCA to be dropped into an exisiting web app container. We had this
in
previous versions but I don't think its been ported over to work with the
latest trunk yet. I'm sure others are going to jump in here and correct me
if I'm wrong on this.



Yes, I also think you are right here...

What are you constraints on deploying your web service? What would you like

tuscany to provide?

I need to do a similar thing for a sample I'm thinking about at the moment
which requires that I expose web services and I would like to use SDO in
the
service implementations. I'm going to work with SCA out of trunk to
prototype my services. I'll post here what I find as I go.

Regards

Simon

[1] http://www.mail-archive.com/[EMAIL PROTECTED]/msg16872.html





--
Luciano Resende
http://people.apache.org/~lresende


Re: Any SCA for SDO M3?

2007-04-20 Thread Simon Laws

On 4/20/07, Luciano Resende [EMAIL PROTECTED] wrote:


Comments inline

On 4/20/07, Simon Laws [EMAIL PROTECTED] wrote:

 On 4/20/07, Dennis Virt [EMAIL PROTECTED]  wrote:
 
  Hello!
 
 
  I'm quite new to Tuscany. SDO  DAS M2 unfortunately did not fit my
  project
  requirements. I'd like to use SDO M3 in my web service, which should
 offer
  functionality similar to das-service example but not so generic.
  Can anybody recommend some SCA version that should work inside webapp
  together with SDO M3 (from current trunk)?
  If there is no such version of SCA webapp runtime at the moment, maybe
  somebody could point me to a howto on using Tuscany SDO in web
services?
 
 
  Any feedback would be greatly appreciated,
 
  Dennis
 
  _
  The average US Credit Score is 675. The cost to see yours: $0 by
 Experian.
 

http://www.freecreditreport.com/pm/default.aspx?sc=660600bcd=EMAILFOOTERAVERAGE
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  Hi Dennis

 We are compiling the tuscany SCA Java runtime in the trunk against the
SDO
 code in the trunk and so we should be pretty much OK with whatever cut
 Kelvin finally takes for the SDO M3 release. Of course you will have to
 check the SCA source out of svn to use it. We are conciously trying to
 keep
 the trunk in a buildable state and building it is quite simple. We
haven't
 packaged a release yet although there is talk on the list  of doing one
 quite soon. If SCA doesn't do quite what you need just at the moment now
 is
 a great time to propose required features. See [1].

 I just looked at the build and the das-service sample is commented out
in
 the build. It looks like Luciano is in the middle of bringing up the
 das-sample so I'll let him comment on the likely prognosis there.


Yes, I was  bringing up the das-service sample when I hit the problem that
the war plugin was not available to package my application with the right
Tuscany dependencies, I could probably try to get it integrated with
Jetty,
but I was really thinking on getting the war plugin working again, as It's
probably going to be very useful for developers trying to build their own
webApp.

The Axis binding is up and running and the SDO databinding works with it.
 Well enough of it so that I could run our databinding web service tests.

 We also have modules that allow the axis binding to be exposed via
either
 Jetty or Tomcat engines embedded in the SCA runtime. So you can expose
web
 services with the SCA code in trunk but SCA is in charge in this
 configuration.

 What we don't have, as far as I know, is up to date code in the trunk
that
 allows SCA to be dropped into an exisiting web app container. We had
this
 in
 previous versions but I don't think its been ported over to work with
the
 latest trunk yet. I'm sure others are going to jump in here and correct
me
 if I'm wrong on this.


Yes, I also think you are right here...

What are you constraints on deploying your web service? What would you
like
 tuscany to provide?

 I need to do a similar thing for a sample I'm thinking about at the
moment
 which requires that I expose web services and I would like to use SDO in
 the
 service implementations. I'm going to work with SCA out of trunk to
 prototype my services. I'll post here what I find as I go.

 Regards

 Simon

 [1] http://www.mail-archive.com/[EMAIL PROTECTED]/msg16872.html




--
Luciano Resende
http://people.apache.org/~lresende


Luciano, I agree. I could certainly use it.

Simon


DAS Relationship

2007-04-20 Thread Paulo Henrique Trecenti

Hi,
I'm try using the DAS Relationship but I can not undestand, in my case I try
make this

_   __
| Reserve | *_*| Equipment |
||  ||__|
|
___|
| Reserve_Equipments |
|__ |

Ok, one Reserve have many equipments, one equipment can be used by many
Reservers then I have a relatonship many to many.
My config file is

Table tableName=RESERVE typeName=Reserve
   Column columnName=ID propertyName=reserveID primaryKey=true
/
   Column columnName=ROOM_ID propertyName=roomID /
   Column columnName=EMAIL propertyName=email/
   Column columnName=DATEHOUR propertyName=dateHour/
   Column columnName=REASON propertyName=reasom/
   /Table

Table tableName=EQUIPMENT typeName=Equipment
   Column columnName=ID propertyName=equipmentID primaryKey=true
generated=true /
   Column columnName=NAME propertyName=name /
   Column columnName=QUANTITY propertyName=quantity/
   Column columnName=TYPE propertyName=type/
   /Table

Relationship name=reserveEquipments primaryKeyTable=RESERVE
foreignKeyTable=EQUIPMENT many=true
   KeyPair primaryKeyColumn=ID foreignKeyColumn=EQUIPMENT_ID /
   /Relationship

This is correct ? If yes how I can insert into table RESERVE_EQUIPMENTS
using DataObject with ChangeSummary ?

--
Paulo Henrique Trecenti


Re: DAS Relationship

2007-04-20 Thread Kevin Williams

Hello Paulo,

The RDB DAS does not yet directly support many to many relationships.  YOu
can work around this by using two 1:m relationships where both Reserve and
Equipment has 1:m relationship with Reserve_Equipment.  So, you have to
directly model the junction table.

--Kevin


On 4/20/07, Paulo Henrique Trecenti [EMAIL PROTECTED] wrote:


Hi,
I'm try using the DAS Relationship but I can not undestand, in my case I
try
make this

_   __
| Reserve | *_*| Equipment |
||  ||__|
 |
 ___|
 | Reserve_Equipments |
 |__ |

Ok, one Reserve have many equipments, one equipment can be used by many
Reservers then I have a relatonship many to many.
My config file is

Table tableName=RESERVE typeName=Reserve
Column columnName=ID propertyName=reserveID primaryKey=true
/
Column columnName=ROOM_ID propertyName=roomID /
Column columnName=EMAIL propertyName=email/
Column columnName=DATEHOUR propertyName=dateHour/
Column columnName=REASON propertyName=reasom/
/Table

Table tableName=EQUIPMENT typeName=Equipment
Column columnName=ID propertyName=equipmentID
primaryKey=true
generated=true /
Column columnName=NAME propertyName=name /
Column columnName=QUANTITY propertyName=quantity/
Column columnName=TYPE propertyName=type/
/Table

Relationship name=reserveEquipments primaryKeyTable=RESERVE
foreignKeyTable=EQUIPMENT many=true
KeyPair primaryKeyColumn=ID foreignKeyColumn=EQUIPMENT_ID /
/Relationship

This is correct ? If yes how I can insert into table RESERVE_EQUIPMENTS
using DataObject with ChangeSummary ?

--
Paulo Henrique Trecenti



DAS Static Data Object

2007-04-20 Thread Paulo Henrique Trecenti

Hi,

I want create a static data object like in wiki
http://wiki.apache.org/ws/WorkingWithStaticDataObjects, but the source code
of Custumer is not showed.
The Custumer is an extends DataObject previously create from a XSD?
How I can create a static data object.



--
Paulo Henrique Trecenti


Re: DAS Static Data Object

2007-04-20 Thread Luciano Resende

Customer is defined in the following XSD file [1]. Then you need to generate
the actual customer related classes, and this is done using a maven plugin
and configured in the das pom [2]

execution
  idcustomer/id
  configuration
 schemaFile${basedir}/src/test/resources/customer.xsd/schemaFile
 noUnsettabletrue/noUnsettable
  /configuration
   goals
goalgenerate/goal
/goals
/execution


[1]
https://svn.apache.org/repos/asf/incubator/tuscany/java/das/rdb/src/test/resources/customer.xsd
[2] https://svn.apache.org/repos/asf/incubator/tuscany/java/das/rdb/pom.xml

On 4/20/07, Paulo Henrique Trecenti [EMAIL PROTECTED] wrote:


Hi,

I want create a static data object like in wiki
http://wiki.apache.org/ws/WorkingWithStaticDataObjects, but the source
code
of Custumer is not showed.
The Custumer is an extends DataObject previously create from a XSD?
How I can create a static data object.



--
Paulo Henrique Trecenti





--
Luciano Resende
http://people.apache.org/~lresende