09-06-2018 08:44 AM
Solved! Go to Solution.
09-06-2018 12:00 PM
This is described in NSO documentation, book Development, chapter Java API overview/MAAPI:
maapi.startUserSession("admin", InetAddress.getByName("localhost"), "maapi", new String[] {"admin"}, MaapiUserSessionFlag.PROTO_TCP);
int th = maapi.startTrans(Conf.DB_RUNNING, Conf.MODE_READ_WRITE);
Your needs may vary a bit, e.g. you may want to use the username from the action context, or you need READ_ONLY transaction, etc.
09-06-2018 12:00 PM
This is described in NSO documentation, book Development, chapter Java API overview/MAAPI:
maapi.startUserSession("admin", InetAddress.getByName("localhost"), "maapi", new String[] {"admin"}, MaapiUserSessionFlag.PROTO_TCP);
int th = maapi.startTrans(Conf.DB_RUNNING, Conf.MODE_READ_WRITE);
Your needs may vary a bit, e.g. you may want to use the username from the action context, or you need READ_ONLY transaction, etc.
09-06-2018 09:48 PM
Thank you very much
09-07-2018 01:26 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide