[jboss-dev-forums] [Design of EJB 3.0] - BeanContainer.getAnnotation returning the old value

anil.saldhana@jboss.com do-not-reply at jboss.com
Mon Dec 1 17:31:33 EST 2008


ant -f build-test.xml one-test -Dtest=security5

If you place the break point in BeanContainer->getAnnotation  for method

FirstBean->echo and the annotation  "RolesAllowed",  you will see that it returns a RolesAllowed("Echo")  when it should have been RolesAllowed("InternalRole").  The FirstBean is getting called with a "Echo"  role.  So there is some caching done by getAdvisor() of bean container.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193596#4193596

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193596



More information about the jboss-dev-forums mailing list