File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes A simple try on IntroductionInterceptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "A simple try on IntroductionInterceptor" Watch "A simple try on IntroductionInterceptor" New topic

A simple try on IntroductionInterceptor

Bang Nguyen

Joined: Feb 03, 2009
Posts: 15
Hi, I've started experimenting Spring just for sometimes. Recently I got a strange case with IntroductionInterceptor. I don't know it's my understanding problem or the way I configured the framework was wrong.

Main Idea: I wanted to implement a greeting service which has the method sayGreeting(). Then I added an Introduction Interceptor to control if people can use that service or not.

so as you can see I called the lock() method on the lockMixin but the method was still running smoothly without throwing any RuntimeException.

This is my configuration of hello.xml:

Please pay attention to the bold parts with singleton="true"! I want to try that so I can retrieve back the bean for lockMixin and call the method lock() on it!

Please help me out!
Bang Nguyen

Joined: Feb 03, 2009
Posts: 15
Really appreciate your time if anyone can help me on this! Thank very much!
I agree. Here's the link:
subject: A simple try on IntroductionInterceptor
jQuery in Action, 3rd edition