Aug 14th, 2012, 09:26 PM
One spring bean initialized 2 times when start the jboss, but 1 time when publish
I am using STS and JBoss.
Have a strange problem since this week Monday. It works fine before.
One spring service bean (@Service) will be autowired in another bean.
When start the jboss, find the bean is initialized 2 times.
When just publish, the bean is initialized 1 time only.
I have a transactional method in the bean with @Transactional.
After start the jboss, the transactional works.
But if publish, the transactional does not works.
Anyone has ever experience this? What's the possible reason?
Some questions can be raised.
In which situation or senario the bean could be initialized 2 times automatically?
Why Spring @Transactional dose not work?
Last edited by PeterSaw; Aug 15th, 2012 at 12:37 AM.
Tags for this Thread