on 06-25-2009 7:35 AM
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
Check also this: http://help.sap.com/javadocs/nw04s/current/se/com/sap/security/api/UMFactory.html
It seems you are trying to access UME from a standalone application. In this case it requires explicit initialization via method initialize(...).
BR, Sergei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Puneet for your reply.
Yes I have added all the required jars -
com.sap.security.api.jar
com.sap.security.api.perm.jar
I think before retrieving user info the UMFactory should be initialized.
I am not getting the procedure on how to initialize it.
Can anyone plz provide me the steps or procedure for initializing UMFactory.
Thanks in advance,
Sunny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you added all the jars in your workspace??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.