Tuesday, December 9, 2008

How to specify multiple URL pattern for Seam web:context-filter

To specify multiple URL patterns for web context filter in JBoss Seam, in components.xml we specify an entry as below

<web:context-filter regex-url-pattern="/services/*|/testng"/>

Please note that we are using regex-url-pattern. In the above example, CXF (web service) servlet listens at /services/* and a custom servlet (that runs in-container TestNG test cases) listens at /testng.

No comments: