SRC-VTA API 7.13

Juniper Networks Inc.
Session Resource Controll
Volume Tracking Application API 7.13

Use this API to develop Java applications that manage accounts of SRC-VTA subscribers.

See:
          Description

Packages
net.juniper.smgt.vta.datamgr.extif This is the API to be used for accessing and manipulating the VTA subscriber data.
net.juniper.smgt.vta.datamgr.im  

 

Use this API to develop Java applications that manage accounts of SRC-VTA subscribers. RemoteDataMgr is the interface that provides access to SRC-VTA subscriber data, including subscriber accounts, sessions, account balance change records and session balance change records. RemoteDataMgr is a J2EE session bean.

The following example shows how to get an instance of RemoteDataMgr.

    import javax.rmi.PortableRemoteObject;
    import java.util.Properties;
    import javax.naming.InitialContext;
    import net.juniper.smgt.vta.datamgr.extif.RemoteDataMgr;
    import net.juniper.smgt.vta.datamgr.extif.RemoteDataMgrHome;
    
    ...
    // Prepare JNDI environment
    Properties env = new Properties();
    env.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
    env.put("java.naming.provider.url", "jnp://localhost:1099");
    env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
    // Obtain JNDI InitialContext
    InitialContext initialContext = new InitialContext(env);    
    // Lookup RemoteDataMgr home interface
    Object sessBeanHomeObj = initialContext.lookup("Quota/RemoteDataMgrBean");
    RemoteDataMgrHome sessBeanHome = (RemoteDataMgrHome) PortableRemoteObject.narrow(sessBeanHomeObj, RemoteDataMgrHome.class);
    // Create the session bean
    RemoteDataMgr sessBean = sessBeanHome.create();
    ...
    


SRC-VTA API 7.13