Ordinary hut

          人間一福地,勝似天仙宮
          posts - 61, comments - 50, trackbacks - 0, articles - 1

          導航

          <2010年1月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          文章分類

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          weblogic集群中獲取jndi的方式

          Posted on 2010-01-20 21:25 landor 閱讀(1076) 評論(0)  編輯  收藏 所屬分類: weblogic
          在非集群中,也就是單server的時候采用的是如下方式:
          Hashtable ht = new Hashtable();
          ht.put(Context.INITIAL_CONTEXT_FACTORY,
          "weblogic.jndi.WLInitialContextFactory");
          ht.put(Context.PROVIDER_URL,
          "t3://localhost:7001");
          ......
          但是在集群環境中,如何配置?
          參照weblogic文檔
          http://download.oracle.com/docs/cd/E15051_01/wls/docs103/jndi/jndi.html#wp467605
          知道可以這么設置
          # The following example specifies a list of WebLogic Servers using the same port:
          ht.put(Context.PROVIDER_URL,
          "t3://acme1,acme2,acme3:7001");

          All the WebLogic Servers listen on the port specified at the end of the URL.
          # The following example specifies a list of WebLogic Servers using the different ports:
          ht.put(Context.PROVIDER_URL,
          "t3://node1:7001,node2:7002,node3:7003");
          端口相同的話,可以省略端口,放到最后面寫,端口不同就都寫上
          這樣weblogic會自動尋找相應的jndi

          主站蜘蛛池模板: 阿鲁科尔沁旗| 邳州市| 兴隆县| 开封县| 济阳县| 任丘市| 蒙阴县| 小金县| 汝州市| 南充市| 苗栗市| 三河市| 建阳市| 陆河县| 汝州市| 彭泽县| 禹州市| 东至县| 长垣县| 古蔺县| 常宁市| 天等县| 宿迁市| 壶关县| 绿春县| 都昌县| 霍林郭勒市| 维西| 峨眉山市| 克山县| 绿春县| 海伦市| 兴文县| 永泰县| 遵义市| 宜川县| 收藏| 涿州市| 建瓯市| 郎溪县| 鹤峰县|