Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. <web-app>
  2. <display-name>Archetype Created Web Application</display-name>
  3. <context-param>
  4. <param-name>contextConfigLocation</param-name>
  5.  
  6. <param-value>file:///${camel.config.location}</param-value>
  7. <description> location of spring xml files</description>
  8. </context-param>
  9.  
  10.  
  11. <listener>
  12. <listener-
  13. class>org.springframework.web.context.ContextLoaderListener</listener-class>
  14. </listener>
  15.  
  16. <!-- Oracle Database Connection -->
  17. <bean id="loaderDS"
  18. class="org.apache.commons.dbcp2.BasicDataSource" destroy- method="close" scope="singleton">
  19. <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
  20. <property name="url" value="jdbc:oracle:thin:@localhost:1521:xe" />
  21. <property name="username" value="Dataloader" />
  22. <property name="password" value="Dataloader" />
  23. <property name="initialSize" value="4"/>
  24. <property name="maxTotal" value="32"/>
  25. <property name="maxIdle" value="16"/>
  26. <property name="minIdle" value="8"/>
  27. <property name="timeBetweenEvictionRunsMillis" value="1800"/>
  28. <property name="minEvictableIdleTimeMillis" value="1800"/>
  29. <property name="testOnBorrow" value="true"/>
  30. <property name="testWhileIdle" value="true"/>
  31. <property name="testOnReturn" value="true"/>
  32. <property name="testOnCreate" value="true"/>
  33. <property name="validationQuery" value="SELECT 1 from dual"/>
  34. <property name="maxWaitMillis" value="1000"/>
  35. <property name="removeAbandonedOnBorrow" value="true"/>
  36. <property name="removeAbandonedOnMaintenance" value="true"/>
  37. <property name="removeAbandonedTimeout" value="30000"/>
  38. <property name="fastFailValidation" value="true"/>
  39. </bean>
  40.  
  41. <camelContext xmlns="http://camel.apache.org/schema/spring" depends- on="loaderDS" >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement