On Oct 24, 2008, at 9:17 AM, Heimo Laukkanen wrote:

> Hi all,
>
> I just noticed that Quercus does not seem to work with Spring's proxy
> objects that get created for example with annotation based
> configurations for security or transactions.
>
> @Transactional
> @Secured({"ROLE_ADMIN", "ACL_TEXT_READ"})
> public String getText() {
>
> }
>
> And in php page:
>
> $bean = spring_bean("userDemoService");
> $foo = $bean->getText();
>
> Creates error message:
>
> resource([EMAIL PROTECTED])
> /home/huima/programming/appservers/resin/resin-3.1.7/webapps/webapp/ 
> phptest.php:8:
> Fatal Error: '$Proxy15::getText' is an unknown method
>
> Any ideas on how to circumvent this?

Do you know if the proxy object is introspectable, specifically if you  
can use getClass().getMethod() to find the method?

It's possible Quercus needs to change the introspection (e.g. by  
scanning interfaces differently), but I'm not sure what exactly Spring  
is doing for those beans.

-- Scott
>
>
> I already thought about creating a dummy service that would get that
> the real service injected into it, but I'm not yet so familiar with
> the AOP mechanisms that I would what class these proxy objects are and
> how to inject them into my own object. I will study that little during
> the weekend, but would be interested to know if anyone else has any
> ideas.
>
> -huima
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to