MainService.getInstance().getsessiondata()

will not return a Sessiondata instance. You need to pass the (corrent)
user_id from the Method calls that invoke the MailThread.

Sebastian

2011/7/26 Netbuilder <[email protected]>:
> Hi all,
> I need to know the ID of the logged user.
>
> in the MailThread.java I don't have any information.
>
> So:
> I've got the SID and I've tried to get some information by
> usernmanagement...
>        Sessiondata sessionData = MainService.getInstance().getsessiondata();
>        Long users_id =
> Sessionmanagement.getInstance().checkSession(sessionData.getSession_id());
>        Users user =
> Usermanagement.getInstance().getUserById(users_id);
>        log.debug("  MARZUCCHI: " + user);
>
> User is null.
>
> Help me!! Please.
> Thankyou
>
> --
> You received this message because you are subscribed to the Google Groups 
> "OpenMeetings developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/openmeetings-dev?hl=en.
>
>



-- 
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.wagner-sebastian.com
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/openmeetings-dev?hl=en.

Reply via email to