Forum Stats

  • 3,874,102 Users
  • 2,266,679 Discussions
  • 7,911,727 Comments

Discussions

Setup connection info with XQJ

evlist
evlist Member Posts: 5
edited May 16, 2012 7:36AM in XQuery
Hi,

I am trying to use XQuery through the XQJ API.

When I instantiate an oracle.xquery.xqj.OXQDataSource as explained in http://www.oracle.com/technetwork/articles/oem/xquery-jdbc-325944.html, I can submit queries fine except that I haven't found how I can set up the server connection info:

* This datasource claims that it doesn't support setting any property.
* I don't see any non standard method to set properties.
* When I try to access some random collection like collection("oradb:/foo") I just get an empty result set even when no server is running, suggesting that the driver doesn't even try to connect.

What have I missed and how can I set the server connection info?

Thanks,

Eric

Answers

  • evlist
    evlist Member Posts: 5
    I thought I could specify the connection by passing a JDBC connection as a parameter to xqs.getConnection(jdbcConn), but I get an javax.xml.xquery.XQException: XQDataSource : getConnection(conn) is not implemented.

    Eric
This discussion has been closed.