Results 1 to 1 of 1

Thread: One spring bean initialized 2 times when start the jboss, but 1 time when publish

  1. #1
    Join Date
    Jun 2012
    Posts
    4

    Default 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •