[转帖]Tuxedo安装license例子和远程客户端配置_MQ, Tuxedo及OLTP讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MQ, Tuxedo及OLTP讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 5103 | 回复: 0   主题: [转帖]Tuxedo安装license例子和远程客户端配置        下一篇 
lengyuLee
注册用户
等级:少校
经验:1118
发帖:83
精华:5
注册:2013-3-7
状态:离线
发送短消息息给lengyuLee 加好友    发送短消息息给lengyuLee 发消息
发表于: IP:您无权察看 2013-3-11 9:26:48 | [全部帖] [楼主帖] 楼主

原文转载自: http://wwww.iteye.com/blog/802203

mso-font-kerning:0pt" lang="EN-US">Tuxedo是一个很好的交易中间件,包含消息中间件等功能,历史悠久,功能强大,是由mso-font-kerning:0pt" lang="EN-US">BEA开发的,不过现在属于0pt" lang="EN-US">Oracle了。网上的0pt" lang="EN-US">Tuxedo入门教程千千万万,几乎没有一个可用的。尤其是在mso-font-kerning:0pt" lang="EN-US">licsence和远程客户端配置这两个问题上,都没有交代清楚。很符合中国的mso-font-kerning:0pt" lang="EN-US">IT教程特色:0pt" lang="EN-US">“懂得人看得懂,但是并没有更懂;不懂的人更加不懂了!mso-font-kerning:0pt" lang="EN-US">”0pt" lang="EN-US">

本文集中讨论了四个问题:10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

color:black;mso-font-kerning:0pt" lang="EN-US">l10.5pt;color:black;mso-font-kerning:0pt" lang="EN-US">mso-font-kerning:0pt" lang="EN-US">Tuxedo的安装;0pt" lang="EN-US">

color:black;mso-font-kerning:0pt" lang="EN-US">l10.5pt;color:black;mso-font-kerning:0pt" lang="EN-US">mso-font-kerning:0pt" lang="EN-US">SDK0pt" lang="EN-US">RTC12.0pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">Licensefont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

color:black;mso-font-kerning:0pt" lang="EN-US">l10.5pt;color:black;mso-font-kerning:0pt" lang="EN-US">mso-font-kerning:0pt" lang="EN-US">Simpapp例子0pt" lang="EN-US">

color:black;mso-font-kerning:0pt" lang="EN-US">l10.5pt;color:black;mso-font-kerning:0pt" lang="EN-US">远程客户端配置10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

好了,开始吧,我的开发环境如下,如果开发环境不同,也许本教程不适合你:mso-font-kerning:0pt" lang="EN-US">

color:black;mso-font-kerning:0pt" lang="EN-US">l10.5pt;color:black;mso-font-kerning:0pt" lang="EN-US">mso-font-kerning:0pt" lang="EN-US">Tuxedo8.1
color:black;mso-font-kerning:0pt" lang="EN-US">l10.5pt;color:black;mso-font-kerning:0pt" lang="EN-US">mso-font-kerning:0pt" lang="EN-US">VC6


color:black;mso-font-kerning:0pt" lang="EN-US">l10.5pt;color:black;mso-font-kerning:0pt" lang="EN-US">服务器:font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">windows XPmso-font-kerning:0pt" lang="EN-US">

color:black;mso-font-kerning:0pt" lang="EN-US">l10.5pt;color:black;mso-font-kerning:0pt" lang="EN-US">客户端:font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">Windows XPfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">VMWARE上)font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

本文的源代码在这里,你也许要根据下面的教程修改后才能成功运行:0pt" lang="EN-US">

mso-font-kerning:0pt" lang="EN-US">http://download.csdn.net/source/1107802


color:black;mso-font-kerning:0pt" lang="EN-US">1.mso-font-kerning:0pt" lang="EN-US">Tuxedo8.1安装mso-font-kerning:0pt" lang="EN-US">

mso-font-kerning:0pt" lang="EN-US">Tuxedo8.1下载地址如下:0pt" lang="EN-US">

