You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Mi...@innovations.de on 2007/06/28 13:18:37 UTC

RDB DAS in a J2SE Application and static data objects

Hi,

I want to use RDB DAS in my J2SE Application but I miss the
ConnectionProperties type in the config.xsd (das-1.0-incubator-M2-src).
Is this
(http://incubator.apache.org/tuscany/connection-support-for-j2se-environ
ment.html) sample not any longer supported?

<ConnectionInfo>
	<ConnectionProperties
		driverClass="com.mysql.jdbc.Driver"
		databaseURL="jdbc:mysql://localhost:3306/test"
		userName="xxx"
		password="xxx"
		loginTimeout="600000"/>
</ConnectionInfo>

Exception in thread "main" java.lang.RuntimeException:
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Feature
'ConnectionProperties' not found. (http:///temp.xml, 10, 30)
	at
org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig(ConfigUtil.java:54
)



Another Question: I want to work with static data objects but I have no
idea what I have to do to create a Factory and how I have to implement
the static classes. Where do I find a complete example?


Thanks in advance,

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org


Re: RDB DAS in a J2SE Application and static data objects

Posted by Luciano Resende <lu...@gmail.com>.
Hi Michael

   Support for J2SE connections was introduced post M2, you could use
our pre-Release Candidate available at [1] or checkout trunk and build
DAS artifacts from there. There is also a sample demonstrating usage
of DAS in a J2SE environment [2]

   As for using Static SDO, you could start with our User Guide, and
see if that can get you initiated on using it [3], there are couple
test cases that use static SDOs, that you could use as a reference.

[1] http://people.apache.org/~lresende/tuscany/das-beta1-distribution/
[2] https://svn.apache.org/repos/asf/incubator/tuscany/java/das/samples/customer/
[3] http://incubator.apache.org/tuscany/workingwithstaticdataobjects.html

On 6/28/07, Michael.Ernst@innovations.de <Mi...@innovations.de> wrote:
> Hi,
>
> I want to use RDB DAS in my J2SE Application but I miss the
> ConnectionProperties type in the config.xsd (das-1.0-incubator-M2-src).
> Is this
> (http://incubator.apache.org/tuscany/connection-support-for-j2se-environ
> ment.html) sample not any longer supported?
>
> <ConnectionInfo>
>         <ConnectionProperties
>                 driverClass="com.mysql.jdbc.Driver"
>                 databaseURL="jdbc:mysql://localhost:3306/test"
>                 userName="xxx"
>                 password="xxx"
>                 loginTimeout="600000"/>
> </ConnectionInfo>
>
> Exception in thread "main" java.lang.RuntimeException:
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Feature
> 'ConnectionProperties' not found. (http:///temp.xml, 10, 30)
>         at
> org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig(ConfigUtil.java:54
> )
>
>
>
> Another Question: I want to work with static data objects but I have no
> idea what I have to do to create a Factory and how I have to implement
> the static classes. Where do I find a complete example?
>
>
> Thanks in advance,
>
> Michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-user-help@ws.apache.org
>
>


-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org