I\'m trying to write an java application that will access a additional, shared mailbox to read emails and perform other activities. I have no problem reading my own
The solution given by Tarun works. But an important note use the alias of the shared account and not the actual email address of shared account.
So the actual format is:
store.connect(DOMAIN, "USER@xyz.com\SHARED_ACCOUNT_ALIAS","USER_PASSWORD");