Personal Email Contacts

Hi,

I am using Sun Java System Messaging Server that bundles with Sun Java Communication Suite. I am new to Messaging Server. My questions are:

1. how and where are the personal email contacts stored?

2. is there any java api to access these personal email contacts?

Thanks in advance,

Kamal

[329 byte] By [kamal_bahadur] at [2007-11-26 11:51:49]
# 1

Hi,

There are two address-books in Messaging Server. Both address-books are stored in the sun directory server that should have been installed as part of the communications suite. Which address-book you need to access will depend on whether you use communication express (the current interface) or messenger express (the old outgoing interface).

The entries are stored and accessible via the LDAP protocol. There is no 'java-api' to get the information. You should be able to find any number of api's to perform the required ldap searches to get the data out of the address-book. I suggest you research into the LDAP protocol.

Regards,

Shane.

shane_hjorth at 2007-7-7 12:07:14 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2
Hi shane,I think that's not so easy. Global address book are stored in standard LDAP form but Personal address book are stored under o=domain_name,o=PiserverDB.This Address book is not standard at all and LDAP clients dosent recognize it.Regards.
cuoyot at 2007-7-7 12:07:14 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3
It might help us to help you if we knew what you were trying to connect to Address Book.
jay_plesset at 2007-7-7 12:07:14 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 4

Hi,

We are trying to retrieve the contacts from the communication express. And post the same to a Contact Client(In House Developed). We are wondering as what are the attributes needed to retrieve the contacts. Any sample code would be of great assistance to us.

Regards

--Srinivas

cheenu1978 at 2007-7-7 12:07:14 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 5

Hi,

You should be able to fairly easily reverse-engineer the information stored in the addressbook e.g.

Everything under:

piPStoreOwner=user002,o=domain1.com,o=PiServerDb

is the addressbook data you need.

An example entry is:

piEntryID=e10f0d353df9e0d,piPStoreOwner=user002,o=domain1.com,o=PiServerDb

objectClass=PITYPEPERSON

objectClass=piEntry

objectClass=top

memberOfPIBook=e10c89ae806b0

displayName=Test, User

givenName=Test

sn=User

piEmail2Type=home

piEmail2=test.user@domain3.com

piEntryID=e10f0d353df9e0d

Regards,

Shane.

shane_hjorth at 2007-7-7 12:07:14 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 6

Hi Shane,

I am using the following to view personal address book:

ou=People,o=example.com,dc=example,dc=com,o=pab

Actually I am accessing personal address book of many users from java class. Is there any standard way to build the above DN?

Thanks and Regards,

Kamal

kamal_bahadur at 2007-7-7 12:07:14 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...