Refresh Jaguar roles(this howto is deprecated)Tag(s): DEPRECATED


import com.sybase.jaguar.servlet.ServletServiceHelper;
import com.sybase.jaguar.servlet.ServletServiceOperations;
import org.omg.CORBA.ORB;


private void refreshRoles() {
 try{
    Properties env = new Properties();
    ORB orb = null;
    com.sybase.jaguar.servlet.ServletService ss = null;
    env.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
    orb = ORB.init(((String []) (null)), env);
    ss = ServletServiceHelper.narrow
       (orb.string_to_object("JaguarServlet/ServletService"));
    ss.refreshRoles();
    }
 catch(Exception e){
    e.printStackTrace();
    }
 }



blog comments powered by Disqus