You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Paulo Henrique Trecenti <pt...@gmail.com> on 2007/04/18 20:07:09 UTC
DAS config file thorwable
Hi,
I'm try using DAS and I want connect with MySQL without an Datasource and
the config file dosn't have a config for "UserName" and "Passowrd" when I
try use this
<ConnectionInfo>
<ConnectionProperties
--> user="database"
--> password="database"
driverClass="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
databaseURL="jdbc:mysql://localhost:3306/database"
loginTimeout="600000"/>
</ConnectionInfo>
the ConfigUtil dosn't read that.
I just can used that, setting the "UserName" and "Password" in the code.
--
Paulo Henrique Trecenti
Re: DAS config file thorwable
Posted by Paulo Henrique Trecenti <pt...@gmail.com>.
Tank you...
2007/4/18, Luciano Resende <lu...@gmail.com>:
>
> The ConnectionProperties as defined in config.xsd expect a field
> "userName"
>
> <xsd:complexType name="ConnectionProperties">
> <xsd:attribute name="driverClass" type="xsd:string"/>
> <xsd:attribute name="databaseURL" type="xsd:string"/>
> <xsd:attribute name="userName" type="xsd:string" default=""/>
> <xsd:attribute name="password" type="xsd:string" default=""/>
> <xsd:attribute name="loginTimeout" type="xsd:int" default="0"/>
> </xsd:complexType>
>
> Could you please try that and let me know if it works for you ?
>
> Also, if you have any issues connecting with MySQL, I have a post [1] with
> some specific information on configuring DAS and MySQP together.
>
> [1]
>
> http://lresende.blogspot.com/2006/11/configuring-mysql-datasource-in-tomcat.html
>
> On 4/18/07, Paulo Henrique Trecenti <pt...@gmail.com> wrote:
> >
> > Hi,
> >
> > I'm try using DAS and I want connect with MySQL without an Datasource
> and
> > the config file dosn't have a config for "UserName" and "Passowrd" when
> I
> > try use this
> >
> > <ConnectionInfo>
> > <ConnectionProperties
> > --> user="database"
> > --> password="database"
> > driverClass="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
> > databaseURL="jdbc:mysql://localhost:3306/database"
> > loginTimeout="600000"/>
> > </ConnectionInfo>
> >
> > the ConfigUtil dosn't read that.
> > I just can used that, setting the "UserName" and "Password" in the code.
> >
> > --
> > Paulo Henrique Trecenti
> >
>
>
>
> --
> Luciano Resende
> http://people.apache.org/~lresende
>
--
Paulo Henrique Trecenti
Re: DAS config file thorwable
Posted by Luciano Resende <lu...@gmail.com>.
The ConnectionProperties as defined in config.xsd expect a field "userName"
<xsd:complexType name="ConnectionProperties">
<xsd:attribute name="driverClass" type="xsd:string"/>
<xsd:attribute name="databaseURL" type="xsd:string"/>
<xsd:attribute name="userName" type="xsd:string" default=""/>
<xsd:attribute name="password" type="xsd:string" default=""/>
<xsd:attribute name="loginTimeout" type="xsd:int" default="0"/>
</xsd:complexType>
Could you please try that and let me know if it works for you ?
Also, if you have any issues connecting with MySQL, I have a post [1] with
some specific information on configuring DAS and MySQP together.
[1]
http://lresende.blogspot.com/2006/11/configuring-mysql-datasource-in-tomcat.html
On 4/18/07, Paulo Henrique Trecenti <pt...@gmail.com> wrote:
>
> Hi,
>
> I'm try using DAS and I want connect with MySQL without an Datasource and
> the config file dosn't have a config for "UserName" and "Passowrd" when I
> try use this
>
> <ConnectionInfo>
> <ConnectionProperties
> --> user="database"
> --> password="database"
> driverClass="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
> databaseURL="jdbc:mysql://localhost:3306/database"
> loginTimeout="600000"/>
> </ConnectionInfo>
>
> the ConfigUtil dosn't read that.
> I just can used that, setting the "UserName" and "Password" in the code.
>
> --
> Paulo Henrique Trecenti
>
--
Luciano Resende
http://people.apache.org/~lresende