Skip to content

Commit

Permalink
Update web.xml init TimeSource singleton first and added CARMA Cloud …
Browse files Browse the repository at this point in the history
…simulation id
  • Loading branch information
kruegersp authored May 15, 2024
1 parent ced9ff0 commit 2937c05
Showing 1 changed file with 31 additions and 25 deletions.
56 changes: 31 additions & 25 deletions web/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,37 @@
</servlet-mapping>


<servlet>
<servlet-name>SimFederate</servlet-name>
<servlet-class>cc.ws.SimFederate</servlet-class>

<init-param>
<description>OPTIONAL: Network address for simulation ambassador. Leave undefined for normal time operation.</description>
<param-name>ambassador</param-name>
<param-value>ambassador-address</param-value>
</init-param>

<init-param>
<description>REQUIRED: Required when ambassador address is defined. Simulation identifier for this CARMA Cloud instance.</description>
<param-name>id</param-name>
<param-value>simulation-id</param-value>
</init-param>

<init-param>
<description>REQUIRED: Required when ambassador address is defined. URL where ambassador sends time sync messages.</description>
<param-name>url</param-name>
<param-value>simulation-url</param-value>
</init-param>

<load-on-startup>-1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>SimFederate</servlet-name>
<url-pattern>/carmacloud/simulation/*</url-pattern>
</servlet-mapping>


<servlet>
<servlet-name>SessMgr</servlet-name>
<servlet-class>cc.ws.SessMgr</servlet-class>
Expand Down Expand Up @@ -305,29 +336,4 @@
<url-pattern>/carmacloud/rsu/*</url-pattern>
</servlet-mapping>


<servlet>
<servlet-name>SimFederate</servlet-name>
<servlet-class>cc.ws.SimFederate</servlet-class>

<init-param>
<description>OPTIONAL: Network address for simulation ambassador. Leave undefined for normal time operation.</description>
<param-name>ambassador</param-name>
<param-value>ambassador-address</param-value>
</init-param>

<init-param>
<description>REQUIRED: Only needed if ambassador address is defined. URL where ambassador sends time sync messages.</description>
<param-name>url</param-name>
<param-value>simulation-url</param-value>
</init-param>

<load-on-startup>3</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>SimFederate</servlet-name>
<url-pattern>/carmacloud/simulation/*</url-pattern>
</servlet-mapping>

</web-app>

0 comments on commit 2937c05

Please sign in to comment.