Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (27 sloc) 1.394 kB
<?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:cloud="http://schema.cloudfoundry.org/spring"
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://schema.cloudfoundry.org/spring
http://schema.cloudfoundry.org/spring/cloudfoundry-spring-0.8.xsd
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd">
<beans profile="default">
<jdbc:embedded-database id="dataSource"/>
<bean id="mongoDbFactory" class="org.springframework.data.mongodb.core.SimpleMongoDbFactory">
<constructor-arg>
<bean class="com.mongodb.Mongo"/>
</constructor-arg>
<constructor-arg value="hello"/>
</bean>
<bean id="rabbitConnectionFactory" class="org.springframework.amqp.rabbit.connection.CachingConnectionFactory"/>
<bean id="redis" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory"/>
</beans>
<beans profile="cloud">
<cloud:data-source id="dataSource"/>
<cloud:mongo-db-factory id="mongoDbFactory"/>
<cloud:rabbit-connection-factory id="rabbitConnectionFactory"/>
<cloud:redis-connection-factory id="redisConnectionFactory"/>
</beans>
</beans>
Jump to Line
Something went wrong with that request. Please try again.