Refresh a component(this howto is deprecated)Tag(s): DEPRECATED


    Properties easerver = new java.util.Properties();
    easerver.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
    org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init
       ((String[]) null, easerver);
    SessionManager.Manager manager =
        SessionManager.ManagerHelper.narrow("iiop://myserver:9001");
    SessionManager.Session session = manager.createSession(user,pwd);
    com.sybase.jaguar.system.Management jagManagement =
       com.sybase.jaguar.system.ManagementHelper.narrow
        (session.create("Jaguar/Management"));
    jagManagement.refresh("Component", "MyPackage/MyComponent");
If on the same server and you don't want to specify a server name you can use
    SessionManager.Manager manager =
        SessionManager.ManagerHelper.narrow("iiop://0:0");

blog comments powered by Disqus