weblogic与tuxedo配置详解 联系客服

发布时间 : 星期三 文章weblogic与tuxedo配置详解更新完毕开始阅读c6cc820bf01dc281e53af075

或通过控制台进行配置: 新增一个WTC Server

配置WTC Server(红框中的是需要配置的)

配置Local AP(IP和端口为weblogic的IP和端口,Name和ID最好设置成一样的)

配置Remote AP(IP和端口为Tuxedo的IP和端口,并制定一个Local AP)

配置Import(resources和remote name最好一致,并等于tuxedo中配置的

配置好了之后可以看到WTC Server的control中已经有connection和service了。

并且在context的jndi tree中可以看到tuxedo.services.TuxedoConnection。

3. Weblogic做客户端,访问Tuxedo服务(一个jsp)

<%@ page import=\javax.naming.*,java.sql.*\hello <% try {

//调用接口服务

Context ctx = new InitialContext(); TuxedoConnectionFactory cdmaTuxedoFactory = (TuxedoConnectionFactory)

ctx.lookup(\ TuxedoConnection cdmaTuxedo = cdmaTuxedoFactory.getTuxedoConnection();

TypedString cdmaData = new TypedString(inStr);

Reply cdmaRtn = cdmaTuxedo.tpcall(\ cdmaData = (TypedString) cdmaRtn.getReplyBuffer();

String inStr = \String outStr = \