dev@jax-ws.java.net

RE: JAXWS Interceptor Question

From: Karl Jóhann Pálsson <karlp_at_vodafone.is>
Date: Tue, 27 Jul 2010 09:59:32 +0000

Is there any particularly strong reason to not just use spring-security and be finished?

Cheers,
Karl P

-----Original Message-----
From: kevinridge [mailto:kevinridge_at_gmail.com]
Sent: Tuesday, July 27, 2010 1:36 AM
To: dev_at_jax-ws.dev.java.net
Subject: JAXWS Interceptor Question


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.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_jax-ws.dev.java.net
For additional commands, e-mail: dev-help_at_jax-ws.dev.java.net