EJB2和EJB3的不一样,而且好像和容器提供商也有关,这里给出的是适用于EJB3和JBoss4的:
@MessageDriven(activationConfig = {
@ActivationConfigProperty(
propertyName = "destinationType",
propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(
propertyName = "destination",
propertyValue = "queue/email"),
@ActivationConfigProperty(
propertyName = "maxSession",
propertyValue = "1")})
关键的就是那个maxSession,它控制实例的最大个数。
(Visited 223 times, 1 visits today)
2007年9月17日 at 21:37
老刘,题目中有错字
2007年9月20日 at 08:23
呵呵,你怎么也学小胖的口气啊,我还以为是小胖呢
2007年9月20日 at 14:57
那怎么称呼你呢,难道叫你刘老,或者刘姥姥 :em20: :em20:
2007年9月20日 at 17:38
呵呵,还是叫老刘好了 :em35: