-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
140 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ zktodo2test.dat.properties | |
/.settings | ||
/zktodo2test.dat.script | ||
/nohup.out | ||
/zktodo2-cf.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" | ||
xmlns:p="http://www.springframework.org/schema/p" xmlns:util="http://www.springframework.org/schema/util" | ||
xsi:schemaLocation=" | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd | ||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd | ||
"> | ||
|
||
<bean id="vcapservices" class="org.intalio.cloudfoundry.vcapservices.impl.VCapServices" /> | ||
|
||
<!-- | ||
If we are in cloudfoundry, the environment variable VCAP_SERVICES | ||
contains the database connection in JSON. | ||
The factory will part VCAP_SERVICES when it exists and create from the first | ||
postgres.* service the database connection URL. | ||
If it does not exist, the factory will simply use the value of | ||
the system property"-DDATABASE_URL=postgres://user:password@hostname/dbname" | ||
--> | ||
<bean id="dbUrl" factory-bean="vcapservices" factory-method="getConnectionAsURI"> | ||
<constructor-arg value="DATABASE_URL" /> | ||
<constructor-arg value="postgresql" /> | ||
<constructor-arg value="/^postgres.*/" /> | ||
</bean> | ||
|
||
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" | ||
xmlns:p="http://www.springframework.org/schema/p" xmlns:util="http://www.springframework.org/schema/util" | ||
xsi:schemaLocation=" | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd | ||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd | ||
"> | ||
|
||
<!-- | ||
DATABASE_URL should be set with either "-DDATABASE_URL=postgres://user:password@hostname/dbname" | ||
else with an environment variable. | ||
--> | ||
<bean class="java.net.URI" id="dbUrl"> | ||
<constructor-arg value="${DATABASE_URL}" /> | ||
</bean> | ||
|
||
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters