Java 企業應用
          不要溫柔的走入那個良夜

          一個RUC應用是運行在WSE Server上的,可以在WSE Console中維護。

          RUC如何被使用?

          RUC向外界暴露三種接口

          1.MDB

          image

          2.WS

          image

           

          laptop-062

              private SampleRemote_SEIProxy getSampleWS() {
                  SampleRemote_SEIProxy rucWS = new SampleRemote_SEIProxy();
                  try {
                      String endpoint = (new URL("http", RUC_SERVER_HOST,
                              RUC_SERVER_PORT,
                              "/ibmse_ruc_sampleRUC_ejbHttpRouter/services/Sample"))
                              .toString();
                      rucWS.setEndpoint(endpoint);
                  } catch (MalformedURLException e) {
                      e.printStackTrace();
                  }
                  return rucWS;
              }

          3.SLSB

           
              private SampleRemote getSampleSLSB() throws NamingException {
                  InitialContext ic = new InitialContext();
                  logText("Looking up ejb/ruc/Sample in InitialContext");
                  SampleRemote ruc = null;
                  Object stub = ic.lookup("ejb/ruc/Sample");
                  if (stub != null) {
                      logText("Found non-null ejb/ruc/Sample in InitialContext");
                      ruc = (SampleRemote) PortableRemoteObject.narrow(stub,
                              SampleRemote.class);
                  } else
                      logText("Could not find ejb/ruc/Sample in InitialContext");
                  return ruc;
              }

           

          RUC如何使用其他的接口?

          它也在使用其他的服務,服務分為兩種,一種是WSE內部的,例如DB。

          另外一種是外部的,如ruc.maximo. 首先,內部的接口比較容易被使用,形成了SLSB,JMS,DB三種最容易的方式。使用外部的服務則麻煩一點,例如ITS或maximo,在Maximo中 ,它具備IFM可以讓其他系統的集成容易一些,通過IFM生成的WSDL,可以在WSE中使用。于是RTAL中,WSE和Maximo的集成是這樣的:WSE中使用一個RUC,RUC調用targetBackend,這個targentBackend就是一系列的WS類。RUC agent通過這個backend模塊,使自己在WSE的其他taskagent看起來就像是內部模塊一樣。

          image

          posted on 2012-10-07 22:19 cpegtop 閱讀(234) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
           
          主站蜘蛛池模板: 资兴市| 巨野县| 肥西县| 永丰县| 上杭县| 沁水县| 瑞金市| 富宁县| 海晏县| 石楼县| 长宁区| 项城市| 邛崃市| 安顺市| 仲巴县| 巴青县| 巴中市| 兴业县| 栾川县| 苏尼特左旗| 资阳市| 无为县| 宝清县| 贡嘎县| 崇仁县| 鹿泉市| 德保县| 安国市| 彝良县| 南皮县| 辉县市| 维西| 永嘉县| 广南县| 密云县| 宁海县| 苍山县| 丹寨县| 墨竹工卡县| 关岭| 龙井市|