Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 327
  • Last Modified:

Connecting to Outlook/Exchange using JSP

I need to connect to Microsoft Exchange 5.5 using JSP on a Solaris/Unix machine.  Specifically, I need to login to the Exchange server, and retrieve "Apppointments".
I know the typical way to connect to Exchange/Outlook is through the CDO object. However, objects such as CDO and MAPI are Windows based, and they are embedded in DLL files. How can I access Exchange with Solaris-based JSP? I've looked into "bridges" such as J-Integra which allow you to access Windows based objects on any platform. The problem is such technologies cost money; this is not an option for us in this project. Am I missing something? Is there an object I dont know about that I can use to access Exchange? I've spent days searching the internet for a solution and I've come empty-handed. Any suggestions would be greatly appreciated. Thank you in advance for your time.
0
jcharnis
Asked:
jcharnis
  • 2
1 Solution
 
BrckoCommented:
not simplest way, but probably usable, if you want only read

connect to Exchange throug IMAP protocol
get messages from Calendar folder
every message is an appointment in Calendar and has attachment
which looks like (explanation maybe somewhere on MSDN)

===========================================================

BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft CDO for Microsoft Exchange
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Sarajevo\, Skopje\, Sofija\, Vilnius\, Warsaw\, Zagreb
X-MICROSOFT-CDO-TZID:2
BEGIN:STANDARD
DTSTART:16010101T030000
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=10;BYDAY=-1SU
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T020000
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20030224T155904Z
DTSTART;TZID="Sarajevo, Skopje, Sofija, Vilnius, Warsaw, Zagreb":20030225T0
 83000
SUMMARY:Test apoitment
UID:CD0000008B9511D182D800C04FB1625D07F84525D18F324FB5A1EB643C07E06F
ORGANIZER;CN="Peter Laurinc":MAILTO:Peter.Laurinc@ibaware.sk
LOCATION:Test Location
DTEND;TZID="Sarajevo, Skopje, Sofija, Vilnius, Warsaw, Zagreb":20030225T100
 000
DESCRIPTION:Test description\N
SEQUENCE:0
PRIORITY:5
CLASS:
CREATED:20030224T155759Z
LAST-MODIFIED:20030224T155831Z
STATUS:TENTATIVE
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:OOF
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-OWNERAPPTID:-1
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:REMINDER
TRIGGER;RELATED=START:-PT01H00M00S
END:VALARM
END:VEVENT
END:VCALENDAR


=========================================================

Brcko
0
 
BrckoCommented:
don't know if this works on Exchange 5.5 can't test it, have only Exchange 2000
0
 
jcharnisAuthor Commented:
Thanks for the imput!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now