-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 David,
On 8/2/16 4:04 PM, KARR, DAVID wrote: > I'm attempting to use Tomcat(tomee) to run a REST service that will > return some data from some SQL queries (Oracle). I've installed > Tomee 7.0.1, which uses Tomcat 8.5.3. > > The JDBC driver is available from a private enterprise maven repo. > I'd prefer to get it from there, as opposed to storing it locally. > I noticed at http://tomee.apache.org/configuring-datasources.html, > there is the possible notation of "mvn:g:a:v" for the "classpath" > attribute. However, I don't see any way to configure the Maven > repositories this will reference. How do I tell it to look in a > particular repo for this? > > My Resource definition in "conf/tomee.xml" looks something like > this: ----------------------- <Resource id="jdbc/sus2" > type="DataSource" maxActive="5" maxIdle="2" maxWait="10000" > driverClassName="oracle.jdbc.driver.OracleDriver" > url="jdbc:oracle:thin:@<host>:1521:<sid>" username="<user>" > password="<password>"/> ---------------- > > Does this look correct? I find the Tomcat docs confusing, with > respect to the required syntax for this. It's not clear whether a > pure XML syntax is required, or a mixed XML/property syntax. > > I haven't written the code to reference this datasource yet, but if > I start the instance, should I see any default output that will > show Tomcat connecting to this datasource? If it doesn't show this > by default, is there a way to turn this on? This looks like a TomEE extension to Tomcat's data source configuration. I think you'll have to ask the fine folks at TomEE about this one. - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJXqjkQAAoJEBzwKT+lPKRYCvEQAMPOpSOHH2LgTgGnyriGffzc nV2kSAvLg5bICL2RlJnjoN4QxYnRV+soJbdiqvcI8QHoagsVlwxjmoKajGW1eCzv A0GAh0cWSUjuAeWnSLFqG5Bg8mnrwpvCG5DwAm2mXWj5ZTN+KHu/KfhjEFpewE8O UJBF47B4GyQES4FQB/B+jvpMEOE7+M+MCc/ANcuUnFapdu7hvpOMlUx+SSDWH8PF g1iIboDllYAQ9Ebg/edjYTmdIJb2Fm/NnMI7BbiP1bjXrUUfBi2FZacA22+9NkyL YkqSTBom5Qzk6LE+7ISb/YzXo7PwPpjUIvWW7IA2u5ngMEcX8YkoVauSJhca5Las cRfRzimMsFusxqXPY7lErMuLC5+C8QsTOkwyFzGlvTdqiF+/5zCQ+xPKEXxGmvX8 aaRQqW5SI+XA1DtGt/uGWCOzVJ0q38p1LOYcSuTD95esKVA7JUX3+NPSmOQJxYJr bMlzEE6FQ1NxjheFv/FG3YOkdK8Cr6O2IVowEDLOOkNu36n9dXiSW6fscRKcyfr8 4Ohk8GuD/FqSCmZugndprEttBxDXe84uQ0+NNr9zaRFc3Tyv9yLcqGwjXjRPKlSc MuODvmUaHT41FFmGzYdFFoXY1TGewLGeybyIXhdmzriXsPfARTJsvTiLzCTUh8wB vlYywmQmCnjV8uKIjg8R =QPKk -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org