jinfeng_wang

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

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            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
          主站蜘蛛池模板: 大英县| 水富县| 山东省| 郴州市| 拜城县| 工布江达县| 巴林右旗| 佛学| 大余县| 饶平县| 东阿县| 上犹县| 江城| 巴中市| 明光市| 焉耆| 新源县| 梁山县| 太原市| 濮阳县| 吐鲁番市| 黎川县| 志丹县| 朝阳区| 仙居县| 黄梅县| 图片| 哈巴河县| 通化县| 虹口区| 长丰县| 青浦区| 镇赉县| 突泉县| 汾西县| 紫云| 庆城县| 柘城县| 清水河县| 林西县| 阜康市|