Hi,
I am working on a monitoring application in which I want to retrieve user information from the J2EE Engine.
I am using UME API for the same.
I have written the following code -
1. IUserFactory userFactory= UMFactory.getUserFactory();
2. IUser myUser = userFactory.getUser(request.getUserPrincipal().getName());
but an exception occurs at line-1 saying -
com.sap.security.api.UMRuntimeException: UME factory 'com.sap.security.api.IUserFactory' cannot be accessed because UME initialization has not started yet. Please check UMFactory.isInitialized() before using UME functionality.
Can anyone help me on this on how to initialize the UMFactory or how to retrieve user info from the j2ee server.
Any help will be highly appreciated.
Thanks & Regards,
Sunny