Cosminexus V9 アプリケーションサーバ Cosminexus Reliable Messaging
QueueConnectionFactory(ConnectionFactory)インタフェースは,QueueConnectionオブジェクトを生成するためのファクトリです。JNDIに登録されているQueueConnectionFactoryのJNDI登録名をアプリケーションがlookupすることによってQueueConnectionFactoryオブジェクトを取得します。
createQueueConnection()メソッドを発行することによってQueueConnectionオブジェクトを生成します。
public interface ConnectionFactory { } public interface QueueConnectionFactory extends ConnectionFactory { public QueueConnection createQueueConnection() throws JMSException; public QueueConnection createQueueConnection(java.lang.String userName, java.lang.String password) throws JMSException; }
ありません。
「(2) 形式」に記載した順序で各メソッドを説明します。
public QueueConnection createQueueConnection() throws JMSException
キューコネクションを作成します。QueueConnection.start()メソッドが明示的に発行されるまで,メッセージは配送されません。
例外クラス | 説明 |
---|---|
JMSException | 内部エラーのためにJMSプロバイダがキューコネクションの作成に失敗しました。 |
JMSSecurityException | 無効なユーザ名またはパスワードが指定されたために,JMSクライアント認証が失敗しました。 |
public QueueConnection createQueueConnection( java.lang.String userName, java.lang.String password) throws JMSException
デフォルトのユーザ識別情報を使用してキューコネクションを作成します。QueueConnection.start()メソッドが明示的に発行されるまで,メッセージは配送されません。
引数名 | 説明 |
---|---|
userName | 呼び出し側のユーザ名 |
password | 呼び出し側のパスワード |
例外クラス | 説明 |
---|---|
JMSException | 内部エラーのためにJMSプロバイダがキューコネクションの作成に失敗しました。 |
JMSSecurityException | 無効なユーザ名またはパスワードが指定されたために,JMSクライアント認証が失敗しました。 |
All Rights Reserved. Copyright (C) 2012, 2015, Hitachi, Ltd.