0pt" lang="EN-US">Microsoft Windows (32 bit)color:black;mso-font-kerning:0pt" lang="EN-US">0pt" lang="EN-US">http://ftpmain.bea.com/download/pub/tuxedo...uxedo81_win.exe


下载完成后直接双击就可以安装了,可以选择安装服务器或者客户端。安装的时候需要选择mso-font-kerning:0pt" lang="EN-US">bea0pt" lang="EN-US">home目录和12.0pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">Tuxedo的目录,都可以采用默认配置。服务端还需要指定0pt" lang="EN-US">tlisten密码。其他都暂时不需要配置,包括0pt" lang="EN-US">license都可以留到后面配置。0pt" lang="EN-US">

color:black;mso-font-kerning:0pt" lang="EN-US">2.mso-font-kerning:0pt" lang="EN-US">License


mso-font-kerning:0pt" lang="EN-US">Tuxedo0pt" lang="EN-US">license分为12.0pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">SDKfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">RTC两种,font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">SDK即开发版,font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">RTC即发布版。我刚开始就是得到了一个12.0pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">RTC,兴高采烈的font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">run例子的时候编译不过,告诉我12.0pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">“你没有一个合法的font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">SDK license”。其实font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">bea已经公布了所有的font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">license,直接去官方网站下载就可以了,不要到处找所谓的无限制0pt" lang="EN-US">xx license12.0pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">Tuxedo8.1font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">SDK license地址如下:10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

mso-font-kerning:0pt" lang="EN-US">http://licensecodes.oracle.com/downloads/LIC-TUX81-SDK-56B.zip


下载后解压,将文件名改为12.0pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">lic.txt,然后拷贝到font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">TUXEDO_HOME\udataobj目录下面就可以了。我的font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">TUXEDO_HOMEfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">C:\bea\tuxedo8.1font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

拷贝完成后font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">license马上生效。10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

color:black;mso-font-kerning:0pt" lang="EN-US">3.mso-font-kerning:0pt" lang="EN-US">Simpapp例子mso-font-kerning:0pt" lang="EN-US">

mso-font-kerning:0pt" lang="EN-US">Simpapp0pt" lang="EN-US">Tuxedo自带的一个简单例子,只有服务器版本带有例子程序。我的例子在mso-font-kerning:0pt" lang="EN-US">C:\bea\tuxedo8.1\samples\atmi\simpapp。将该例子拷贝到另外一个目录,例如:0pt" lang="EN-US">C:\tuxedo_test\simpapp0pt" lang="EN-US">

例子中有如下几个文件:10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

color:black;mso-font-kerning:0pt" lang="EN-US">l10.5pt;color:black;mso-font-kerning:0pt" lang="EN-US">mso-font-kerning:0pt" lang="EN-US">README0pt" lang="EN-US">README.NT,是说明文件,但是我认为说得不详细,起码0pt" lang="EN-US">license和远程客户端配置就没说清楚;0pt" lang="EN-US">

color:black;mso-font-kerning:0pt" lang="EN-US">l10.5pt;color:black;mso-font-kerning:0pt" lang="EN-US">mso-font-kerning:0pt" lang="EN-US">setenv.cmd,设置环境变量的批处理文件;mso-font-kerning:0pt" lang="EN-US">

color:black;mso-font-kerning:0pt" lang="EN-US">l10.5pt;color:black;mso-font-kerning:0pt" lang="EN-US">mso-font-kerning:0pt" lang="EN-US">ubbsimple0pt" lang="EN-US">Tuxedo的应用程序配置文件,它会被编译为二进制的配置文件,所有服务端程序都需要该配置文件;mso-font-kerning:0pt" lang="EN-US">

color:black;mso-font-kerning:0pt" lang="EN-US">l10.5pt;color:black;mso-font-kerning:0pt" lang="EN-US">mso-font-kerning:0pt" lang="EN-US">simpapp.ntmso-font-kerning:0pt" lang="EN-US">makefile文件,用来编译服务器和客户端程序;mso-font-kerning:0pt" lang="EN-US">

color:black;mso-font-kerning:0pt" lang="EN-US">l10.5pt;color:black;mso-font-kerning:0pt" lang="EN-US">mso-font-kerning:0pt" lang="EN-US">simpcl.c,客户端源程序;0pt" lang="EN-US">

color:black;mso-font-kerning:0pt" lang="EN-US">l10.5pt;color:black;mso-font-kerning:0pt" lang="EN-US">mso-font-kerning:0pt" lang="EN-US">simpserv.c,服务端源程序;mso-font-kerning:0pt" lang="EN-US">

要编译运行font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">Simpapp例子,需要六个步骤:font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">1)设置环境变量;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">2)修改编译配置文件;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">3)编译源程序;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">4)启动服务;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">5)运行客户端;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">6)关闭服务。10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

注意:这是本地客户端的步骤,若是远程客户端,还有一些变动。0pt" lang="EN-US">

设置环境变量font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

首先,把本文的系统相关变量列举如下,大家要根据自己的情况在下面的各种配置文件中更改:mso-font-kerning:0pt" lang="EN-US">

0pt" lang="EN-US">Tuxedo目录:12.0pt;font-family:"Courier New";color:black;mso-font-kerning:0pt" lang="EN-US">C:\bea\tuxedo8.1mso-font-kerning:0pt" lang="EN-US">

0pt" lang="EN-US">Tuxedo应用程序目录:0pt" lang="EN-US">C:\tuxedo_test\simpapp10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

服务器mso-font-kerning:0pt" lang="EN-US">IPmso-font-kerning:0pt" lang="EN-US">192.168.222.110.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

客户端mso-font-kerning:0pt" lang="EN-US">IPmso-font-kerning:0pt" lang="EN-US">192.168.222.210.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

修改mso-font-kerning:0pt" lang="EN-US">setenv.bat文件:其解释已经在源代码中mso-font-kerning:0pt" lang="EN-US">

0pt" lang="EN-US">rem 设置12.0pt;font-family:"Courier New";color:black;mso-font-kerning:0pt" lang="EN-US">TUXEDO目录10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

0pt" lang="EN-US">set TUXDIR=C:\bea\tuxedo8.110.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


0pt" lang="EN-US">rem 设置12.0pt;font-family:"Courier New";color:black;mso-font-kerning:0pt" lang="EN-US">TUXEDO应用程序目录0pt" lang="EN-US">

0pt" lang="EN-US">set APPDIR=C:\tuxedo_test\simpapp10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


0pt" lang="EN-US">rem 设置系统12.0pt;font-family:"Courier New";color:black;mso-font-kerning:0pt" lang="EN-US">pathmso-font-kerning:0pt" lang="EN-US">

0pt" lang="EN-US">set PATH=%TUXDIR%\bin;%APPDIR%;%PATH%0pt" lang="EN-US">


0pt" lang="EN-US">rem 设置12.0pt;font-family:"Courier New";color:black;mso-font-kerning:0pt" lang="EN-US">TUXEDO应用程序配置文件0pt" lang="EN-US">

0pt" lang="EN-US">set TUXCONFIG=%APPDIR%\tuxconfig10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


然后打开一个mso-font-kerning:0pt" lang="EN-US">windows控制台,将目录变更为0pt" lang="EN-US">tuxedo应用程序所在目录,即0pt" lang="EN-US">C:\tuxedo_test\simpapp,运行0pt" lang="EN-US">setenv.bat10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

C:\tuxedo_test\simpapp>setenvmso-font-kerning:0pt" lang="EN-US">


修改编译配置文件font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

在修改配置文件前,先得到自己的计算机名称,运行:mso-font-kerning:0pt" lang="EN-US">

C:\tuxedo_test\simpapp>echo %computername%font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


就可以得到自己的计算机名称,一般都是大写的。mso-font-kerning:0pt" lang="EN-US">

