Forums Register Login

Verify if an Interceptor is invoked

+Pie Number of slices to send: Send
I have an interceptor (configured with beans.xml from the following link, IBM Specs) on JAX-RS resource method for checking user entitlements. How can i verify if the interceptor (method annotated with @AroundInvoke) is being invoked?
I know this might not be real question, please suggest if any ideas.
+Pie Number of slices to send: Send
Code the interceptor to do some logging. If all else fails, throw an exception in the Interceptor then it should be prettyy clear if the interceptor is firing or not.
+Pie Number of slices to send: Send
I already have the logging check in my code, i saw the situation like some of developers from my team couldn't even invoke the @AroundInvoke method (and there were no compile or runtime errors). I was checking whether i can verify the call to @AroundInvoke method. My concern is if the interceptor isn't invoked and don't see any errors, i might be allowing the user to access the application without verifying the entitlements.
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 651 times.
Similar Threads
Business method interceptor methods (AroundInvoke methods) invocation order
Setting up interceptors to be invoked after a business method.
Interceptors - more than 1 @AroundInvoke - Multiple @Interceptors declared for a class/method?
Query rgd interceptor invocation order
execAndWait Interface problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:50:21.