Advertisement
Guest User

Untitled

a guest
Feb 9th, 2022
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 13.48 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns:context="http://www.springframework.org/schema/context"
  4. xsi:schemaLocation="
  5.    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  6.    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
  7.  
  8.     <!-- <bean id="configurationServiceClient" class="org.onebusaway.util.impl.configuration.ConfigurationServiceClientFileImpl">
  9.    <constructor-arg type="java.lang.String" value="E:/OneBusAwaySanDiego/config.json"/>
  10.  </bean>-->
  11.  
  12. <!-- Database Connection Configuration - used by the other webapps to retrieve transit data-->
  13. <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
  14.  
  15.     <!--  MS SQL Database --> <!-- MS SQL - don't forget to add mysql-connector-java dependency to pom.xml -->
  16.     <property name="driverClassName" value="com.mysql.jdbc.Driver" />
  17.     <property name="url" value="jdbc:mysql://localhost:3306/onebusaway_wlkp?characterEncoding=UTF-8" />
  18.         <property name="username" value="onebusaway" />
  19.         <property name="password" value="0N3bu5@w@y123" />
  20. </bean>
  21.  
  22.  
  23.  
  24. <alias name="dataSource" alias="mutableDataSource" />
  25.  
  26.     <bean id="httpServiceClient" class="org.onebusaway.transit_data_federation.util.HttpServiceClientImpl">
  27.                 <constructor-arg type="java.lang.String" value="localhost"/>
  28.                 <constructor-arg type="java.lang.Integer" value="9696" />
  29.                 <constructor-arg type="java.lang.String" value="/onebusaway-admin-webapp/api/" />
  30.     </bean>
  31.  
  32. <bean id="bundleManagementService" class="org.onebusaway.transit_data_federation.impl.bundle.BundleManagementServiceImpl">
  33.     <property name="bundleStoreRoot" value="/data/onebusaway/bundle/wlkp" />
  34.     <property name="standaloneMode" value="true" />
  35.   </bean>
  36.  
  37.   <bean id="configurationServiceClient" class="org.onebusaway.util.impl.configuration.ConfigurationServiceClientFileImpl">
  38.     <constructor-arg type="java.lang.String" value="/var/lib/oba/config.json" />
  39.   </bean>
  40.  
  41.  
  42.  
  43. <!-- You can add real-time transit data config info here later.  See https://github.com/OneBusAway/onebusaway-application-modules/wiki/Real-Time-Data-Configuration-Guide for instructions  -->
  44.  
  45. <!-- Train Realtime - still in development -->
  46. <!--
  47. <bean class="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource">
  48.     <property name="tripUpdatesUrl" value="http://172.16.150.217:58000/applications/ruban-eta/onebus/tripupdates/" />
  49.     <property name="vehiclePositionsUrl" value="http://172.16.150.217:58000/applications/ruban-eta/onebus/vehiclepositions/" />
  50.     <property name="refreshInterval" value="10"/>
  51. </bean>
  52. -->
  53.  
  54. <!-- GHD 04/24/2018 the class specification below contains the trolley real-time feeds supplied by Davra's Wojtek Padula. -->
  55. <!-- <bean class="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource">        
  56.     <property name="tripUpdatesUrl" value="http://172.16.150.217/applications/onebus/tripupdates" />
  57.     <property name="vehiclePositionsUrl" value="http://172.16.150.217/applications/onebus/vehiclepositions" />
  58.     <property name="refreshInterval" value="10"/>
  59. </bean>
  60. -->
  61. <bean class="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource">
  62.         <!--<property name="tripUpdatesUrl" value="http://pksonline.pl:8093/api/v1/key/f78a2e9a/agency/1211/command/gtfs-rt/tripUpdates" />
  63.        <property name="vehiclePositionsUrl" value="http://pksonline.pl:8093/api/v1/key/f78a2e9a/agency/1211/command/gtfs-rt/vehiclePositions" />-->
  64.         <property name="tripUpdatesUrl" value="http://pksonline.pl/tripUpdates" />
  65.         <property name="vehiclePositionsUrl" value="http://pksonline.pl/vehiclePositions" />
  66.         <property name="refreshInterval" value="15"/>
  67.         <property name="agencyId" value="1211"/>
  68.     </bean>
  69.  
  70.         <bean class="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource">
  71.         <property name="tripUpdatesUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=trip_updates.pb" />
  72.         <property name="vehiclePositionsUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=vehicle_positions.pb" />
  73.         <property name="refreshInterval" value="15"/>
  74.         <property name="agencyId" value="4"/>
  75.     </bean>
  76. <bean class="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource">
  77.         <property name="tripUpdatesUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=trip_updates.pb" />
  78.         <property name="vehiclePositionsUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=vehicle_positions.pb" />
  79.         <property name="refreshInterval" value="15"/>
  80.         <property name="agencyId" value="2"/>
  81.     </bean>
  82.  
  83.         <bean class="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource">
  84.         <property name="tripUpdatesUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=trip_updates.pb" />
  85.         <property name="vehiclePositionsUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=vehicle_positions.pb" />
  86.         <property name="refreshInterval" value="15"/>
  87.         <property name="agencyId" value="5"/>
  88.     </bean>
  89.         <bean class="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource">
  90.         <property name="tripUpdatesUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=trip_updates.pb" />
  91.         <property name="vehiclePositionsUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=vehicle_positions.pb" />
  92.         <property name="refreshInterval" value="15"/>
  93.         <property name="agencyId" value="6"/>
  94.     </bean>
  95.         <bean class="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource">
  96.         <property name="tripUpdatesUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=trip_updates.pb" />
  97.         <property name="vehiclePositionsUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=vehicle_positions.pb" />
  98.         <property name="refreshInterval" value="15"/>
  99.         <property name="agencyId" value="7"/>
  100.     </bean>
  101.         <bean class="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource">
  102.         <property name="tripUpdatesUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=trip_updates.pb" />
  103.         <property name="vehiclePositionsUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=vehicle_positions.pb" />
  104.         <property name="refreshInterval" value="15"/>
  105.         <property name="agencyId" value="8"/>
  106.     </bean>
  107.         <bean class="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource">
  108.         <property name="tripUpdatesUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=trip_updates.pb" />
  109.         <property name="vehiclePositionsUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=vehicle_positions.pb" />
  110.         <property name="refreshInterval" value="15"/>
  111.         <property name="agencyId" value="9"/>
  112.     </bean>
  113.                 <bean class="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource">
  114.         <property name="tripUpdatesUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=trip_updates.pb" />
  115.         <property name="vehiclePositionsUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=vehicle_positions.pb" />
  116.         <property name="refreshInterval" value="15"/>
  117.         <property name="agencyId" value="11"/>
  118.     </bean>
  119.                 <bean class="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource">
  120.         <property name="tripUpdatesUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=trip_updates.pb" />
  121.         <property name="vehiclePositionsUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=vehicle_positions.pb" />
  122.         <property name="refreshInterval" value="15"/>
  123.         <property name="agencyId" value="12"/>
  124.     </bean>
  125.                 <bean class="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource">
  126.         <property name="tripUpdatesUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=trip_updates.pb" />
  127.         <property name="vehiclePositionsUrl" value="https://www.ztm.poznan.pl/pl/dla-deweloperow/getGtfsRtFile/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0Mi56dG0ucG96bmFuLnBsIiwiY29kZSI6MSwibG9naW4iOiJtaFRvcm8iLCJ0aW1lc3RhbXAiOjE1MTM5NDQ4MTJ9.ND6_VN06FZxRfgVylJghAoKp4zZv6_yZVBu_1-yahlo&amp;file=vehicle_positions.pb" />
  128.         <property name="refreshInterval" value="15"/>
  129.         <property name="agencyId" value="14"/>
  130.     </bean>
  131.  
  132.  
  133. <bean class="org.onebusaway.container.spring.SystemPropertyOverrideConfigurer">
  134.     <property name="order" value="-2" />
  135.     <property name="properties">
  136.         <props>
  137.             <prop key="bundlePath">/data/onebusaway/bundle/wlkp</prop>
  138.         </props>
  139.     </property>
  140. </bean>
  141.  
  142. <!-- Tells ehCache to use a different name for the cache (to avoid conflicting with other onebusaway webapps)  -->
  143. <bean class="org.onebusaway.container.spring.PropertyOverrideConfigurer">
  144.     <property name="properties">
  145.         <props>
  146.             <prop key="cacheManager.cacheManagerName">org.onebusaway.transit_data_federation_webapp_wlkp.cacheManager</prop>
  147.         </props>
  148.     </property>
  149. </bean>
  150.  
  151.  
  152. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement