特に Bean で、注釈の使用方法を理解するのに問題があります。
私は1つのコンポーネントを持っています
@Component
public class CommonJMSProducer
そして、それを別のクラスで使用したいのですが、それを使用して一意のオブジェクトを作成できると思いました
public class ArjelMessageSenderThread extends Thread {
@Inject
CommonJMSProducer commonJMSProducer;
ただし、commonJMSProducer は null です。
私の appContext.xml には、次のものがあります。
<context:component-scan base-package="com.carnot.amm" />
ありがとう