当前位置: 代码迷 >> Weblogic >> Jolt调用Tuxedo服务解决方案
  详细解决方案

Jolt调用Tuxedo服务解决方案

热度:241   发布时间:2016-05-11 08:03:42.0
Jolt调用Tuxedo服务
JoltSession session;
     JoltSessionAttributes sattr;
     JoltRemoteService toupper;
     JoltTransaction trans;
     String userName=null;
     String userPassword=null;
     String appPassword=null;
     String userRole="myapp";
     String outstr;
     
//     if(args.length!=1) {
//      System.out.println("usage:java Test string");
//       }
     sattr=new JoltSessionAttributes();
     sattr.setString(sattr.APPADDRESS,"//10.1.25.5:7788");
     switch(sattr.checkAuthenticationLevel())
       {case JoltSessionAttributes.NOAUTH:
          System.out.println("NOAUTH...");
          break;
        case JoltSessionAttributes.APPASSWORD:
          System.out.println("APPASSWORD...");
          appPassword="1234567";
          break;
        case JoltSessionAttributes.USRPASSWORD:
          System.out.println("USRPASSWORD...");
          userName="system";
          userPassword="1234567";
          appPassword="1234567";
          break;    
       }
     sattr.setInt(sattr.IDLETIMEOUT,300);
     session=new JoltSession(sattr,userName,userRole,userPassword,appPassword);
     toupper=new JoltRemoteService("TOUPPER",session);
     toupper.setString("STRING",args[0]);
     toupper.call(null);
     outstr=toupper.getStringDef("STRING",null);
     if(outstr!=null)
       System.out.println(outstr);
     session.endSession();

Jolt调用Tuxedo服务,老是报错
Exception in thread "main" java.lang.UnsatisfiedLinkError: no tuxedoservice in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at CreditCard.Infrastructure.Service.TuxedoService.<clinit>(TuxedoService.java:5)
at CreditCard.Reporting.Test.main(Test.java:184)
请问如何解决

另外,Jolt能传送文件吗?刚开始用Tuxedo,没经验,如果能怎么传,两个问题都解决,加50分,谢谢

------解决方案--------------------
好久没有tuxedo了,我记得之前调用tuxedo是是通过jolt配置的,现在需要编程吗?
  相关解决方案
本站暂不开放注册!
内测阶段只得通过邀请码进行注册!
 
  • 最近登录:Wed Aug 23 21:57:54 CST 2017
  • 最近登录:Wed Aug 23 21:57:54 CST 2017
  • 最近登录:Wed Aug 23 21:57:54 CST 2017
  • 最近登录:Wed Aug 23 21:57:54 CST 2017
  • 最近登录:Wed Aug 23 21:57:54 CST 2017