Spring 3.0 lazy-init not honoured for DefaultMessageListenerContainer?

后端 未结 2 1349
自闭症患者
自闭症患者 2021-01-21 01:09

I\'ve setup a spring config for JMS. Things work fine, except I can\'t seem to get it to lazy load (notice the default-lazy-init true in the code below). If I comment out the jm

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-21 02:09

    The solution is to use autoStartup to false. See the code below.

    
         ........
        
    
    

    ~Shyam

提交回复
热议问题