JAVA通过Weblogic SAF向远端Queue发送消息

阅读更多
远端的Queue所在的环境:
2 Managed Server 同处一个cluster:
  - Cluster-0
    - Server-0
    - Server-1
  - JMS Server:
    - JMSServer-0  (target) --> Server-0 (filestore0)
    - JMSServer-1  (target) --> Server-1 (filestore1)
  - JMS Module:  (target) --> Cluster-0 , (subdeployment) --> JMSServer-0, JMSServer-1
    - ConnectionFactory-0
    - DistributedQueue-0  (jndi name): DistributedQueue-0.to.sgm
访问URL: t3://10.65.46.93:7003,10.65.46.93:7005

Java :
// private static String CF = "jms_cf";
// private static String QUEUE_NAME = "DistributedQueue-0.to.sgm";
// private static String URL =  "t3://10.65.46.93:7003,10.65.46.93:7005";


在本地(客户端)配置SAF如下:
- Managed Server:  mngsvr
- SAF Agent:  SAFAgent-0 (filestore:FileStore-saf [on mngsvr])
- JMS Module:  (target) --> mngsvr , (subdeployment) --> SAFAgent-0
   - ConnectionFactory-0
- ErrorHandling-0
   - RemoteSAFContext-0 :
   - SAF Imported Destination: SAFImportedDestinations-0
    - SAFQueue-0:

Java:
private static String CF = "ConnectionFactory-0";
private static String QUEUE_NAME = "dlr.saf.aq_loc_to_remote_queue";
private static String URL =  "t3://10.182.211.196:7003";

你可能感兴趣的:(jms,weblogic)