[Red5] Spring AOP and application methods

Daniel Rossi spam at electroteque.org
Tue Nov 6 04:15:08 PST 2007


Ive recovered my logging took me forever calling it directly from the  
adaptor is fine

<aop:after-returning
				pointcut="execution(*  
org.red5.server.adapter.MultiThreadedApplicationAdapter.streamSubscriber 
Close(org.red5.server.api.stream.ISubscriberStream)) and args 
(stream)"				
				method="streamComplete"
			  arg-names="stream"
			/>

Now have to get this to work not sure which class is actually calling it

<aop:around
				pointcut="execution(*
				addChildScope(org.red5.server.api.IBasicScope)) and args(scope)"
				method="checkScope"
				arg-names="scope"
			/>

ERROR o.red5.server.net.rtmp.RTMPHandler - Error connecting
java.lang.IllegalStateException: Required to bind 1 arguments, but  
only bound 0 (JoinPointMatch was NOT bound in invocation)

Sorry to spam so yes very dangerous. Should I get the logging code  
together and put in a request to add a bean service for making your  
own logging implementation ?  like my previous setup which was  
calling methods on a bean implementing a certain interface like  
filenamegenerator. This makes it simpler to setup a "plugin" for  
logging like with the wowza xml configuration setup.

On 06/11/2007, at 11:03 PM, Daniel Rossi wrote:

> Has there happened to be any changes to the api lately ?
>
> this used to work
>
> 	<aop:before
> 				pointcut="execution(*  
> org.red5.server.api.stream.IStreamAwareScopeHandler.streamSubscriberCl 
> ose(org.red5.server.api.stream.ISubscriberStream)) and args 
> (stream)"				
> 				method="streamComplete"
> 			  arg-names="stream"
> 			/>
>
> I now have to reference the application adaptor directly instead of  
> the api maybe its trying to call a few times ?
>
>  ERROR o.r.s.s.PlaylistSubscriberStream - error notify  
> streamSubscriberClose
> java.lang.IllegalStateException: No MethodInvocation found: Check  
> that an AOP invocation is in progress, and that the  
> ExposeInvocationInterceptor is in the interceptor chain.
>
> Seems its an issue inside playlistsubscriberstream which calls the  
> api method ?
>
>
> On 06/11/2007, at 10:09 PM, Daniel Rossi wrote:
>
>> Yes i know it was either after i just ran an svn update or after
>> clearing the libs trying to get things back. How do i commit what i
>> have with this access logging into a sandbox branch ?
>>
>> Let me know thanks.
>>
>> On 06/11/2007, at 9:16 PM, Edward Yakop wrote:
>>
>>> On Nov 6, 2007 11:01 AM, Daniel Rossi <spam at electroteque.org> wrote:
>>>> Might have to go back to square one on this aop stuff, suddently
>>>> without warning its decided to break :)
>>>
>>> Ouch. That's the problem with AOP :) I think if it's a red5 feature,
>>> Red5 developer can maintain it. Hence, lesser chance for it to  
>>> break.
>>>
>>> Regards,
>>> Edward Yakop
>>>
>>> _______________________________________________
>>> Red5 mailing list
>>> Red5 at osflash.org
>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20071106/2c2787ae/attachment.html 


More information about the Red5 mailing list