Thanks Matt,

Any suggestion about this?

Best regards,

Sergio

-----Mensaje original-----
De: Matt Franklin [mailto:[email protected]] 
Enviado el: martes, 18 de marzo de 2014 19:24
Para: [email protected]
Asunto: Re: Intercept Opensocial REST call with AspectJ

That service only exists in the opensocial provider and therefore only runs
within shindig.  If you are trying to create a join point from within the
Rave war that class doesn't exist.


On Mon, Feb 24, 2014 at 6:36 AM, Sergio Rivero <
[email protected]> wrote:

> Hi all!
>
>
>
> I'm working with Apache Rave archetype (v 0.23) and I need use AspectJ 
> to intercept a REST call (osapi.activities.create) in the server side 
> and change the "viewerID".
>
>
>
> First of all, I'm trying to intercept the Java method that create the 
> ActivityStream and print a message, I think that the method is
>
> "org.apache.rave.opensocial.service.impl.DefaultActivityStreamsService
> .creat
> e(..)". I use this Aspect:
>
>
>
>        @Before("execution(*
>
> org.apache.rave.opensocial.service.impl.DefaultActivityStreamsService.
> create
> (..))")
>
>        public void doBefore(JoinPoint joinPoint) {
>
>              System.out.println("I'm an Aspect!");
>
>        }
>
>
>
>
>
> But I get an exception when I run Apache Rave:
>
>
>
> Initialization of bean failed; nested exception is
> java.lang.IllegalArgumentException: warning no match for this type name:
> org.apache.rave.opensocial.service.impl.DefaultActivityStreamsService
> [Xlint: invalidAbsoluteTypeName]
>
>
>
> Somebody has tried to do something this?
>
>
>
> Best regards,
>
>
>
>
>
> Sergio
>
>
>
>

Reply via email to