2014-09-25 44 views
0

我得到以下警告開始的Jboss 6.當未解決的引用在JBoss中存在元數據

WARN [MappedReferenceMetaDataResolverDeployer]在JBossMetaData存在未解決的引用: [myEJB.jar#GenDriver:MessageDestinationReferenceMetaData {名稱=隊列/發電機,類型= javax.jms.Queue,link = null,ignore-dependecy = false,jndi-name = null,resolvoed-jndi-name = null,usage = null}]

與此相關的ejb-jar.xml條目是:

<session> 
      <ejb-name>GeneratorBean</ejb-name> 
      <ejb-classgen.bean.GeneratorBean</ejb-class> 
      <resource-ref> 
       <res-ref-name>jms/JmsXA</res-ref-name> 
       <res-type>javax.jms.ConnectionFactory</res-type> 
      </resource-ref> 
      <message-destination-ref> 
       <message-destination-ref-name>queue/generator</message-destination-ref-name> 
       <message-destination-type>javax.jms.Queue</message-destination-type> 
      </message-destination-ref> 
     </session> 

<message-driven> 
      <ejb-name>GenDriver</ejb-name> 
      <ejb-class>gen.bean.GenDriver</ejb-class> 
      <transaction-type>Container</transaction-type> 
      <message-destination-type>javax.jms.Queue</message-destination-type> 

      <activation-config> 
       <activation-config-property> 
        <activation-config-property-name>user</activation-config-property-name> 
        <activation-config-property-value>gen</activation-config-property-value> 
       </activation-config-property> 
       <activation-config-property> 
        <activation-config-property-name>password</activation-config-property-name> 
        <activation-config-property-value>gen</activation-config-property-value> 
       </activation-config-property> 
       <activation-config-property> 
        <activation-config-property-name>maxSession</activation-config-property-name> 
        <activation-config-property-value>1</activation-config-property-value> 
       </activation-config-property> 
       <activation-config-property> 
        <activation-config-property-name>dLQJNDIName</activation-config-property-name> 
        <activation-config-property-value>java:/queue/generatorDLQ</activation-config-property-value> 
       </activation-config-property> 
       <activation-config-property> 
        <activation-config-property-name>dLQUser</activation-config-property-name> 
        <activation-config-property-value>gen</activation-config-property-value> 
       </activation-config-property> 
       <activation-config-property> 
        <activation-config-property-name>dLQPassword</activation-config-property-name> 
        <activation-config-property-value>gen</activation-config-property-value> 
       </activation-config-property> 
      </activation-config> 

      <resource-ref> 
       <res-ref-name>jms/JmsXA</res-ref-name> 
       <res-type>javax.jms.ConnectionFactory</res-type> 
      </resource-ref> 
<message-destination-ref> 
       <message-destination-ref-name>queue/generator</message-destination-ref-name> 
       <message-destination-type>javax.jms.Queue</message-destination-type> 
      </message-destination-ref> 
     </message-driven> 

Anyb ody請建議是什麼導致此警告?

回答

0

當Bean正在使用其他未部署的Bean時,會發生此警告。例如,如果您有兩個bean A和B,並且您在Bean A中提供了Bean B的引用,那麼當Jboss嘗試部署Bean A時,它將搜索Bean B,並且如果Bean B未找到,則會顯示此警告。 您可以忽略此警告。當部署完成並且實際調用Bean A時,它將再次搜索Bean B.

相關問題