[onebusaway] r5504 committed - Edited wiki page RunningTransitDataFederationWebapp through web user i...

7 views
Skip to first unread message

onebu...@googlecode.com

unread,
Feb 19, 2012, 12:24:22 PM2/19/12
to onebusawa...@googlegroups.com
Revision: 5504
Author: bdfe...@onebusaway.org
Date: Sun Feb 19 09:16:19 2012
Log: Edited wiki page RunningTransitDataFederationWebapp through web
user interface.
http://code.google.com/p/onebusaway/source/detail?r=5504

Modified:
/wiki/RunningTransitDataFederationWebapp.wiki

=======================================
--- /wiki/RunningTransitDataFederationWebapp.wiki Sun Nov 28 21:24:02 2010
+++ /wiki/RunningTransitDataFederationWebapp.wiki Sun Feb 19 09:16:19 2012
@@ -1,73 +1,2 @@
-#summary How to run a onebusaway-transit-data-federation-webapp instance
-#labels GettingStarted
-
-= Introduction =
-
-This guide will walk you through how to run a
`onebusaway-transit-data-federation-webapp` instance to serve a transit
data bundle that you previously built, as described in
AdminTransitDataBundle.
-
-
-= Details =
-
- # Make sure you have a Tomcat server instance setup as described in
[SettingUpATomcatServerInEclipse]
- # Create a new server instance named
`onebusaway-transit-data-federation-webapp` and set it up to run on port
9900 (or something that doesn't conflict with an UI webapps you plan on
running)
- # Make sure you've added the `onebusaway-transit-data-federation-webapp`
to the server instance you've created
- # In your `onebusaway-transit-data-federations-webapp` project, create
the following file:
-
-{{{
-src/main/resources/data-sources.xml
-}}}
-
-This is where we will do the bulk of application configuration. Here is
an example `data-sources.xml` file to get you started:
-
-{{{
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
-
- <import
resource="classpath:org/onebusaway/transit_data_federation/application-context-webapp.xml"
/>
-
- <!-- Database Connection Configuration -->
- <bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
- <property name="driverClassName" value="org.hsqldb.jdbcDriver" />
- <property name="url"
value="jdbc:hsqldb:file:${bundlePath}/org_onebusaway_database" />
- <property name="username" value="sa" />
- <property name="password" value="" />
- </bean>
-
- <!-- Mutable Database Info: This is where non-readonly data (such as
real-time data) will be stored -->
- <bean id="mutableDataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
- <property name="driverClassName" value="org.hsqldb.jdbcDriver" />
- <property name="url"
value="jdbc:hsqldb:file:${bundlePath}/org_onebusaway_database_mutable" />
- <property name="username" value="sa" />
- <property name="password" value="" />
- </bean>
-
- <bean id="webappHibernateProperties"
class="org.onebusaway.container.spring.PropertiesBeanPostProcessor">
- <property name="target" value="hibernateProperties" />
- <property name="properties">
- <props>
- <prop
key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</prop>
- </props>
- </property>
- </bean>
-
-</beans>
-}}}
-
- Next, be sure to add a -DbundlePath=path/to/your/transit_data_bundle
define to the Java command that will launch your tomcat instance.
-
-At this point, you can let it rip.
-
-If everything goes correctly, you should see "Hello World" when you
request (update your port appropriately):
-
-http://localhost:9900/onebusaway-transit-data-federation-webapp/
-
-You can also browse to the Hessian service export URL:
-
-http://localhost:9900/onebusaway-transit-data-federation-webapp/remoting/transit-data-service
-
-You should get an error message like "HTTP Status 405 -
HessianServiceExporter only supports POST requests". That's just the
Hessian service saying it doesn't understand your request, but it's useful
to verify that Hessian is in fact listening.
-
-You can take the Hessian service export URL shown and point your UI
modules to your transit data source as described in
[AdminTransitDataServiceConfiguration].
+#labels Deprecated
+Moved to https://github.com/OneBusAway/onebusaway-application-modules/wiki

Reply all
Reply to author
Forward
0 new messages