Move servlet back to the component
Showing
2 changed files
with
16 additions
and
34 deletions
| ... | @@ -16,8 +16,23 @@ | ... | @@ -16,8 +16,23 @@ |
| 16 | 16 | ||
| 17 | <entity-factory load-path="entity/" /> | 17 | <entity-factory load-path="entity/" /> |
| 18 | <service-factory load-path="service/" /> | 18 | <service-factory load-path="service/" /> |
| 19 | <screen-factory load-path="screen/" /> | ||
| 19 | 20 | ||
| 20 | <!-- Load seed data --> | 21 | <!-- Load seed data --> |
| 21 | <entity-factory load-data="data/McpSecuritySeedData.xml" /> | 22 | <entity-factory load-data="data/McpSecuritySeedData.xml" /> |
| 22 | 23 | ||
| 24 | <!-- Webapp Configuration --> | ||
| 25 | <webapp-list> | ||
| 26 | <webapp name="webroot"> | ||
| 27 | <servlet name="EnhancedMcpServlet" class="org.moqui.mcp.EnhancedMcpServlet" | ||
| 28 | load-on-startup="5" async-supported="true"> | ||
| 29 | <init-param name="keepAliveIntervalSeconds" value="30"/> | ||
| 30 | <init-param name="maxConnections" value="100"/> | ||
| 31 | <url-pattern>/mcp/*</url-pattern> | ||
| 32 | </servlet> | ||
| 33 | </webapp> | ||
| 34 | </webapp-list> | ||
| 35 | |||
| 36 | |||
| 37 | |||
| 23 | </component> | 38 | </component> | ... | ... |
| ... | @@ -19,40 +19,7 @@ | ... | @@ -19,40 +19,7 @@ |
| 19 | http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" | 19 | http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" |
| 20 | version="4.0"> | 20 | version="4.0"> |
| 21 | 21 | ||
| 22 | <!-- Service-Based MCP Servlet Configuration --> | 22 | <!-- MCP Servlet Configuration moved to component.xml webapp-list --> |
| 23 | <servlet> | ||
| 24 | <servlet-name>EnhancedMcpServlet</servlet-name> | ||
| 25 | <servlet-class>org.moqui.mcp.EnhancedMcpServlet</servlet-class> | ||
| 26 | |||
| 27 | <init-param> | ||
| 28 | <param-name>keepAliveIntervalSeconds</param-name> | ||
| 29 | <param-value>30</param-value> | ||
| 30 | </init-param> | ||
| 31 | <init-param> | ||
| 32 | <param-name>maxConnections</param-name> | ||
| 33 | <param-value>100</param-value> | ||
| 34 | </init-param> | ||
| 35 | |||
| 36 | <!-- Enable async support for SSE --> | ||
| 37 | <async-supported>true</async-supported> | ||
| 38 | |||
| 39 | <!-- Load on startup --> | ||
| 40 | <load-on-startup>5</load-on-startup> | ||
| 41 | </servlet> | ||
| 42 | |||
| 43 | <servlet-mapping> | ||
| 44 | <servlet-name>EnhancedMcpServlet</servlet-name> | ||
| 45 | <url-pattern>/mcp/*</url-pattern> | ||
| 46 | </servlet-mapping> | ||
| 47 | |||
| 48 | <!-- Session Configuration --> | ||
| 49 | <session-config> | ||
| 50 | <session-timeout>30</session-timeout> | ||
| 51 | <cookie-config> | ||
| 52 | <http-only>true</http-only> | ||
| 53 | <secure>false</secure> | ||
| 54 | </cookie-config> | ||
| 55 | </session-config> | ||
| 56 | 23 | ||
| 57 | <!-- Security Constraints (optional - uncomment if needed) --> | 24 | <!-- Security Constraints (optional - uncomment if needed) --> |
| 58 | <!-- | 25 | <!-- | ... | ... |
-
Please register or sign in to post a comment