《weblogic培训-9-WTC Tuxedo Connector》由会员分享,可在线阅读,更多相关《weblogic培训-9-WTC Tuxedo Connector(12页珍藏版)》请在金锄头文库上搜索。
1、WTC(WebLogic Tuxedo Connector)Presenter Title *AGENDA什么是WTC?WTC配置WTC编程2qWTC(WTCWebLogic Tuxedo Connector) 是Weblogic Server的一个组成部分 实现Weblogic和TUXEDO的应用程序集成 为Weblogic和TUXEDO提供了双向的互操作性什么是WTC?3WTC的配置(TUXEDO域)qUBBCONFIG *SERVERS DMADM SRVGRP=LDMGRP SRVID=1 GWADMSRVGRP=LGWGRP SRVID=2 GWTDOMAIN SRVGRP=LGWG
2、RP SRVID=3 REPLYQ=N qDMCONFIG *DM_LOCAL_DOMAINS LAPP GWGRP=LGWGRP TYPE=TDOMAINDOMAINID=“LAPP“ *DM_REMOTE_DOMAINS UAPP TYPE=TDOMAINDOMAINID=“UAPP“ *DM_TDOMAIN LAPP NWADDR=“/211.68.68.60:1234“ UAPP NWADDR=“/211.68.68.59:5678“ *DM_LOCAL_SERVICES TOUPPER *DM_REMOTE_SERVICES TOLOWER 4WTC的配置(Weblogic)q在We
3、blogic中创建WTC服务5WTC的配置(Weblogic)q创建本地TUXEDO访问点6WTC的配置(Weblogic)q创建远程TUXEDO访问点7WTC的配置(Weblogic)q导入TUXEDO服务8WTC的配置(Weblogic)q导出Weblogic服务9WTC编程qTUXEDO客户端 象调用本地服务一样调用EJBret = tpcall(“TOLOWER“, (char *)sendbuf, 0, (char *) if(ret = -1) (void) fprintf(stderr, “sn“, tperrno, tpstrerror(tperrno); tpfree(sen
4、dbuf); tpfree(rcvbuf); tpterm(); exit(1); 10WTC编程qWeblogic客户端 通过JNDI去Lookup一个TUXEDO服务try ctx = new InitialContext();tcf = (TuxedoConnectionFactory) ctx.lookup(“tuxedo.services.TuxedoConnection“); catch (NamingException ne) throw new TPException(TPException.TPENOENT, “Could not get TuxedoConnectionFactory : “ + ne); myTux = tcf.getTuxedoConnection();myData = new TypedString(toConvert);try myRtn = myTux.tpcall(“TOUPPER“, myData, 0); catch (TPReplyException tre) 。11Q/A