Advertisement
Guest User

KonaKart web.xml

a guest
Jul 11th, 2013
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.38 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- KonaKart web.xml file. (c) 2006 DS Data Systems UK Ltd, All rights reserved. -->
  3. <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd"
  5. xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
  6. id="WebApp_KonaKart" version="2.4">
  7.  
  8. <display-name>KonaKart Store-Front Application</display-name>
  9. <filter>
  10. <filter-name>CharacterEncodingFilter</filter-name>
  11. <filter-class>com.konakart.filter.CharacterEncodingFilter</filter-class>
  12. </filter>
  13. <filter-mapping>
  14. <filter-name>CharacterEncodingFilter</filter-name>
  15. <url-pattern>*.action</url-pattern>
  16. </filter-mapping>
  17.  
  18. <filter>
  19. <filter-name>struts2</filter-name>
  20. <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
  21. </filter>
  22. <filter-mapping>
  23. <filter-name>struts2</filter-name>
  24. <url-pattern>*.action</url-pattern>
  25. </filter-mapping>
  26. <listener>
  27. <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
  28. </listener>
  29. <context-param>
  30. <param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
  31. <param-value>/WEB-INF/tiles.xml</param-value>
  32. <!-- <param-value>/WEB-INF/tiles-m.xml</param-value> -->
  33. </context-param>
  34.  
  35. <!-- JBoss
  36. <context-param>
  37. <param-name>resteasy.scan</param-name>
  38. <param-value>false</param-value>
  39. </context-param>
  40. <context-param>
  41. <param-name>resteasy.scan.resources</param-name>
  42. <param-value>false</param-value>
  43. </context-param>
  44. <context-param>
  45. <param-name>resteasy.scan.providers</param-name>
  46. <param-value>false</param-value>
  47. </context-param>
  48. End of JBoss -->
  49.  
  50. <listener>
  51. <listener-class>
  52. org.apache.axis.transport.http.AxisHTTPSessionListener
  53. </listener-class>
  54. </listener>
  55.  
  56. <!-- Used to listen out for Shutdown messages and handle the Shutdown of threads -->
  57. <listener>
  58. <listener-class>
  59. com.konakart.bl.KKServletContextListener
  60. </listener-class>
  61. </listener>
  62.  
  63. <!-- Start a KKAppEngine -->
  64. <servlet>
  65. <description>KonaKart Client Engine Servlet</description>
  66. <servlet-name>KonaKartAppEngineServlet</servlet-name>
  67. <servlet-class>com.konakart.servlet.AppEngServlet</servlet-class>
  68. <init-param>
  69. <param-name>propertiesPath</param-name>
  70. <param-value>konakart.properties</param-value>
  71. </init-param>
  72. <init-param>
  73. <param-name>appPropertiesPath</param-name>
  74. <param-value>konakart_app.properties</param-value>
  75. </init-param>
  76. <init-param>
  77. <param-name>mode</param-name>
  78. <param-value>0</param-value>
  79. </init-param>
  80. <init-param>
  81. <param-name>storeId</param-name>
  82. <param-value>store1</param-value>
  83. </init-param>
  84. <init-param>
  85. <param-name>customersShared</param-name>
  86. <param-value>false</param-value>
  87. </init-param>
  88. <init-param>
  89. <param-name>productsShared</param-name>
  90. <param-value>false</param-value>
  91. </init-param>
  92. <init-param>
  93. <param-name>categoriesShared</param-name>
  94. <param-value>false</param-value>
  95. </init-param>
  96. <init-param>
  97. <param-name>defaultStoreId</param-name>
  98. <param-value>store1</param-value>
  99. </init-param>
  100. <load-on-startup>1</load-on-startup>
  101. </servlet>
  102.  
  103.  
  104. <!-- Servlet for Apache Message Queue
  105.  
  106. Uncomment this if you want to use the Apache MQ
  107.  
  108. ApacheMQ Server parameters:
  109. uri = The broker URI
  110. mqEnabled = Enable (true) or Disable (false) the Apache Message Queue
  111. mqName = A name for this Broker to make it unique
  112. mqAdminUserName = admin username
  113. mqAdminUserPassword = admin password
  114. mqUserUserName = username
  115. mqUserPassword = password
  116. mqKonaKartQStub = users are authorised to use Queue Names starting with this prefix
  117.  
  118. -->
  119.  
  120. <!-- Apache ActiveMQ
  121. <servlet>
  122. <servlet-name>KonaKartMQServlet</servlet-name>
  123. <servlet-class>
  124. com.konakart.mq.KKMQServer
  125. </servlet-class>
  126. <init-param>
  127. <param-name>uri</param-name>
  128. <param-value>tcp://localhost:8791</param-value>
  129. </init-param>
  130. <init-param>
  131. <param-name>mqEnabled</param-name>
  132. <param-value>true</param-value>
  133. </init-param>
  134. <init-param>
  135. <param-name>mqName</param-name>
  136. <param-value>KonaKart.Broker.1</param-value>
  137. </init-param>
  138. <init-param>
  139. <param-name>mqAdminUserName</param-name>
  140. <param-value>kkadmin</param-value>
  141. </init-param>
  142. <init-param>
  143. <param-name>mqAdminUserPassword</param-name>
  144. <param-value>princess</param-value>
  145. </init-param>
  146. <init-param>
  147. <param-name>mqUserUserName</param-name>
  148. <param-value>kkuser</param-value>
  149. </init-param>
  150. <init-param>
  151. <param-name>mqUserPassword</param-name>
  152. <param-value>prince</param-value>
  153. </init-param>
  154. <init-param>
  155. <param-name>mqKonaKartQStub</param-name>
  156. <param-value>KonaKart.</param-value>
  157. </init-param>
  158. <load-on-startup>20</load-on-startup>
  159. </servlet>
  160. End of Apache ActiveMQ -->
  161.  
  162. <!-- Servlet for JSON Engine
  163.  
  164. Uncomment the section below if you want to use the JSON Engine
  165.  
  166. JSON Server parameters:
  167. jsonEnabled = Enable (true) or Disable (false) the JSON server
  168. excludedInterfaces = Comma separated list of KKEngIf interfaces that
  169. are not allowed. If not specified or left empty,
  170. no interfaces are excluded.
  171. includedInterfaces = Comma separated list of KKEngIf interfaces that
  172. are allowed. If not specified or left empty, all
  173. interfaces are allowed.
  174. -->
  175.  
  176. <!-- JSON Server
  177. <servlet>
  178. <servlet-name>KonaKart_JSON_Servlet</servlet-name>
  179. <servlet-class>
  180. com.konakart.json.KKJSONServer
  181. </servlet-class>
  182. <init-param>
  183. <param-name>jsonEnabled</param-name>
  184. <param-value>true</param-value>
  185. </init-param>
  186. <init-param>
  187. <param-name>includedInterfaces</param-name>
  188. <param-value></param-value>
  189. </init-param>
  190. <init-param>
  191. <param-name>excludedInterfaces</param-name>
  192. <param-value></param-value>
  193. </init-param>
  194. <load-on-startup>30</load-on-startup>
  195. </servlet>
  196. End of JSON Server -->
  197.  
  198. <!-- Servlet for JSON Admin
  199.  
  200. Uncomment the section below if you want to use the JSON Admin Servlet
  201.  
  202. When sending these commands the password must match the one defined in the
  203. "password" servlet parameter below.
  204.  
  205. Only enable the JSON Admin server if you need to and if you do, change the
  206. password.
  207.  
  208. JSON Admin commands:
  209. ?cmd=enableJSON&pwd=password
  210. Enables the JSON server
  211. ?cmd=disableJSON&pwd=password
  212. Disables the JSON server
  213. ?cmd=excludeInterfaces&pwd=password&Interfaces=Comma separated list of KKEngIf interfaces
  214. Sets the excludedInterfaces
  215. ?cmd=includeInterfaces&pwd=password&Interfaces=Comma separated list of KKEngIf interfaces
  216. Sets the includedInterfaces
  217. -->
  218.  
  219. <!-- JSON Admin
  220. <servlet>
  221. <servlet-name>KonaKart_JSON_Admin</servlet-name>
  222. <servlet-class>
  223. com.konakart.json.KKJSONServerAdmin
  224. </servlet-class>
  225. <init-param>
  226. <param-name>password</param-name>
  227. <param-value>jason</param-value>
  228. </init-param>
  229. <load-on-startup>29</load-on-startup>
  230. </servlet>
  231. End of JSON Admin -->
  232.  
  233. <!-- Servlet for RMI Server
  234.  
  235. Uncomment this if you want to use RMI
  236.  
  237. RMI Server parameters:
  238. port = The port number where the RMI registry will listen
  239. rmiEnabled = Enable (true) or Disable (false) the RMI interface
  240. -->
  241.  
  242. <!-- RMI Server
  243. <servlet>
  244. <servlet-name>KonakartRMIServlet</servlet-name>
  245. <servlet-class>
  246. com.konakart.rmi.KKRMIServer
  247. </servlet-class>
  248. <init-param>
  249. <param-name>port</param-name>
  250. <param-value>8790</param-value>
  251. </init-param>
  252. <init-param>
  253. <param-name>rmiEnabled</param-name>
  254. <param-value>true</param-value>
  255. </init-param>
  256. <load-on-startup>20</load-on-startup>
  257. </servlet>
  258. End of RMI Server -->
  259.  
  260. <servlet>
  261. <servlet-name>AxisServlet</servlet-name>
  262. <servlet-class>
  263. org.apache.axis.transport.http.AxisServlet
  264. </servlet-class>
  265. </servlet>
  266.  
  267. <!-- Servlet Mapping -->
  268.  
  269. <servlet-mapping>
  270. <servlet-name>AxisServlet</servlet-name>
  271. <url-pattern>/servlet/AxisServlet</url-pattern>
  272. </servlet-mapping>
  273.  
  274. <servlet-mapping>
  275. <servlet-name>AxisServlet</servlet-name>
  276. <url-pattern>/services/*</url-pattern>
  277. </servlet-mapping>
  278.  
  279. <!--
  280. Uncomment the section below if you want to use the JSON Engine
  281. -->
  282. <!-- JSON Server
  283. <servlet-mapping>
  284. <servlet-name>KonaKart_JSON_Servlet</servlet-name>
  285. <url-pattern>/konakartjson</url-pattern>
  286. </servlet-mapping>
  287. End of JSON Server -->
  288.  
  289. <!--
  290. Uncomment the section below if you want to use the JSON Admin Servlet
  291. -->
  292. <!-- JSON Admin
  293. <servlet-mapping>
  294. <servlet-name>KonaKart_JSON_Admin</servlet-name>
  295. <url-pattern>/konakartjsonadmin</url-pattern>
  296. </servlet-mapping>
  297. End of JSON Admin -->
  298.  
  299. <!--
  300. Currently the W3C haven't settled on a media type for WSDL;
  301. http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
  302. for now we go with the basic 'it's XML' response
  303. -->
  304. <mime-mapping>
  305. <extension>wsdl</extension>
  306. <mime-type>text/xml</mime-type>
  307. </mime-mapping>
  308.  
  309. <mime-mapping>
  310. <extension>xsd</extension>
  311. <mime-type>text/xml</mime-type>
  312. </mime-mapping>
  313.  
  314. <!-- Welcome File List -->
  315. <welcome-file-list>
  316. <welcome-file>index.html</welcome-file>
  317. </welcome-file-list>
  318. </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement