In a POP3 session, MyUsersRepository is checking credentials w/ another system that hands back a transient "session token" that is required for all subsequent calls. So, in MyMailRepository.list() when I get messages, I need to supply the session token I generated in MyUsersRepository.
I am accomplishing this now by using a singleton object and caching the session token with the username as the key. I get the username from the MyMailRepository.configure(). It works, but it seems like a hack. from MyMailRepository, I would like to do something like: MyUser user = (MyUser)getContext().getCurrentUser(); String sessionToken = user.getSessionToken(); Is this possible? Is there a better way than my singleton hack? -- View this message in context: http://www.nabble.com/UsersRepository---MailRepository-shared-context-tf3842098.html#a10879705 Sent from the James - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
