dev@jax-ws.java.net

JAXWS Interceptor Question

From: kevinridge <kevinridge_at_gmail.com>
Date: Mon, 26 Jul 2010 18:35:30 -0700 (PDT)

Hello,
I am building a jaxws service on spring framework. I have a service that
basically does the following:

@HasGroup("admin")
public String test() {
   return "testing";
}

The @HasGroup is a custom annotation that basically restricts access to this
service unless the user has that group. I want to do validation before i
actually hit the service so the ideal place would be in the in interceptors.
My question is what phase would i do this in and how would i get the class
and method out of the interceptor so i can check if the method that needs to
be called has the annotation?

I just started learning spring / jaxws so if there is any other better
method of doing this, please let me know. I just wanna be able to validate
the user before i actually get to the service so that i dont have to check
in each method.

Thanks!
-- 
View this message in context: http://old.nabble.com/JAXWS-Interceptor-Question-tp29272282p29272282.html
Sent from the JAX-WS Development mailing list archive at Nabble.com.