Skip to content

Commit

Permalink
Adding all servlets for all services
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashi1993 committed Oct 28, 2024
1 parent eab9599 commit 3282706
Showing 1 changed file with 92 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
<display-name>Financial-Services</display-name>

<servlet>
<servlet-name>JAXServlet</servlet-name>
<display-name>JAX-WS/JAX-RS Servlet</display-name>
<description>JAX-WS/JAX-RS Endpoint</description>
<servlet-name>AccountServiceJAXServlet</servlet-name>
<display-name>AccountService JAX-WS/JAX-RS Servlet</display-name>
<description>AccountService JAX-WS/JAX-RS Endpoint</description>
<servlet-class>
org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
</servlet-class>
Expand All @@ -48,16 +48,101 @@
org.wso2.financial.services.accelerator.demo.backend.services.AccountService
</param-value>
</init-param>
</servlet>

<servlet>
<servlet-name>PaymentServiceJAXServlet</servlet-name>
<display-name>PaymentService JAX-WS/JAX-RS Servlet</display-name>
<description>PaymentService JAX-WS/JAX-RS Endpoint</description>
<servlet-class>
org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
</servlet-class>
<init-param>
<param-name>service-list-stylesheet</param-name>
<param-value>servicelist.css</param-value>
</init-param>
<init-param>
<param-name>jaxrs.address</param-name>
<param-value>/accounts</param-value>
<param-name>jersey.config.server.provider.classnames</param-name>
<param-value>org.glassfish.jersey.media.multipart.MultiPartFeature</param-value>
</init-param>

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

<init-param>
<param-name>jaxrs.serviceClasses</param-name>
<param-value>
org.wso2.financial.services.accelerator.demo.backend.services.PaymentService
</param-value>
</init-param>
</servlet>

<servlet>
<servlet-name>VrpServiceJAXServlet</servlet-name>
<display-name>VrpService JAX-WS/JAX-RS Servlet</display-name>
<description>VrpService JAX-WS/JAX-RS Endpoint</description>
<servlet-class>
org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
</servlet-class>
<init-param>
<param-name>service-list-stylesheet</param-name>
<param-value>servicelist.css</param-value>
</init-param>
<init-param>
<param-name>jersey.config.server.provider.classnames</param-name>
<param-value>org.glassfish.jersey.media.multipart.MultiPartFeature</param-value>
</init-param>

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

<init-param>
<param-name>jaxrs.serviceClasses</param-name>
<param-value>
org.wso2.financial.services.accelerator.demo.backend.services.VrpService
</param-value>
</init-param>
</servlet>

<servlet>
<servlet-name>FundsConfirmationServiceJAXServlet</servlet-name>
<display-name>FundsConfirmationService JAX-WS/JAX-RS Servlet</display-name>
<description>FundsConfirmationService JAX-WS/JAX-RS Endpoint</description>
<servlet-class>
org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
</servlet-class>
<init-param>
<param-name>service-list-stylesheet</param-name>
<param-value>servicelist.css</param-value>
</init-param>
<init-param>
<param-name>jersey.config.server.provider.classnames</param-name>
<param-value>org.glassfish.jersey.media.multipart.MultiPartFeature</param-value>
</init-param>

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

<init-param>
<param-name>jaxrs.serviceClasses</param-name>
<param-value>
org.wso2.financial.services.accelerator.demo.backend.services.FundsConfirmationService
</param-value>
</init-param>
</servlet>

<servlet-mapping>
<servlet-name>AccountServiceJAXServlet</servlet-name>
<url-pattern>/services/accounts/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>PaymentServiceJAXServlet</servlet-name>
<url-pattern>/services/payments/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>VrpServiceJAXServlet</servlet-name>
<url-pattern>/services/domestic-vrps/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>JAXServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
<servlet-name>FundsConfirmationServiceJAXServlet</servlet-name>
<url-pattern>/services/fundsConfirmation/*</url-pattern>
</servlet-mapping>

<session-config>
Expand Down

0 comments on commit 3282706

Please sign in to comment.