Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8142393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:48:22+00:00 2026-06-06T12:48:22+00:00

I am in process of implementing a REST API server using Apache CXF JAX-RS

  • 0

I am in process of implementing a REST API server using Apache CXF JAX-RS v(2.30). I am using spring as container. I am thinking of making use of org.apache.cxf.jaxrs.ext.RequestHandler to implement few features like license check, authentication, authorization (All of which has custom code). My idea is to segregate this code in individual implementation classes (implementing RequestHandler) and configure it for a base REST url something like /rest/*. Being new to Apache CXF and JAX-RS, I want to understand following things.

  • Is this approach the right way to implement the features I want to?
  • If yes, then is the order in which the RequestHandlers are declared is the order of their invocation?

For example if in my definition I declare:

<beans>
<jaxrs:server id="abcRestService" address="/rest">
    <jaxrs:serviceBeans>
      <bean class="com.abc.api.rest.service.FooService" />
    </jaxrs:serviceBeans>

    <jaxrs:providers>
      <ref bean="licenseFilter" />
      <ref bean="authorizationFilter" />
    </jaxrs:providers>

</jaxrs:server>

    <bean id="licenseFilter" class="com.abc.api.rest.providers.LicenseValidator">
        <!-- License check bean properties -->
    </bean>

    <bean id="authorizationFilter" class="com.abc.api.rest.providers.AuthorizationFilter">
        <!-- authorization bean properties -->
    </bean>
</beans>

then will the licenseFilter always get invoked before authorizationFilter?

I did not find a mention of invocation ordering of RequestHandlers as well as ResponseHandlers.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T12:48:23+00:00Added an answer on June 6, 2026 at 12:48 pm

    Figured this out.

    It gets invoked in the order of declaration of beans in <jaxrs:providers>. Thus in case mentioned in question, licenseFilter will get invoked before authorizationFilter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the process of implementing a REST service with Spring MVC and Spring
I'm in the process of implementing in-app billing and I'm using the Dungeons app
I am implementing a web server where I need to make the parent process
Hi I am implementing an IM-server-like application in Erlang. I used one agent process
We're currently designing a web api and are in the process of implementing authorization.
Am in the process of implementing a fairly conventional shopping checkout flow. Currently it
I am in the process of implementing jQuery, and taking out Prototype libraries in
I'm implementing a process elevation helper for Windows. It's a program that will run
I'm implementing a php interface to process a .php file containing a bunch of
I'm having some problems implementing an algorithm to read a foreign process' memory. Here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.