0pt" lang="EN-US">Ubbsimple是本程序(即0pt" lang="EN-US">simpapp)的配置文件,将其修改为:0pt" lang="EN-US">

0pt" lang="EN-US">*RESOURCESfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">IPCKEY     123496  mso-font-kerning:0pt" lang="EN-US">#这个数字可以自己定0pt" lang="EN-US">
0pt" lang="EN-US">Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">DOMAINID   simpapp10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">MASTER     simple0pt" lang="EN-US">
0pt" lang="EN-US">MAXACCESSERS  1010.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">MAXSERVERS 5font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">MAXSERVICES   1010.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">MODEL   SHM10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">LDBAL   N10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">*MACHINESfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">DEFAULT:font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">     APPDIR="C:\tuxedo_test\simpapp"mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">     TUXCONFIG="C:\tuxedo_test\simpapp\tuxconfig"mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">     TUXDIR="C:\bea\tuxedo8.1"mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">"WXB" LMID=simple   0pt" lang="EN-US"> #注意,把12.0pt;font-family:"Courier New";color:red;mso-font-kerning:0pt" lang="EN-US">”WXB”改成自己的计算机名称10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">*GROUPSfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">GROUP1Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">  LMID=simple GRPNO=1 OPENINFO=NONEmso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">*SERVERSfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">DEFAULT:font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">     CLOPT="-A"0pt" lang="EN-US">
0pt" lang="EN-US">Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">simpserv   SRVGRP=GROUP1 SRVID=10pt" lang="EN-US">
0pt" lang="EN-US">Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">*SERVICESfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">TOUPPERfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


配置文件是mso-font-kerning:0pt" lang="EN-US">Tuxedo中最繁琐的部分,稍有不对服务就无法发布和执行,所以一定要仔细检查。目前不需要太多了解,按我写的做就可以了。注意,配置文件和源程序的编译链接无关,只和服务发布相关,客户端也不需要配置文件。mso-font-kerning:0pt" lang="EN-US">

修改完配置文件后,就需要将其编译为二进制的配置文件,其名称和目录由系统变量mso-font-kerning:0pt" lang="EN-US">TUXCONFIG决定,该变量已经在0pt" lang="EN-US">setenv.bat中设置了,此处是0pt" lang="EN-US">C:\tuxedo_test\simpapp\\tuxconfig,这个mso-font-kerning:0pt" lang="EN-US">tuxconfig就是服务用来发布时的二进制配置文件。mso-font-kerning:0pt" lang="EN-US">

编译配置文件:mso-font-kerning:0pt" lang="EN-US">

C:\tuxedo_test\simpapp>tmloadcf -y ubbsimplefont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


若成功完成,则会生成mso-font-kerning:0pt" lang="EN-US">tuxconfig0pt" lang="EN-US">

编译源程序font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

使用mso-font-kerning:0pt" lang="EN-US">makefile的方式编译源程序,这里我使用的是mso-font-kerning:0pt" lang="EN-US">vc6自带的0pt" lang="EN-US">nmake命令,要确保你的0pt" lang="EN-US">vc相关目录已经正确在0pt" lang="EN-US">windows12.0pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">path变量中设置。font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">Makefile文件已经写好,不需要更改,即12.0pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">simpapp.nt。执行命令如下:10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

C:\tuxedo_test\simpapp>nmake -f simpapp.ntfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


当然,如果你不熟悉mso-font-kerning:0pt" lang="EN-US">makefile,那么可以使用如下两个命令别分编译客户端和服务端,其实这两条命令是我从mso-font-kerning:0pt" lang="EN-US">simpapp.nt中抄出来的:mso-font-kerning:0pt" lang="EN-US">

buildclient       -o simpcl -f simpcl.cfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
buildserver -s TOUPPER -o simpserv -f simpserv.c10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


若成功,则可发现在目录下出现了mso-font-kerning:0pt" lang="EN-US">simpcl.exemso-font-kerning:0pt" lang="EN-US">simpserv.exe文件。mso-font-kerning:0pt" lang="EN-US">

