jinfeng_wang

          G-G-S,D-D-U!

          BlogJava 首頁 新隨筆 聯(lián)系 聚合 管理
            400 Posts :: 0 Stories :: 296 Comments :: 0 Trackbacks
          refer : http://www.aygfsteel.com/jinfeng_wang/archive/2009/05/26/277988.html

          1) edit the ubbconfig file:
               

          *RESOURCES
          IPCKEY          
          69345

          #Example:
          #IPCKEY         
          123456

          DOMAINID        simpapp
          MASTER          simple
          MAXACCESSERS    100

          MAXSERVERS      20
          MAXSERVICES     40
          MODEL           SHM
          LDBAL           N

          *MACHINES
          DEFAULT:
                          APPDIR
          ="/home/test/atmi"
                          TUXCONFIG
          ="/home/test/atmi/tuxconfig"
                          TUXDIR
          ="/home/oracle/tuxedo10gR3"
          #Example:
          #               APPDIR
          ="/home/me/simpapp"
          #               TUXCONFIG
          ="/home/me/simpapp/tuxconfig"
          #               TUXDIR
          ="/usr/tuxedo"

          rhelserver      LMID
          =simple

          MAXWSCLIENTS
          =50

          *GROUPS
          GROUP1  LMID
          =simple     GRPNO=1 OPENINFO=NONE
          WSGRP   LMID
          =simple     GRPNO=2
          JSLGRP  LMID
          =simple     GRPNO=100
          JREPGRP LMID
          =simple     GRPNO=101




          *SERVERS
          DEFAULT:
                          CLOPT
          ="-A"

          simpserv        SRVGRP
          =GROUP1 SRVID=1
          WSL             SRVGRP
          =WSGRP SRVID=10 RESTART=Y MAXGEN=10 GRACE=3600 CLOPT="-A -- -n//192.168.247.129:7110   -m 5 -M 10 -x 5"
          JSL             SRVGRP=JSLGRP  SRVID=100 CLOPT="-A -- -n //192.168.247.129:9110 -m 3 -M 10 -x5"
          JREPSVR         SRVGRP=JREPGRP SRVID=101 CLOPT="-A  --   -W -P /home/oracle/tuxedo10gR3/udataobj/jolt/repository/jrepository"





          *SERVICES
          TOUPPER

             now ,you must compile the ubbconfig file , and boot youre tuxedo server. 
              $ tmloadcf   ubbsimple
              $ tmboot

          2)edit the  jolt respository file:
               a) edit and save simpapp.rep: (YOUR MUST REMVE ALL THE BLANKS IN THE HEAD AND TAIL OF THE LINE.)
                   
          service=TOUPPER
          inbuf
          =STRING
          outbuf
          =STRING
          export
          =true
          param
          =STRING
          type
          =string
          access
          =inout

             b) config the JAVA's CLASSPATH and run jbld command and import the simpapp.rep to jolt respository
                $ export  CLASSPATH=.:/home/oracle/jrockit_160_05/lib/dt.jar:/home/oracle/jrockit_160_05/lib/tools.jar:/home/oracle/tuxedo10gR3/
          udataobj/jolt/jolt.jar:/home/oracle/tuxedo10gR3/udataobj/jolt/joltadmin.jar 
                $ java bea.jolt.admin.jbld -p SIMPSERV //192.168.247.129:9110  simpapp.rep


          3)   write your java code in your client. certarnly, you must config your classpath.
              
           1import bea.jolt.JoltRemoteService;
           2import bea.jolt.JoltSession;
           3import bea.jolt.JoltSessionAttributes;
           4
           5public class Test {
           6    public static void main(String[] args) {
           7
           8        JoltSession session;
           9        JoltSessionAttributes sattr;
          10        JoltRemoteService toupper;
          11
          12        sattr = new JoltSessionAttributes();
          13        sattr.setString(JoltSessionAttributes.APPADDRESS, "//192.168.247.129:9110");
          14        sattr.setInt(JoltSessionAttributes.IDLETIMEOUT, 300);
          15        session = new JoltSession(sattr, null, null, null, null); 
          16
          17        toupper = new JoltRemoteService("TOUPPER", session);
          18        toupper.setString("STRING", "hello,wolrd!");
          19        toupper.call(null);
          20        System.out.println(toupper.getStringDef("STRING", null));
          21        session.endSession();
          22    }
          23
          24}

            
          posted on 2009-05-26 16:03 jinfeng_wang 閱讀(998) 評論(0)  編輯  收藏 所屬分類: Linuxtuxedo
          主站蜘蛛池模板: 花莲县| 浮梁县| 穆棱市| 开阳县| 沿河| 金乡县| 贡山| 二手房| 璧山县| 阳山县| 保山市| 汕头市| 绥江县| 临泉县| 延津县| 江陵县| 漠河县| 繁峙县| 民乐县| 宜阳县| 皋兰县| 聊城市| 察哈| 望谟县| 微博| 克东县| 荣昌县| 大名县| 乌兰浩特市| 朝阳县| 遂川县| 湄潭县| 筠连县| 边坝县| 万源市| 泸定县| 丘北县| 洪江市| 织金县| 临沭县| 上虞市|