Tuxedo

java  连接Tuxedo :

 

    JoltSessionAttributes  attr=new JoltSessionAttributes();
       attr.setString(JoltSessionAttributes.APPADDRESS, "//localhost:port");
       JoltSession  joltSession =new JoltSession(attr,null,null,null,null);//     username,userrole,userpassword,apppassword
    JoltRemoteService  joltRemoteService =new JoltRemoteService("TOUPPER",joltSession);
    joltRemoteService.addString("STRING", "abcdefg");
    JoltTransaction  joltTransaction=new JoltTransaction(10,joltSession); // time-out
    joltRemoteService.call(null);
    joltTransaction.commit();

 

 

简单测试例子

 

 

对于Weblogic 连接Tuxedo ,用jolt 连接,一直没有设置成功,但是,程序直接连接是没有问题的。有兴趣的朋友可以讨论一下

QQ:819071931

你可能感兴趣的:(Tuxedo)