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?