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

          主站蜘蛛池模板: 县级市| 建瓯市| 嘉定区| 竹溪县| 虹口区| 克拉玛依市| 宣汉县| 敖汉旗| 鄢陵县| 湘阴县| 慈利县| 榕江县| 尉犁县| 海丰县| 光山县| 宣城市| 石台县| 凤台县| 拜泉县| 扬中市| 长子县| 大渡口区| 济阳县| 呼伦贝尔市| 饶阳县| 通许县| 客服| 龙岩市| 临夏县| 乌审旗| 岳阳市| 八宿县| 东海县| 观塘区| 土默特右旗| 梁山县| 河池市| 肇庆市| 贺州市| 方城县| 开封县|