启动服务font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

启动服务非常mso-font-kerning:0pt" lang="EN-US">easy,如果你前面都做对了的话:mso-font-kerning:0pt" lang="EN-US">

C:\tuxedo_test\simpapp>tmboot -ycolor:black;mso-font-kerning:0pt" lang="EN-US">


启动成功后会告诉你,两个进程已经成功启动。mso-font-kerning:0pt" lang="EN-US">

运行客户端font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

如下命令:mso-font-kerning:0pt" lang="EN-US">

C:\tuxedo_test\simpapp>simpcl "hello,wenwen"font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
Returned string is: HELLO,WENWENfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


客户端会将一个字符串传送给服务器,服务器返回该字符串的大写形式。为什么是mso-font-kerning:0pt" lang="EN-US">“hello,wenwen”而不是mso-font-kerning:0pt" lang="EN-US">“hello,tuxedo”呢?嗯,因为写到这儿的时候刚好雯雯到我身边来了。mso-font-kerning:0pt" lang="EN-US">

关闭服务font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

关闭服务很容易,而且不会失败:mso-font-kerning:0pt" lang="EN-US">

C:\tuxedo_test\simpapp>tmshutdown –ycolor:black;mso-font-kerning:0pt" lang="EN-US">


color:black;mso-font-kerning:0pt" lang="EN-US">4.远程客户端配置18.0pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

好了,重点终于来了。毕竟对于大部分人来说,用中间件就是为了使用远程客户端,本地客户端只是玩玩而已嘛。远程客户端需要服务器端修改一些配置,远程客户端也要进行一些配置。mso-font-kerning:0pt" lang="EN-US">

服务器端font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

要编译运行font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">Simpapp例子,使其能够为本地客户端提供服务,需要六个步骤:mso-font-kerning:0pt" lang="EN-US">1)设置环境变量;0pt" lang="EN-US">2)修改编译配置文件;0pt" lang="EN-US">3)编译源程序;0pt" lang="EN-US">4)启动服务;0pt" lang="EN-US">5)运行客户端;0pt" lang="EN-US">6)关闭服务。0pt" lang="EN-US">

要编译运行font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">Simpapp例子,使其能够为远程客户端提供服务,需要六个步骤:mso-font-kerning:0pt" lang="EN-US">1)设置环境变量;0pt" lang="EN-US">2)修改编译配置文件;0pt" lang="EN-US">3)编译远程客户端源程序;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">4)启动服务;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">5)运行远程客户端;mso-font-kerning:0pt" lang="EN-US">6)关闭服务。0pt" lang="EN-US">

为了不让读者出错,我还是用最详细的方式把这些步骤都完成写一遍,当然,与上面不同的部分会用红色标注出来。mso-font-kerning:0pt" lang="EN-US">

mso-font-kerning:0pt" lang="EN-US">1)设置环境变量0pt" lang="EN-US">

再次修改mso-font-kerning:0pt" lang="EN-US">seten.bat文件:0pt" lang="EN-US">

0pt" lang="EN-US">rem 设置12.0pt;font-family:"Courier New";color:black;mso-font-kerning:0pt" lang="EN-US">TUXEDO目录10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

0pt" lang="EN-US">set TUXDIR=C:\bea\tuxedo8.110.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


0pt" lang="EN-US">rem 设置12.0pt;font-family:"Courier New";color:red;mso-font-kerning:0pt" lang="EN-US">WSN地址和端口10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

0pt" lang="EN-US">set WSNADDR=\\192.168.222.1:888810.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


0pt" lang="EN-US">rem 设置12.0pt;font-family:"Courier New";color:black;mso-font-kerning:0pt" lang="EN-US">TUXEDO应用程序目录0pt" lang="EN-US">

0pt" lang="EN-US">set APPDIR=C:\tuxedo_test\simpapp10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


0pt" lang="EN-US">rem 设置系统12.0pt;font-family:"Courier New";color:black;mso-font-kerning:0pt" lang="EN-US">pathmso-font-kerning:0pt" lang="EN-US">

