Spring proxy self-invocation

Is it Spring proxy self-invocation or Spring proxy inter-object calls – or something completely different? I don’t know but I hope it makes sense to you anyway. Several options for Spring proxy self-invocation https://jira.springsource.org/browse/SPR-8450 and http://stackoverflow.com/questions/5152686/self-injection-with-spring show several options for self-invocation. For details follow the two links. Here’s just the hints: Option a: have the […]

JRebel side effects?

While debugging a Spring/Hibernate-based web application I found this in the logs. Pre-bound JDBC Connection found! HibernateTransactionManager does not support running within DataSourceTransactionManager if told to manage the DataSource itself. It is recommended to use a single HibernateTransactionManager for all transactions on a single DataSource, no matter whether Hibernate or JDBC access. Sounds as something […]

How to add AccessDescisionVoters to AccessDescisionManager in Spring Security

Here’s a pretty neat approach to add AccessDescisionVoters to the default AccessDescisionManager in Spring Security: /** * This BeanPostProcessor adds all {@link AccessDecisionVoter}s that are set with * {@link #setAdditionalAccessDecisionVoters(List)} to beans that are instances of {@link AffirmativeBased}. This is the * default {@link AccessDecisionManager} implementation that the spring security namespace handler creates. * <p> […]

OpenID with Spring Security 3 and Google OpenID

So much information on Spring OpenID is outdated so quickly…Lots of articles and blog entries describe solutions with Spring Security 2.x which is slightly different from 3.x. I recommend sticking with the sample application at http://repo1.maven.org/maven2/org/springframework/security/spring-security-samples-openid/<your_version>/spring-security-samples-openid-<your_version>.war as a reference. Also, I found http://www.packtpub.com/article/opening-up-to-openid-with-spring-security quite helpful. One caveat though is worth mentioning here: the Spring sample […]