cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: get Connection URL at runtime
Date Mon, 17 Feb 2014 07:44:59 GMT
Here is a Cayenne-agnostic way:

String url = dataSource.getConnection().getMetaData().getURL()

HTH,

Andrus

On Feb 17, 2014, at 10:41 AM, Markus Reich <markus.reich@markusreich.at> wrote:
> Hi,
> 
> is it possible to get the connection URL of the data-source, specified in
> the cayenne*.xml?
> 
> regards
> Markus


Mime
View raw message