Hi,
here the old code which doesn't work in WP 6.0
-------------------------------------------
ctx = new InitialContext();
Name myjndiname = new CompositeName(PumaHome.JNDI_NAME);
PumaHome myHome = (PumaHome) ctx.lookup(myjndiname);
if(myHome!=null){
PumaProfile pumaProfile = myHome.getProfile();
com.ibm.portal.puma.User user;
user = (com.ibm.portal.puma.User) pumaProfile.getCurrentUser();
utilisateurCourant = user.getUserID();
}
-------------------------------------------
Here the new code which works fine in WP 6.1
-------------------------------------------
ctx = new InitialContext();
Name myjndiname = new CompositeName(PumaHome.JNDI_NAME);
PumaHome myHome = (PumaHome) ctx.lookup(myjndiname);
if(myHome!=null){
PumaProfile pumaProfile = myHome.getProfile();
com.ibm.portal.um.User user;
user = (com.ibm.portal.um.User) pumaProfile.getCurrentUser();
List attributes = new ArrayList();
attributes.add("uid");
Map userAttributes = pumaProfile.getAttributes(user,attributes);
utilisateurCourant = (String) userAttributes.get("uid");
}
------------------------------------------
Bye.
St├ęphanie.