0pt" lang="EN-US">set PATH=%TUXDIR%\bin;%APPDIR%;%PATH%0pt" lang="EN-US">


0pt" lang="EN-US">rem 设置12.0pt;font-family:"Courier New";color:black;mso-font-kerning:0pt" lang="EN-US">TUXEDO应用程序配置文件0pt" lang="EN-US">

0pt" lang="EN-US">set TUXCONFIG=%APPDIR%\tuxconfig10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


注意,其中加入了mso-font-kerning:0pt" lang="EN-US">WSN地址和端口的配置,地址就是本服务器mso-font-kerning:0pt" lang="EN-US">IP地址,端口可以随意指定,只要不冲突就好。mso-font-kerning:0pt" lang="EN-US">

运行mso-font-kerning:0pt" lang="EN-US">setenv10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

C:\tuxedo_test\simpapp>setenvmso-font-kerning:0pt" lang="EN-US">


mso-font-kerning:0pt" lang="EN-US">2)修改编译配置文件0pt" lang="EN-US">

再次修改mso-font-kerning:0pt" lang="EN-US">ubbsimple10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">

0pt" lang="EN-US">*RESOURCESfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">IPCKEY     123496        #这个数字可以自己定0pt" lang="EN-US">
0pt" lang="EN-US">Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">DOMAINID   simpapp10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">MASTER     simple0pt" lang="EN-US">
0pt" lang="EN-US">MAXACCESSERS  1010.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">MAXSERVERS 5font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">MAXSERVICES   1010.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">MODEL   SHM10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">LDBAL   N10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">*MACHINESfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">DEFAULT:font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">     APPDIR="C:\tuxedo_test\simpapp"mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">     TUXCONFIG="C:\tuxedo_test\simpapp\tuxconfig"mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">     TUXDIR="C:\bea\tuxedo8.1"mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">"WXB" LMID=simple         #注意,把12.0pt;font-family:"Courier New";color:black;mso-font-kerning:0pt" lang="EN-US">"WXB"改成自己的计算机名称0pt" lang="EN-US">
0pt" lang="EN-US">MAXWSCLIENTS=5    #指定的最大客户端连接数mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">*GROUPSfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">GROUP1Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">  LMID=simple GRPNO=1 OPENINFO=NONEmso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">*SERVERSfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">DEFAULT:font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">     CLOPT="-A"0pt" lang="EN-US">
0pt" lang="EN-US">Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">simpserv   SRVGRP=GROUP1 SRVID=10pt" lang="EN-US">
0pt" lang="EN-US">WSL SRVGRP=GROUP1 SRVID=5 CLOPT="-A -t -- -n //192.168.222.1:8888  -m 2 -M 5 -x 10"   #WSL发布地址10.5pt;font-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">*SERVICESfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">
0pt" lang="EN-US">TOUPPERfont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


仅仅增加了两行代码,即最大客户端连接数和mso-font-kerning:0pt" lang="EN-US">WSL的发布地址。其具体意义可以看书,这个倒是很多书都说清楚了。mso-font-kerning:0pt" lang="EN-US">

编译配置文件:mso-font-kerning:0pt" lang="EN-US">

C:\tuxedo_test\simpapp>tmloadcf -y ubbsimplefont-family:Helvetica;color:black;mso-font-kerning:0pt" lang="EN-US">


mso-font-kerning:0pt" lang="EN-US">3)编译远程客户端源程序0pt" lang="EN-US">

上面已经编译了服务端和本地客户端程序,远程客户端程序的编译下节再说。mso-font-kerning:0pt" lang="EN-US">

mso-font-kerning:0pt" lang="EN-US">4)启动服务0pt" lang="EN-US">

同上。不过这次会启动三个进程,其中一个是mso-font-kerning:0pt" lang="EN-US">WSL0pt" lang="EN-US">

该贴被lengyuLee编辑于2013-3-11 9:37:30



赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论