簡體   English   中英

EJB 3 JMS配置加載異常|| 是7

[英]EJB 3 JMS Configuration loading Exception || WAS 7

我已經在這里為IBM Webs成功配置了JMS主題和隊列。

我使用JMS主題的方式是,偵聽器類是所有子類的基礎。 如以下方式:

public class Base implements MessageListener {
  public void onMessage(javax.jms.Message message) { } }

@MessageDriven(activationConfig={
@ActivationConfigProperty(propertyName="messagingType",propertyValue="javax.jms.MessageListener"),
@ActivationConfigProperty(propertyName="destinationType",propertyValue="javax.jms.Topic"),
@ActivationConfigProperty(propertyName="destination",propertyValue="topic/Test"),
@ActivationConfigProperty(propertyName="messageSelector",propertyValue="RECIPIENT='TestR'")},messageListenerInterface=MessageListener.class)

public class TopicSubScriber extends Base {    

}

我收到以下錯誤:

the class contains the @MessageDriven annotation but is not a valid
  message-driven bean: no message listener interface can be determined

注意:這兩個類位於不同的模塊中。

似乎它沒有加載Base類。 有任何想法嗎?

我還遵循IBM Web sphere修訂包7進行了應用,但沒有成功。.http://www-01.ibm.com/support/docview.wss?uid =swg1PM70521

問題也可以通過在TopicSubScriper上實現MessageListener來解決(即使超類得到了它也是如此)。.由於此解決方案沒有虛構的影響,所以我很高興:)

非常感謝SiB和Aviram Segal的幫助。

在IBM Websphere的類似主題中,答案是

回答

忽略此錯誤消息,因為沒有功能影響。

Java EE教程

建議( 但不是必需)消息驅動的Bean類針對其支持的消息類型實現消息偵聽器接口。 支持JMS API的bean實現javax.jms.MessageListener接口

仍然,如果您想避免出現錯誤消息,我覺得您可以嘗試在TopicSubScriperimplements MessageListener

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM