Currently, I am creating a sample project using CouchDB. My plan is to develop a web application with AJAX and host it in the tomcat environment. I am interested in learning how to effectively communicate with the CouchDB server. While researching, I came across some examples but I have a few concerns.
1) Given that my application will be hosted on a web server, is it possible to connect to a CouchDB instance externally? Many examples seem to focus on applications deployed in CouchApp or Couch environments.
2) If connecting externally is feasible, will this lead to cross-domain issues? I came across a discussion regarding this topic at Connection AJAX, CouchDB and JavaScript.
3) To avoid the aforementioned problems, would utilizing a server-side JavaScript implementation such as Rhino be a viable solution? More information on Rhino can be found at .
4) If Rhino restricts the use of many JavaScript libraries, how can I effectively interact with CouchDB? Will I need to rely solely on native JavaScript or could a library like jQuery be utilized?
5) What are some recommended client-side libraries for achieving my objectives?
I would greatly appreciate any assistance you can provide. Thank you.