Announcement Announcement Module
Collapse
No announcement yet.
One spring bean initialized 2 times when start the jboss, but 1 time when publish Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 12:37 AM.
Working...
X