OS: Win7家庭普通版
编译器: Microsoft Visual Studio 2010
tuxedo:tuxedo11gR1_32_win_2k8_x86_VS2008.exe
tuxedo安装路径:D:/bea11g/tuxedo11gR1
App程序路径:D:/src/simpapp
1)安装tuxedo:tuxedo11gR1_32_win_2k8_x86_VS2008.exe,以管理员方式运行
2)将simpapp示例程序copy到:D:/src
3)将vcvars32.bat 拷贝到D:/src/simpapp文件下
本机安装的是Microsoft Visual Studio 2010
本机的vcvars32.bat位于D:/Program Files/Microsoft Visual Studio 10.0/VC/bin/vcvars32.bat
4)修改setenv.cmd
rem (c) 2003 BEA Systems, Inc. All Rights Reserved.
rem Copyright (c) 2000 BEA Systems, Inc.
rem All Rights Reserved
rem THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
rem BEA Systems, Inc.
rem The copyright notice above does not evidence any
rem actual or intended publication of such source code.
rem Copyright (c) 2000 BEA Systems, Inc.
rem All rights reserved
rem ident "@(#) apps/simpapp/setenv.cmd $Revision: 1.5 $"
set TUXDIR=D:/bea11g/tuxedo11gR1
set WSNADDR=192.168.166.111:3050
set APPDIR=D:/src/simpapp
set PATH=%TUXDIR%/bin;%APPDIR%;%PATH%
set TUXCONFIG=%APPDIR%/tuxconfig
Call D:/src/simpapp/vcvars32.bat
5)修改ubbsimple
# (c) 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
*RESOURCES
#IPCKEY
#Example:
IPCKEY 123456
DOMAINID simpapp
MASTER simple
MAXACCESSERS 10
MAXSERVERS 5
MAXSERVICES 10
MODEL SHM
LDBAL N
*MACHINES
DEFAULT:
APPDIR="D:/src/simpapp"
TUXCONFIG="D:/src/simpapp/tuxconfig"
TUXDIR="D:/bea11g/tuxedo11gR1"
#Example:
# APPDIR="/home/me/simpapp"
# TUXCONFIG="/home/me/simpapp/tuxconfig"
# TUXDIR="/usr/tuxedo"
"THINKPAD-WM" LMID=simple #THINKPAD-WM为本机计算机名
#Example:
#beatux LMID=simple
*GROUPS
GROUP1
LMID=simple GRPNO=1 OPENINFO=NONE
*SERVERS
DEFAULT:
CLOPT="-A"
simpserv SRVGRP=GROUP1 SRVID=1
*SERVICES
TOUPPER
6)以管理员方式运行cmd,执行下面命令
D:/src/simpapp>dir
驱动器 D 中的卷没有标签。
卷的序列号是 DE8E-46C4
D:/src/simpapp 的目录
2011/05/25 14:19
D:/src/simpapp>setenv.cmd //执行环境变量
D:/src/simpapp>rem (c) 2003 BEA Systems, Inc. All Rights Reserved.
D:/src/simpapp>rem Copyright (c) 2000 BEA Systems, Inc.
D:/src/simpapp>rem All Rights Reserved
D:/src/simpapp>rem THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
D:/src/simpapp>rem BEA Systems, Inc.
D:/src/simpapp>rem The copyright notice above does not evidence any
D:/src/simpapp>rem actual or intended publication of such source code.
D:/src/simpapp>rem Copyright (c) 2000 BEA Systems, Inc.
D:/src/simpapp>rem All rights reserved
D:/src/simpapp>rem ident "@(#) apps/simpapp/setenv.cmd $Revision: 1.5 $
"
D:/src/simpapp>set TUXDIR=D:/bea11g/tuxedo11gR1
D:/src/simpapp>set WSNADDR=192.168.166.111:3050
D:/src/simpapp>set APPDIR=D:/src/simpapp
D:/src/simpapp>set PATH=D:/bea11g/tuxedo11gR1/bin;D:/src/simpapp;d:/oracle/produ
ct/10.2.0/client_1/bin;C:/Program Files/Common Files/Microsoft Shared/Windows Li
ve;C:/Windows/system32;C:/Windows;C:/Windows/System32/Wbem;C:/Windows/System32/W
indowsPowerShell/v1.0/;C:/Program Files/ThinkPad/Bluetooth Software/;C:/Program
Files/ATI Technologies/ATI.ACE/Core-Static;C:/Program Files/Common Files/Lenovo;
C:/Program Files/Common Files/Ulead Systems/MPEG;C:/Program Files/Lenovo/Access
Connections/;C:/Program Files/Windows Live/Shared;C:/Program Files/Lenovo/Client
Security Solution;D:/Program Files/TortoiseSVN/bin;C:/Program Files/Common File
s/Thunder Network/KanKan/Codecs;C:/Program Files/Microsoft SQL Server/100/Tools/
Binn/;C:/Program Files/Microsoft SQL Server/100/DTS/Binn/;d:/Program Files/Windo
ws7Master;D:/bea11g/tuxedo11gR1/bin;D:/bea11g/tuxedo11gR1/jre/bin/server;D:/bea1
1g/tuxedo11gR1/jre/bin;D:/Program Files/IDM Computer Solutions/UltraEdit/
D:/src/simpapp>set TUXCONFIG=D:/src/simpapp/tuxconfig
D:/src/simpapp>Call D:/src/simpapp/vcvars32.bat
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
D:/src/simpapp>buildserver -o simpserv -f simpserv.c -s TOUPPER -v //编译服务器端程序
cl /MD -I"%TUXDIR%"/include -Fesimpserv BS-1a34.c simpserv.c "%TUXDIR%"/lib/li
btux.lib "%TUXDIR%"/lib/libbuft.lib "%TUXDIR%"/lib/libfml.lib "%TUXDIR%"/lib/
libfml32.lib "%TUXDIR%"/lib/libengine.lib wsock32.lib kernel32.lib advapi32.lib
user32.lib gdi32.lib comdlg32.lib winspool.lib -link -implib:BS-1a34.lib
用于 80x86 的 Microsoft (R) 32 位 C/C++ 优化编译器 16.00.30319.01 版
版权所有(C) Microsoft Corporation。保留所有权利。
BS-1a34.c
simpserv.c
正在生成代码...
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
/out:simpserv.exe
-implib:BS-1a34.lib
BS-1a34.obj
simpserv.obj
D:/bea11g/tuxedo11gR1/lib/libtux.lib
D:/bea11g/tuxedo11gR1/lib/libbuft.lib
D:/bea11g/tuxedo11gR1/lib/libfml.lib
D:/bea11g/tuxedo11gR1/lib/libfml32.lib
D:/bea11g/tuxedo11gR1/lib/libengine.lib
wsock32.lib
kernel32.lib
advapi32.lib
user32.lib
gdi32.lib
comdlg32.lib
winspool.lib
D:/src/simpapp>buildclient -o simpcl -f simpcl.c -v //编译客户端程序
cl /MD -I"%TUXDIR%"/include -Fesimpcl simpcl.c "%TUXDIR%"/lib/libtux.lib "%
TUXDIR%"/lib/libbuft.lib "%TUXDIR%"/lib/libfml.lib "%TUXDIR%"/lib/libfml32.lib
"%TUXDIR%"/lib/libengine.lib wsock32.lib kernel32.lib advapi32.lib user32.lib g
di32.lib comdlg32.lib winspool.lib -link -implib:BC-1b6c.lib
用于 80x86 的 Microsoft (R) 32 位 C/C++ 优化编译器 16.00.30319.01 版
版权所有(C) Microsoft Corporation。保留所有权利。
simpcl.c
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
/out:simpcl.exe
-implib:BC-1b6c.lib
simpcl.obj
D:/bea11g/tuxedo11gR1/lib/libtux.lib
D:/bea11g/tuxedo11gR1/lib/libbuft.lib
D:/bea11g/tuxedo11gR1/lib/libfml.lib
D:/bea11g/tuxedo11gR1/lib/libfml32.lib
D:/bea11g/tuxedo11gR1/lib/libengine.lib
wsock32.lib
kernel32.lib
advapi32.lib
user32.lib
gdi32.lib
comdlg32.lib
winspool.lib
D:/src/simpapp>tmloadcf -y ubbsimple //用ubbsimple 生成tuxconfig
D:/src/simpapp>tmboot -y //启动tuxedo
Booting all admin and server processes in D:/src/simpapp/tuxconfig
INFO: Oracle Tuxedo, Version 11.1.1.1.0, 32-bit, Patch Level (none)
Booting admin processes ...
exec BBL -A :
process id=9912 ... Started.
Booting server processes ...
exec simpserv -A :
process id=4252 ... Started.
2 processes started.
D:/src/simpapp>dir
驱动器 D 中的卷没有标签。
卷的序列号是 DE8E-46C4
D:/src/simpapp 的目录
2011/05/26 21:00
D:/src/simpapp>simpcl.exe weiming
Returned string is: WEIMING