by zvika
tags:
border:

Recently I had to find a solution for mocking arbitrary-depth-level beans in Spring tests; when saying "arbitrary-depth-level beans" I mean a situation where, for example, I have the following Autowiring Chain:

 

Test Class -> ServiceA -> ConnectorFactoryBean(Singleton) -> ConnectorBean (Prototype) -> ConnnectionFactory(Singleton) -> Connection (Prototype).

 

by zvika
tags:
border:

Hi,


It has been a great meeting today in Park Hayarkon today, I hope you guys had as much fun as I did!

 

If you have other user-experiences or best practices, please share them on the comment section...


by zvika
border:

While consulting at one of our clients, I was asked to configure a Spring environment serving a Flex application with multiple Session Factories needed for accessing the old and new generations of the application (due to a heavy migration process).

by shalom
tags:
border:

Anyone knows a way to make PropertyPlaceholderConfigurer ignore missing properties and not call the setter method at all?
for example:

by itaip
border:

 I have a Spring application that expose Rest API (implements with RestEasy) that deploy on JBoss, The client want to add security - implement by OAuth framework.

 

Does any one have experience with this type of configuration? 

by itaip
border:

 I have a Spring application that expose Rest API (implements with RestEasy) that deploy on JBoss, The client want to add security - implement by OAuth framework.

 

Does any one have experience with this type of configuration? 

by itaip
border:

 SLF4J is a cleaner dependency and more efficient at runtime than commons-logging because it uses

compile-time bindings instead of runtime discovery of the other logging frameworks it integrates.

 

So to use SLF4J with Spring you need to replace the commons-logging dependency with the SLF4J-JCL bridge in all the Spring jars that it appear. Once you have done that then logging calls from within Spring will be translated into logging calls to the SLF4J API

 

pom.xml example:

 

by adi
border:
by itaip
border:

Kauklahti is an open source tool aiming to keep ORM simple. It integrates with Spring JdbcTemplate and works like BeanPropertyRowMapper. But it also supports table joining and full CRUD generation.

by shalom
border:

Hi

i have a UserDao interface that extends BaseDao and the implementation class is UserDaoHibernate defined as a spring bean.

I'm trying to intercept all kind of delete methods, some are declared in BaseDao, deleteById for example , and some are declared in UserDao, deleteByLogin for example.

using spring aop i can't figure out the pointcut to use:

Pages