Link to home
Start Free TrialLog in
Avatar of syeah
syeah

asked on

Accessing Exchange addresses through Java

I have a user table, group table, and a table that maps users to groups.  The users table contains email addresses, and rather than having to manually update these addresses I would like to obtain the information kept by Microsoft Exchange and use that to populate and update the email addresses.  Is there a way I can do this?
ASKER CERTIFIED SOLUTION
Avatar of jpk041897
jpk041897

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of syeah
syeah

ASKER

I am definitely interested in solution 2, mainly because it is a pure Java solution.  I am very unfamiliar with Exchange and where the information is kept, so I will need more information on that to fully understand.  Also, will an Active-X invlolved solution work in Netscape?  If you could send me more detail on this solution, it would be greatly appreciated.  You have already given me a ray of hope for a solution.
Active X solutions work fine in Nestcape 4+ but not in earlier versions. Although I thought you specified your solution as a stand alone application so I don't quite see where Netscape would come in.

If your question about Netsacpe is related to using and ActiveX solution, Active X is only a wrapper over DCOM (DCOM as I mentioned before is a distributed version of COM, which i just another name for OLE 2) that allows you to embed an OLE control on a web page. The OLE control, or application does not need to be embeded in order to be accesed.

Regarding documentation: You can get all the documentation that you need on exchange and COM/DCOM/OLE at:

http://www.microsoft.com/msdn

I believe you have to register to access the information, but registration its a free service.

You can dowload the Beans to Active X Bridge from:

http://www.javasoft.com/beans/software/bridge/index.html

as well as consult related documentation there.

Now, your situation is as follows (following solution (2) proposed earlier) Exchange is an OLE automation server which allows linking and embeding (not that you need these last 2 features for your app). As such, it is considered a COM object whoms properties may be accessed and modified by an active-X object property sheet. As such, the Beans to Active X bridge should allow you to access the object's (Exchange) property sheets as if they were a standard bean application.

All you realy need to do is hunt down in the MSDN, which properties allow you to manipulate the exchange databases.

One hurdle you might run into, is that you might have to build the exchange property sheet by writting a simple COM client app. (OCX). This OCX can then be acceses by beans.

Visual C++ contains sample code on how to write such an OCX client (if it were to become necesary to do so).

The process is not straight forward, so if your OLE/Bean knowhow is limited, plan on spending 2 or 3 weeks in the process.

Hope these comments help you in solving your problem.