複数の Glassfish 3.1.2.2 インスタンスをリモート管理するために、リソース アダプタ接続プールとコネクタ リソースを構成したいと考えています。これらの設定は、リソース アダプタのデプロイ後にのみ行うことができます。
asadminで何かをすれば、すべてうまくいきます。
REST 経由でのアクセスの取得は期待どおりに機能します。
例:
curl --user admin:pwd -X GET -H "Accept: application/JSON"
http://localhost:4848/management/domain/resources/connector-connection-pool
次に、REST で次のコマンドを使用して接続プールを作成します。
asadmin create-connector-connection-pool --raname MulticastDNS-connector
--connectiondefinition multicastdns.outbound.MulticastDNSRegistry multicastdns/pool
オラクルの例
http://docs.oracle.com/cd/E18930_01/html/821-2416/gjipx.html#gjijxまたは
http://docs.oracle.com/cd/E19798-01/821のいくつかに従いました-1751/gjijx/index.html
しかし、私が試したすべてのことは、400 個の不正な要求を受け取りました。
例:
curl --user admin:pwd -X POST -H "Accept: application/JSON" -H "Content-Type: application/json"
-d '{"id":"multicastdn%2fspool","connectiondefinitionname":"multicastdns.outbound.MulticastDNSRegistry","resourceAdapterName":"MulticastDNS-connector"}'\
http://localhost:4848/management/domain/resources/connector-connection-pool -v
# other check
curl --user admin:pwd -X POST -H "Accept: application/JSON" \
-d id=multicastdns%2fpool \
-d connectiondefinitionname=multicastdns.outbound.MulticastDNSRegistry \
-d resourceAdapterName=MulticastDNS-connector \
http://localhost:4848/management/domain/resources/connector-connection-pool -v
既存のリソースを削除したい場合は、同様の結果になります。
curl --user admin:pwd -X DELETE -H "Accept: application/JSON" \
http://localhost:4848/management/domain/resources/connector-connection-pool/multicastdns%2fpool -v
# other try
curl --user admin:pwd -X DELETE -H "Accept: application/JSON" \
-d id=multicastdns%2fpool \
http://localhost:4848/management/domain/resources/connector-connection-pool -v
コネクタ リソース asadmin create-connector-resource --poolname multicastdns/pool jca/multicastdns を使用して 2 番目の手順を試しても、同じ問題が発生します。
REST 経由の取得は機能しますが、エントリの追加と削除は機能しません。
ありがとうフロリアン