赞
踩
我这了选择的是tuxedo 11gR1,可以去oracle官网下载,我下载的是 tuxedo111130_64_Linux_01_x86.bin,linux系统64位版本
[root@tiger ~]# useradd oracle -g oracle
上传tuxedo111130_64_Linux_01_x86.bin至/opt/tuxedo下,更改文件属主为oracle,完成后给oracle用户设置密码
[root@tiger tuxedo]# chown -R oracle:oracle tuxedo111130_64_Linux_01_x86.bin- # 2003 BEA Systems, Inc. All Rights Reserved.
- #ident "@(#) samples/atmi/simpapp/ubbsimple $Revision: 1.7 $"
-
- #Skeleton UBBCONFIG file for the TUXEDO Simple Application.
- #Replace the <bracketed> items with the appropriate values.
-
- *RESOURCES
- IPCKEY 123456
-
- #Example:
- #IPCKEY 123456
-
- DOMAINID simpapp
- MASTER simple
- MAXACCESSERS 900
- MAXSERVERS 10
- MAXSERVICES 20
- MODEL SHM
- LDBAL N
-
- *MACHINES
- DEFAULT:
- APPDIR="/opt/tuxedo/app/tuxedo11gR1/samples/atmi/simpapp"
- TUXCONFIG="/opt/tuxedo/app/tuxedo11gR1/samples/atmi/simpapp/tuconfig"
- TUXDIR="/opt/tuxedo/app/tuxedo11gR1"
- MAXWSCLIENTS=2
- #Example:
- # APPDIR="/home/me/simpapp"
- # TUXCONFIG="/home/me/simpapp/tuxconfig"
- # TUXDIR="/usr/tuxedo"
-
- "tiger" LMID=simple
-
- #Example:
- #beatux LMID=simple
-
- *GROUPS
- GROUP1
- LMID=simple GRPNO=1 OPENINFO=NONE
- JSLGRP LMID=simple GRPNO=2
- JREPGRP LMID=simple GRPNO=3
-
- *SERVERS
- DEFAULT:
- CLOPT="-A"
-
- simpserv SRVGRP=GROUP1 SRVID=1
- JSL SRVGRP=JSLGRP SRVID=755
- CLOPT="-A -- -n //192.168.109.66:8888 -m 5 -M 10 -x 5"
-
- JREPSVR SRVGRP=JREPGRP SRVID=302
- CLOPT="-A -- -W -P /opt/tuxedo/app/tuxedo11gR1/udataobj/jolt/repository/jrepository"
-
- *SERVICES
- TOUPPER
根据不同情况,调整内容。
编译UBBCONFIG
[oracle@tiger simpapp]$ tmloadcf -y ubbsimple- package my.jolt.servlet;
-
-
- import bea.jolt.JoltDefinition;
- import bea.jolt.JoltMessage;
- import bea.jolt.JoltRemoteService;
- import bea.jolt.JoltSession;
- import bea.jolt.JoltSessionAttributes;
- import bea.jolt.JoltTransaction;
-
-
- public class Test {
- public static void main(String[] args) throws Exception {
- JoltSessionAttributes sattr = null;
- JoltRemoteService toupper = null;
- JoltTransaction trans = null;
- String userName = "";
- String userPassword = "";
- String appPassword = "";
- String userRole = "";
- String outstr;
- sattr = new JoltSessionAttributes();
- // 建立目标连接地址
- sattr.setString(sattr.APPADDRESS, "//192.168.109.66:8888");
- // TIMEOUT时间
- sattr.setInt(sattr.IDLETIMEOUT, 300);
- // 建立连接,初始化
- bea.jolt.JoltSession session = new JoltSession(sattr, userName,
- userRole, userPassword, appPassword);
- // 需要的总控
- toupper = new JoltRemoteService("TOUPPER", session);
-
- toupper.addString("STRING", "if i am ajfgfdgdf gdg");
-
- try{
- // 调用,返回
- toupper.call(null);
-
- JoltDefinition jd = toupper.getDefinition();
- JoltMessage jm = toupper.getOutputs();
-
- System.out.println("返回:" + jm.toString());
-
-
-
- }catch (Exception e) {
- e.printStackTrace();
- }finally{
- session.endSession();
- }
- }
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。