views:

10

answers:

1

Wondering why we need to share spring beans in case if there are no static data inside?

A: 

I think you need to share the ApplicationContext - it holds the bean instances and definitions needed. The beans themselves aren't useful (from dependency-injection perspective) without their context.

Bozho