0

我一直在玩compojure和cloudbees。到现在为止还挺好。但为了做任何有意义的事情,我需要将应用程序(使用Clickstart制作)连接到数据库(反之亦然,具体取决于您如何查看它)。这是使用他们的DBaaS选择在网站上提供的文档:云彩和组合数据库连接

To register this database as a datasource in your application, insert the following XML snippets into your application configuration files. 

WEB-INF/cloudbees-web.xml 

<resource name="jdbc/landlords" auth="Container" type="javax.sql.DataSource"> 
<param name="username" value="db-name" /> 
<param name="password" value="db-pasword" /> 
<param name="url" value="jdbc:cloudbees://landlords" /> 
</resource> 

WEB-INF/web.xml 

<resource-ref> 
<res-ref-name>jdbc/landlords</res-ref-name> 
<res-type>javax.sql.DataSource</res-type> 
<res-auth>Container</res-auth> 
</resource-ref> 

原谅我,但我没有看到那里的WEB-INF目录(或任何* web.xml文件)。唯一关闭的是config.xml(我可以发布内容,但到目前为止我不认为它是相同的)。

具体我想要使用此:http://www.enterprisedb.com/cloud-database/amzn-launch-guide-dbaas

回答

0

文档是JavaEE的应用。对于其他堆栈,您应该使用datasource binding。我无法确切地知道如何配置compojure配置,因为我对这个堆栈没有任何了解