I have defined a datasource that works, but i want to send hostname and
applicationname to the database server aswell...

My problem is that it just wond to that, i noticed in the XML docs that you
have the possibility to add description and property to the data-source
definition but not how, so my guess was this:

<data-source 
                name="Default datasource"
                class="com.evermind.sql.ConnectionDataSource"
                location="jdbc/DefaultDS"
                pooled-location="jdbc/DefaultPooledDS"
                xa-location="jdbc/xa/DefaultXADS"
                ejb-location="jdbc/DefaultEJBDS"
                url="jdbc:sybase:Tds:umbrio:4300"
                connection-driver="com.sybase.jdbc2.jdbc.SybDriver"
            scema="database-schemas/sybase.xml"
                username="sa"
                password="mustang">
              <property name="HOSTNAME" value="jabbadabbadoo" />
              <property name="APPLICATIONNAME" value="application mamba" />
</data-source>

***

It wont work, the database reports blank application name and hostname when
i query the database. anyone got this working?

Its actually important to us to get this information into the database
server so we can see deadlocks and so on and if its our things that make
them and so on. Hope someone can give me an answer fast.

PS. Orion crew, you should make examples in the XML documentation for
configuration files. It will help a lot :)

Med vennlig hilsen
Klaus Myrseth
Telenor Mobil AS - Planavdelingen


Reply via email to