import weblogic.rmi.extensions.PortableRemoteObject;
import weblogic.wtc.gwt.TuxedoConnectionFactory;
import weblogic.wtc.gwt.TuxedoConnectionImpl;
import weblogic.wtc.jatmi.*;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import java.util.Hashtable;
public class ServiceLocater {
private TuxedoConnectionFactory tcf=null;
private Context ctx;
//获得配置文件路径
private ServiceLocater(Context ctx){
this.ctx=ctx;
}
private ServiceLocater(){
}
//single class instance
public static ServiceLocater getInstance(Context ctx){
ServiceLocater sl=null;
sl=new ServiceLocater(ctx);
return sl;
}
public static ServiceLocater getInstance(){
ServiceLocater sl=null;
sl=new ServiceLocater();
return sl;
}
//调用服务
public byte[] callService(String serviceName, byte[] sendDatas) throws NetException{
System.out.println(