-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Roshan,
On 11/21/16 6:33 AM, Roshan Surana wrote: > I'm looking for REST API to create a datasource in Tomcat. > > Is there any CURL command which will create datasource in Tomcat? You can use the manager app and the JMX proxy for that purpose: http://tomcat.apache.org/tomcat-8.5-doc/manager-howto.html#Using_the_JMX _Proxy_Servlet You'll need to poke-around the JMX /Catalina tree to find the component you are looking for, but you should be able to create a new DataSource somewhere in there. Once you find the MXBean and operation you need to call, you can script it through e.g. curl. - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJYMwSiAAoJEBzwKT+lPKRYeq0QAKvT9GMY9Gs1LXedhWApyZSf Yf+h2vo59YJho25+PzwxdbIo1tKlTgIXq6I2YYXct9pJ5kAFAESchzsxt4AVHNss AnzDq+vf2qX4sanSfFyrd9CD5dXfs66aCTiM8MXUZSR5FVEW+gpGw3wJvzIdxY4j qgvsZS6UQHfHCFukgiivn/IV0Kitk3GctAKg1EdVpffIWesmjWvtIkYq9320Y6BS EFX1Zl3nWPtUGjoLv5k2sD8JJU2NU+3iTTUjfcZ+HZzqVP7l4Fi0/XszjT9KNVcp xjLiId8QvfOvERBNXxXC2XARoCNhEikbJU+NJ0OagFmErhnZtZsih+ECnaJzFlaz DM7dsndcKCCrHdt/8weAc9fiQghP6wDs0Np5Y7/861MFMSQAJfFBOwBye4tUg7dX gmqCyasj40PCw3zyYBIaFDwijmXdOvplhwO805us94ZnsORNFZzETkCoFu9+7QXB /4XufCW60mRtxcD1yzXftZXWhvcDZ2Gvp/+j6mtTTBXlKkPUHes1uA1t2aA/KBnW XYdvLOIoS9OOyg2/tfz35UHwyj6lcxWP69M71CNjbJhR54Q5daP0rCrJqCR9zD19 oj+5hy4NimKsmoEEC/GEmsV2/6wxINEyDLcCb8pCcJ1POxrW26oLfDf4ankIRLWm mvG38U2lcagqnuV1hgDu =DnYV -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org