public class JndiLookingUpJmsMessagingProvider extends JmsMessagingProvider
ConnectionFactoryおよびQueueをJNDIから取得する
 MessagingProvider実装クラス。JmsMessagingProviderと同様。
 設定例をいかに示す。
 
 
 <!-- メッセージングプロバイダ定義 -->
 <component name="messagingProvider"
          class="nablarch.fw.messaging.provider.JndiLookingUpJmsMessagingProvider">
   <!-- 本クラス独自のプロパティ(JNDI関連)-->
   <!-- JNDIルックアップのための情報 -->
   <property name="jndiHelper">
     <component class="nablarch.core.repository.jndi.JndiHelper">
       <property name="jndiProperties">
         <map>
            <entry key="java.naming.factory.initial" value="weblogic.jndi.WLInitialContextFactory"/>
            <entry key="java.naming.provider.url"    value="t3://weblogic.server.125:7001"/>
         </map>
       </property>
     </component>
   </property>
   <!-- javax.jms.ConnectionFactory実装クラスをルックアップするためのJNDI名 -->
   <property name="connectionFactoryJndiName" value="javax.jms.QueueConnectionFactory"/>
   <!-- FWで使用するキュー論理名と、java.jms.Queue実装クラスをルックアップするためのJNDI名のペア -->
   <property name="destinationNamePairs">
     <map>
       <!-- key=キュー論理名、value=キューJNDI名 -->
       <entry key="TEST.REQUEST"  value="TEST.REQUEST"/>
       <entry key="TEST.RESPONSE" value="TEST.RESPONSE"/>
     </map>
   </property>
   <!-- その他のプロパティは親クラス(JmsMessagingProvider)と同じ -->
 </component>
 
 JndiHelperJmsMessagingProvider.Context| Constructor and Description | 
|---|
JndiLookingUpJmsMessagingProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
MessagingContext | 
createContext()
メッセージングコンテキストを返す。 
 | 
JndiLookingUpJmsMessagingProvider | 
setConnectionFactoryJndiName(java.lang.String connectionFactoryJndiName)
ConnectionFactoryをJNDIから取得するためのJNDI名を設定する。 | 
JndiLookingUpJmsMessagingProvider | 
setDestinationNamePairs(java.util.Map<java.lang.String,java.lang.String> pairs)
key=キュー論理名、value=キューJNDI名をペアにしたMapを設定する。 
このMapは、 QueueをJNDIから取得する際に使用される。
 value(キューJNDI名)からQueueがルックアップされ、
 key(キュー論理名)と紐付けられて、JmsMessagingProviderに設定される。 | 
JndiLookingUpJmsMessagingProvider | 
setJndiHelper(JndiHelper jndiHelper)
JNDIサポートクラスを設定する。 
 | 
getConnectionFactory, setConnectionFactory, setDefaultPoisonQueue, setDefaultResponseTimeout, setDefaultTimeToLive, setDestinations, setMessagingExceptionFactory, setPoisonQueueNamePattern, setRedeliveryLimitpublic MessagingContext createContext()
createContext in interface MessagingProvidercreateContext in class JmsMessagingProviderpublic JndiLookingUpJmsMessagingProvider setJndiHelper(JndiHelper jndiHelper)
jndiHelper - JNDIサポートクラスpublic JndiLookingUpJmsMessagingProvider setDestinationNamePairs(java.util.Map<java.lang.String,java.lang.String> pairs)
QueueをJNDIから取得する際に使用される。
 value(キューJNDI名)からQueueがルックアップされ、
 key(キュー論理名)と紐付けられて、JmsMessagingProviderに設定される。pairs - key=キュー論理名、value=キューJNDI名をペアにしたMappublic JndiLookingUpJmsMessagingProvider setConnectionFactoryJndiName(java.lang.String connectionFactoryJndiName)
ConnectionFactoryをJNDIから取得するためのJNDI名を設定する。connectionFactoryJndiName - ConnectionFactoryのJNDI名