Why the Scope type of RabbitTemplate is SCOPE_PROTOTYPE

Why must the Scope type of RabbitTemplate be SCOPE_PROTOTYPE?

Nov.24,2021

does not have to be prototype. RabbitTemplate is thread safe, mainly because channel cannot be shared, but channel is threadlocal in rabbitTemplate source code, so singleton is fine. However, if rabbitTemplate wants to set a callback class, there can only be one callback class if it is singleton, so if you want to set a different callback class, set it to scope of prototype.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be6f82-13d7f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be6f82-13d7f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?