远端的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 : <url: t3://10.65.46.93:7003,10.65.46.93:7005>
- SAF Imported Destination: SAFImportedDestinations-0 <jndi prefix: dlr.saf.aq_ >
- SAFQueue-0: <remote jndi: DistributedQueue-0.to.sgm> <local jndi:loc_to_remote_queue >
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";
JAVA通过Weblogic SAF向远端Queue发送消息
猜你喜欢
转载自dongdong205-yahoo-com-cn.iteye.com/blog/2400308
今日推荐
周排行