<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Knowledge Base: J-Integra : J-Integra for Exchange : HOWTO</title><description>Knowledge Base: J-Integra : J-Integra for Exchange : HOWTO RSS 2.0 Feed</description><link>http://j-integra.intrinsyc.com/support/kb/</link><webMaster>j-integra_support@intrinsyc.com</webMaster><lastBuildDate>Sat, 18 Apr 2026 11:09:58 GMT</lastBuildDate><ttl>20</ttl><generator>Knowledge Base: J-Integra</generator><item><title>Configuring CDO on a 64-bit System</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183258</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;Configuring CDO on a 64-bit System&lt;/H1&gt;&lt;P&gt;The following outlines how CDO can be configured on a 64-bit Windows system.  Before continuing with this article, please familiarize yourself with the following documents (as they will be required later on): &lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=113792"&gt;How do I Install CDO (Collaboration Data Objects)&lt;/A&gt; and &lt;A href="http://j-integra.intrinsyc.com/support/exchange/doc/#GettingStarted/customConfig.htm"&gt;Custom CDO Configuration&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;It is assumed that J-Integra Exchange is installed (either by &lt;A href="http://j-integra.intrinsyc.com/download/archive.asp"&gt;ZIP or EXE&lt;/A&gt;) and that the PATH environment variable contains a valid reference to J-Integra's 'bin' folder.&lt;/P&gt;&lt;P&gt;&lt;OL&gt;&lt;LI&gt;Disable the Windows Firewall (and the UAC, if applicable).&lt;LI&gt;Install the CDO component (&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=113792"&gt;How do I Install CDO&lt;/A&gt;).&lt;LI&gt;Register CDO.DLL using the 'regsvr32.exe' utility located in the 'WINDOWS\SysWOW64' directory.&lt;LI&gt;Configure CDO according to the &lt;A href="http://j-integra.intrinsyc.com/support/exchange/doc/#GettingStarted/customConfig.htm"&gt;Custom CDO Configuration&lt;/A&gt; (NOTE: Start at Step 5, since CDO.DLL was registered in the step above).&lt;LI&gt;Restart the system.&lt;/OL&gt;&lt;/P&gt;</description><pubDate>Fri, 16 Mar 2012 04:32:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Retrieving the Global Address List (GAL) from an Exchange Server</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=82038</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;Retrieving the Global Address List (GAL) from an Exchange Server&lt;/H1&gt;&lt;P&gt;The following example demonstrates how to retrieve the Global Address List (GAL) from an Exchange server using CDO. Before you try this example, make sure that you have installed J-Integra and &lt;A href="http://j-integra.intrinsyc.com/support/exchange/doc/#GettingStarted/GettingStarted.htm" target=blank&gt;configured the Exchange server&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;For more information about the programming API of CDO, please refer to &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdo/html/78bd7f77-47e7-43ef-91fd-54abc7ca6a00.asp" target=blank&gt;Microsoft CDO Object Model&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The related article to the right explains how to retrieving additional fields from a contact record.&lt;/P&gt;&lt;/FONT&gt;&lt;TABLE border=0 cellSpacing=10 cellPadding=0 bgColor=#dddddd&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE&gt;import com.intrinsyc.cdo.*;public class GALExample {&lt;BR&gt;    public static void main(String[] args) {&lt;BR&gt;        //TODO: Change the following parameters based on your setup and configuration&lt;BR&gt;        // the logon parameters of the service account you used to configure CDO&lt;BR&gt;        String domain           = "mydomain";&lt;BR&gt;        String username         = "jsmith";&lt;BR&gt;        String password         = "password";&lt;BR&gt;        // the DNS name or IP address of the machine where you installed CDO&lt;BR&gt;        String CDOmachine       = "0.0.0.0";&lt;BR&gt;        // the DNS name or IP address of the Exchange Server&lt;BR&gt;        String exc</description><pubDate>Tue, 04 May 2010 08:55:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>How to Check Free/Busy Information From an Exchange Server</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=98399</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;How to Check Free/Busy Information From an Exchange Server&lt;/H1&gt;&lt;P&gt;The following code demonstrates how to check someone else's schedule for Free/Busy information using J-Integra and Exchange Server's Collaboration Data Objects (CDO 1.2). It is adapted from &lt;A href="http://support.microsoft.com/?id=186753" target=blank&gt;Microsoft Knowledge Base Article - 186753&lt;/A&gt;. Before you run this code, you should first &lt;A href="http://j-integra.intrinsyc.com/support/exchange/doc/#GettingStarted/gettingStarted.htm" target=blank&gt;configure your Exchange Server&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;TABLE cellPadding=0 rules=none bgColor=#dddddd frame=void x-use-null-cells&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width=10&gt;&lt;/TD&gt;&lt;TD class=code&gt;&lt;PRE&gt;/*This example is adapted from Microsoft Knowledge Base Article - 186753HOWTO: Check Someone Else's Schedule for Free/Busy Informationhttp://support.microsoft.com/?id=186753*/import com.intrinsyc.cdo.*;import com.linar.jintegra.Cleaner;public class GetFreeBusy{    // Modify the following variables based on your specific Exchange setup    static final String domain   = "DOMAIN";    //make sure it's all capitalized    static final String user     = "username";  //username of Exchange super user    static final String password = "password";  //password of Exchange super user    static final String mailbox  = "mailbox";   //mailbox name of Exchange super user    static final String CDOmachine = "000.000.000.000"; //IP address of the CDO machine    static final String server   = "000.000.000.000"; // IP address of Exchange server    static final String recipient1 = "joedoe"; // alias/login name of recipient    public static void main (String[] arg ){        try{            // authenticate to Windows            com.linar.jintegra.AuthInfo.setDefault(domain, user, password);            // create a Session in the CDOmachine            Session session = new Session(CDOmachine);            // logon to the Exchange Server            sessi</description><pubDate>Mon, 30 Mar 2009 03:07:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Using Events with Microsoft Exchange</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=30910</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;TABLE cellSpacing=0 width="100%" cellpading="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD vAlign=bottom&gt;&lt;H1&gt;Using Events with Microsoft Exchange&lt;/H1&gt;&lt;/TD&gt;&lt;TD vAlign=top align=right&gt;&lt;A href="http://j-integra.intrinsyc.com/products/com/" target=_blank alt="Java/J2EE COM Interoperability Products Page"&gt;&lt;/A&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Exchange is very different in the way it exposes events - you do not use a regular type library (CDO.DLL) and run com2java on it, etc. If you noticed, the type library contained in CDO.DLL does not have any declarations for exposed events. Events in the Exchange Server are actually run as a separate service known as the Microsoft Exchange Event Service (EVENTS.EXE). Two things of note: &lt;P&gt;1. The Event Service can only monitor folders stored on an Exchange server. It will not monitor folders stored on the local machines of users. For that, you'll need the Outlook type library instead (which contains events you can hook into) and not CDO.DLL. &lt;P&gt;2. The Event Service fires events asynchronously rather than synchronously in the context of the Exchange Information Store, so the Information Store won't block your event script, other processes, or people from working on items in the folder if the script hasn't run yet. &lt;H3&gt;The general idea&lt;/H3&gt;&lt;P&gt;The Event Service monitors changes to a folder and triggers an event if such change occurs. A change could either be one of the following: &lt;UL&gt;&lt;LI&gt;A new item is added to a folder (e.g. an new mail arrives in your inbox) &lt;LI&gt;An existing item is modified (e.g. the business phone number of a contact item is changed) &lt;LI&gt;An item is deleted &lt;LI&gt;Scheduled events (e.g. events that are triggered every Saturday at 1:00 am) &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Once the Event Service realizes that a change has occurred, it fires an event. It then looks for a corresponding event handler in the folder. The Exchange Event Service ships with one pre-built event handler, named the Exchange Event Scripting Agent that you can bind t</description><pubDate>Mon, 23 Mar 2009 03:11:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>How to Send a Task Item</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=125224</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;TABLE cellSpacing=0 width="100%" cellpading="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD vAlign=bottom&gt;&lt;H1&gt;How to Send a Task Item&lt;/H1&gt;&lt;/TD&gt;&lt;TD vAlign=top align=right&gt;&lt;A href="http://j-integra.intrinsyc.com/products/com/" target=_blank alt="Java/J2EE COM Interoperability Products Page"&gt;&lt;/A&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The following Java code shows how to create and send a task item using CDO and J-Integra for Exchange. For more information on CDO Type property fields, refer to&lt;BR&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/ms526914.aspx" target=_blank&gt;CDO Object Model&lt;/A&gt;.&lt;BR&gt;&lt;P&gt;&lt;TABLE cellSpacing=10 cellPadding=0 bgColor=#dddddd border=0&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE&gt;import com.linar.jintegra.*;import com.intrinsyc.cdo.*;import java.util.Date;public class SendTaskRequest {    // Modify the following variables based on your specific setup    // domain where the CDO host machine belongs, make sure it's all capitalized    static String domain = "DOMAIN";    // Java-Exchange username    static String user = "username";    // password of Java-Exchange user    static String password = "password";    // mailbox of Java-Exchange user    static String mailbox    = "mailbox";    // IP address or name of the CDO host machine    static String CDOmachine = "000.000.000.000";    // IP address or name of the Exchange Server    static String exchangeServer = "000.000.000.000";    // e-mail address of the person assigned for this task    static String assignTo      = "someone@somewhere.com";    // MAPI Constants to determine property set and individual properties    // specific to task items    static String CDOPROPSETID2 = "0320060000000000C000000000000046";    static String CDOTASK_STARTDATE = "0x8104";    static String CDOTASK_DUEDATE = "0x8105";    static String CDOTASK_PERCENTCOMPLETE = "0x8102";    public static void main(String[] args) {        try {            // Authenticate to NT domain via NTLM            Au</description><pubDate>Wed, 25 Feb 2009 04:59:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Working With Recurring Calendar Items</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183246</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;Working With Recurring Calendar Items&lt;/H1&gt;&lt;P&gt;This article demonstrates how to work with recurring Calendar items, such as Appointments and Meetings.  The code snippets that follow use a basic Appointment for illustration, however, they can easily be adapted to Meeting Requests (see &lt;A href="http://j-integra.intrinsyc.com/support/exchange/doc/#examples/calendar.htm#meeting_request" target=blank&gt;here for more details&lt;/A&gt;).  For more information on the RecurrencePattern object, please refer to the &lt;A href="http://msdn.microsoft.com/en-us/library/ms526361%28EXCHG.10%29.aspx" target=blank&gt;Microsoft CDO reference&lt;/A&gt;.&lt;/P&gt;&lt;H2&gt;Creating a recurring Appointment:&lt;/H2&gt;&lt;P&gt;&lt;TABLE cellPadding=0 rules=none bgColor=#dddddd frame=void x-use-null-cells&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width=10&gt;&lt;/TD&gt;&lt;TD class=code&gt;&lt;PRE&gt;import com.intrinsyc.cdo.*;import java.util.Date;import java.text.SimpleDateFormat;public class RecurrenceTesting {    public static void main(String[] args) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        String domain           = "";        String username         = "";        String password         = "";        String CDOmachine       = "";        String exchangeServer   = "";        String mailbox          = "";        try {            // Authenticate to Windows            com.linar.jintegra.AuthInfo.setDefault(domain, username, password);            // Create Session and Logon            Session session = new Session(CDOmachine);            session.logon(                null,                null,                Boolean.valueOf(false),                Boolean.valueOf(true),                Boolean.valueOf(false),                Boolean.valueOf(false),                exchangeServer + "&lt;br&gt;" + mailbox            );            // Retrieve Messages collection from Calendar and add new AppointmentItem            Integer defaultCalendar = Integer.valueOf(CdoDefaultFolderTypes.CdoDefaultFolderCalendar);            Folder calendar = new FolderProxy(</description><pubDate>Mon, 01 Dec 2008 05:49:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>CDO Filter on AppointmentItems</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=61643</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;CDO Filter on AppointmentItems&lt;/H1&gt;&lt;P&gt;According to &lt;A href="http://support.microsoft.com/support/kb/articles/q192/4/04.asp" target=blank&gt;Microsoft Knowledge Base Article - 192404&lt;/A&gt;, when filtering on a collection of Collaboration Data Objects (CDO) AppoinmentItems, the Start and End dates must be reversed to make the filter work as expected.&lt;/P&gt;&lt;P&gt;The following example maps the VB code in the article 192404 to Java.&lt;/P&gt;&lt;H3&gt;VB&lt;/H3&gt;&lt;TABLE id=AutoNumber1 cellSpacing=1 width="90%" border=1&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;FONT face="Courier New" size=2&gt;'You must add a Reference to Microsoft CDO version 1.21.&lt;BR&gt;Set objSession = CreateObject("MAPI.Session")&lt;BR&gt;&lt;BR&gt;objSession.Logon&lt;BR&gt;Set objCalendar = objSession.GetDefaultFolder(MAPI.CdoDefaultFolderCalendar)&lt;BR&gt;Set oMsgColl = objCalendar.Messages&lt;BR&gt;&lt;BR&gt;Set oMsgFilter = oMsgColl.Filter&lt;BR&gt;oMsgFilter.Fields.Add &lt;FONT color=#800080&gt;CdoPR_START_DATE&lt;/FONT&gt;, &lt;FONT color=#008000&gt;"10/1/06"&lt;/FONT&gt;&lt;BR&gt;oMsgFilter.Fields.Add &lt;FONT color=#800080&gt;CdoPR_END_DATE&lt;/FONT&gt;, &lt;FONT color=#008000&gt;"9/1/06"&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;Set oAppt = oMsgColl.GetFirst&lt;BR&gt;MsgBox oAppt.Subject&lt;BR&gt;&lt;BR&gt;Do While (Not oAppt Is Nothing)&lt;BR&gt;  MsgBox oAppt.Subject&lt;BR&gt;  Set oAppt = oMsgColl.GetNext&lt;BR&gt;Loop&lt;BR&gt;objSession.Logoff&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H3&gt;Java&lt;/H3&gt;&lt;TABLE id=AutoNumber2 cellSpacing=1 width="90%" border=1&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;import com.intrinsyc.cdo.*;&lt;BR&gt;import com.linar.jintegra.AuthInfo;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;public class CalendarFilter {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;    //TODO: Change the following parameters based on your setup and configuration&lt;BR&gt;    static String domain            = "MYDOMAIN";&lt;BR&gt;    static String user              = "USERNAME";&lt;BR&gt; </description><pubDate>Mon, 01 Dec 2008 02:30:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Search Messages and Appointments by Entry ID</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183230</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;How to Search and Retrieve Messages and Appointments by their Message ID&lt;/H1&gt;&lt;P&gt;The following code demonstrates how to search an appointment item by its entry ID. You can apply the same example in searching for other Exchange item types like messages, contacts, task, etc. For more information on message ID's, please refer to the &lt;A href="http://msdn.microsoft.com/library/en-us/cdo/html/6fb473f0-108a-433c-bdae-fdeb80bcf34f.asp" target=blank&gt;Microsoft CDO reference&lt;/A&gt;. Before you run this code, you should first &lt;A href="http://j-integra.intrinsyc.com/support/exchange/doc/#GettingStarted/gettingStarted.htm" target=blank&gt;configure CDO&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;TABLE cellPadding=0 rules=none bgColor=#dddddd frame=void x-use-null-cells&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width=10&gt;&lt;/TD&gt;&lt;TD class=code&gt;&lt;PRE&gt;import com.intrinsyc.cdo.*;import com.linar.jintegra.AuthInfo;public class GetMessageByID {    //TODO: Change the following parameters based on your setup and configuration    static String domain            = "mydomain";    static String user              = "jsmith";    static String password          = "password";    static String CDOmachine        = "0.0.0.0";    static String exchangeServer    = "0.0.0.0";    static String mailbox           = "jsmith";    public static void main (String[] arg ){        try {            // Authenticate to NT domain via NTLM            AuthInfo.setDefault(domain, user, password);            // Start a MAPI Session            Session session = new Session(CDOmachine);            // Logon to the Exchange Server            session.logon(null, null, new Boolean(false), new Boolean(true),                    new Integer(0), new Boolean(true),                    exchangeServer + "&lt;br&gt;" + mailbox);            // Retrieve appointment items from the Calendar            Integer folderID = new Integer(CdoDefaultFolderTypes.CdoDefaultFolderCalendar);            Folder calendar = new FolderProxy(session.getDefa</description><pubDate>Wed, 27 Aug 2008 08:04:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Send an HTML Message</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183243</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;How to Send an HTML Message&lt;/H1&gt;&lt;P&gt;The following example demonstrates a workaround to send an HTML message using CDO (which does not support the automatic generation of HTML for HTML messages) and J-Integra for Exchange.  The code below writes the HTML information to one of the Message object's fields.  For more information about Field objects, please refer to the &lt;A href="http://msdn2.microsoft.com/en-us/library/ms526701%28VS.85%29.aspx"&gt;Microsoft CDO reference&lt;/A&gt;.  Before running this code, please ensure that &lt;A href="http://j-integra.intrinsyc.com/support/exchange/doc/#GettingStarted/gettingStarted.htm"&gt;CDO has first been configured&lt;/A&gt;.&lt;/P&gt;&lt;H2&gt;Java Application Code (HTMLTest.java):&lt;/H2&gt;&lt;P&gt;&lt;TABLE cellPadding=0 rules=none bgColor=#dddddd frame=void x-use-null-cells&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width=10&gt;&lt;/TD&gt;&lt;TD class=code&gt;&lt;PRE&gt;import com.linar.jintegra.Cleaner;import com.intrinsyc.cdo.*;import java.io.*;public class HTMLTest {    public static void main(String[] args) {&amp;nbsp;&amp;nbsp;//TODO: Change the following parameters based on your setup and configuration        String domain           = "domain";        String username         = "username";        String password         = "password";        String CDOmachine       = "0.0.0.0";        String exchangeServer   = "0.0.0.0";                String mailbox          = "mailbox";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String tempFile = "HTMLTest.txt";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;try {&amp;nbsp;&amp;nbsp;    // authenticate to Windows            com.linar.jintegra.AuthInfo.setDefault(domain, username, password);            // create a Session in the CDOmachine            Session session = new Session(CDOmachine);            // logon to the Exchange Server            session.logon(null, null, new Boolean(false), new Boolean(true),                          new Boolean(false), new Boolean(false),                          exchangeServer + "&lt;br&gt;" + mailbox);            // create a message in the Outbox            Integer folderType = new Integer(CdoD</description><pubDate>Wed, 09 Jan 2008 09:27:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Retrieve the Members of a Private Distribution List</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183242</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;How to Retrieve the Members of a Private Distribution List&lt;/H1&gt;&lt;P&gt;The following piece of code demonstrates how to retrieve the members of Private Distribution List stored in a user's Contacts folder.  For more information about any CDO object or method used below, please refer to the &lt;A href="http://msdn2.microsoft.com/en-us/library/ms526914.aspx"&gt;Microsoft CDO reference&lt;/A&gt;.  Before running this code, please ensure that you have &lt;A href="http://j-integra.intrinsyc.com/support/exchange/doc/#GettingStarted/gettingStarted.htm"&gt;first configured CDO&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;TABLE cellPadding=0 rules=none bgColor=#dddddd frame=void x-use-null-cells&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width=10&gt;&lt;/TD&gt;&lt;TD class=code&gt;&lt;PRE&gt;import com.intrinsyc.cdo.*;import com.linar.jintegra.Cleaner;public class RetrievePrivateDLMembers {    public static void main(String[] args) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.setProperty("JINTEGRA_RELEASEALL_SHUTDOWN_HOOK", "");        //TODO: Change the following parameters based on your setup and configuration        // the logon parameters of the service account you used to configure CDO        String domain           = "domain";        String username         = "username";        String password         = "password";        // the DNS name or IP address of the machine where you installed CDO        String CDOmachine       = "0.0.0.0";        // the DNS name or IP address of the Exchange Server        String exchangeServer   = "0.0.0.0";        // the mailbox you wish to access (NOTE: this is the same as the user's login name        // e.g., if the username is jsmith, mailbox would also be jsmith )        String mailbox          = "mailbox";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// field and propset ids&amp;nbsp;&amp;nbsp;String CdoPropSetID3 = "0420060000000000C000000000000046";&amp;nbsp;&amp;nbsp;String CdoContact_PrivateDLMemberIDs = "0x8054";        try {            // use credentials of service account to authenticate to Windows            com.linar.jintegra.AuthInfo.setDefault(domain, username, pas</description><pubDate>Thu, 01 Nov 2007 05:35:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Forward, Copy, or Move a Message</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183239</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;How to Forward, Copy, or Move a Message&lt;/H1&gt;&lt;P&gt;The following piece of code demonstrates how to Forward, Copy, or Move the most recent message in a user's Inbox.  Each &lt;EM&gt;independent&lt;/EM&gt; action (Forward, Copy, and Move) is clearly commented for ease of use and illustration.  Please note that the above actions are presented together only for the sake of efficiency, and are &lt;EM&gt;not&lt;/EM&gt; dependent upon one another for proper functionality.  For more information about Message objects, please refer to the &lt;A href="http://msdn.microsoft.com/library/en-us/cdo/html/06c4713a-704b-47bc-8b5d-7c49c094b8cd.asp"&gt;Microsoft CDO reference&lt;/A&gt;.  Before running this code, please ensure that &lt;A href="http://j-integra.intrinsyc.com/support/exchange/doc/#GettingStarted/gettingStarted.htm"&gt;CDO has first been configured&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;TABLE cellPadding=0 rules=none bgColor=#dddddd frame=void x-use-null-cells&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width=10&gt;&lt;/TD&gt;&lt;TD class=code&gt;&lt;PRE&gt;import com.intrinsyc.cdo.*;import com.linar.jintegra.Cleaner;public class ForwardCopyMoveMessage {    public static void main(String[] args) {        // TODO: Change the following parameters based on your setup and configuration        // the logon parameters of the service account you used to configure CDO        String domain           = "domain";        String username         = "username";        String password         = "password";        // the DNS name or IP address of the machine where you installed CDO        String CDOmachine       = "0.0.0.0";        // the DNS name or IP address of the Exchange Server        String exchangeServer   = "0.0.0.0";        // the mailbox you wish to access (NOTE: this is the same as the user's login name        // e.g., if the username is jsmith, mailbox would also be jsmith )        String mailbox          = "mailbox";        try {            // use credentials of service account to authenticate to Windows.            com.linar.jintegra</description><pubDate>Thu, 01 Nov 2007 05:12:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Retrieve and Store Attachments from Messages</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183232</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;How to Retrieve and Store Attachments from a Message&lt;/H1&gt;&lt;P&gt;The following pieces of code demonstrate how to extract an attachment (either a data file or an embedded message) from the most recent message in a user's Inbox.  For more information about Attachment objects, please refer to the &lt;A href="http://msdn.microsoft.com/library/en-us/cdo/html/55f941ed-4d16-4c46-bf1b-b3a1d6574012.asp"&gt;Microsoft CDO reference&lt;/A&gt;.  Before running this code, please &lt;A href="http://j-integra.intrinsyc.com/support/exchange/doc/#GettingStarted/gettingStarted.htm"&gt;configure CDO first&lt;/A&gt;.&lt;/P&gt;&lt;H2&gt;Retrieving and Storing an Attached Data File:&lt;/H2&gt;&lt;P&gt;&lt;TABLE cellPadding=0 rules=none bgColor=#dddddd frame=void x-use-null-cells&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width=10&gt;&lt;/TD&gt;&lt;TD class=code&gt;&lt;PRE&gt;import com.intrinsyc.cdo.*;import com.linar.jintegra.Cleaner;import java.io.*;public class GetAttachment {    public static void main(String[] args) {        //TODO: Change the following parameters based on your setup and configuration        // the logon parameters of the service account you used to configure CDO        String domain           = "domain";        String username         = "username";        String password         = "password";        // the DNS name or IP address of the machine where you installed CDO        String CDOmachine       = "0.0.0.0";        // the DNS name or IP address of the Exchange Server        String exchangeServer   = "0.0.0.0";        // the mailbox you wish to access (NOTE: this is the same as the user's login name        // e.g., if the username is jsmith, mailbox would also be jsmith )        String mailbox          = "mailbox";        try {            // use credentials of service account to authenticate to Windows            com.linar.jintegra.AuthInfo.setDefault(domain, username, password);            // create a Session in the CDOmachine            Session session = new Session(CDOmachine);         </description><pubDate>Thu, 01 Nov 2007 04:38:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Retrieving Additional Fields from a Contact Record When Accessing Exchange</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=53135</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;TABLE cellSpacing=0 width="100%" cellpading="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD vAlign=bottom&gt;&lt;H1&gt;Retrieving Additional Fields from a Contact Record When Accessing Exchange&lt;/H1&gt;&lt;/TD&gt;&lt;TD vAlign=top align=right&gt;&lt;A href="http://j-integra.intrinsyc.com/products/com/" target=_blank alt="Java/J2EE COM Interoperability Products Page"&gt;&lt;/A&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The &lt;A href="http://j-integra.intrinsyc.com/support/com/doc/#java_exchange/javadocs/com/intrinsyc/jeb/jebContact.html" target=blank&gt;JebContact&lt;/A&gt; class is the wrapper of Exchange Contact. If you intend to retrieve additional contact fields other than those directly supported by the methods of JebContact, new methods can be added to JebContact for this purpose. &lt;/P&gt;&lt;H2&gt;Prerequisites&lt;/H2&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="http://java.sun.com/j2se/" target=_blank&gt;JDK 2.x or higher&lt;/A&gt; &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/" target=_blank&gt;J-Integra&lt;/A&gt; &lt;LI&gt;&lt;B&gt;MS Exchange Server Version 5.5 Service Pack 4 (or higher), MS Exchange 2000 Service Pack 3 (or higher), or MS Exchange 2003&lt;/B&gt; &lt;LI&gt;Ensure that you have installed the J-Integra license &lt;LI&gt;Make sure you have &lt;A href="http://j-integra.intrinsyc.com/support/com/doc/#jintegra4exchange/config.html" target=blank&gt;configured the Exchange Server&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;H2&gt;Add New Methods&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Find &lt;B&gt;JebContact.java&lt;/B&gt;, which is in your &lt;B&gt;&lt;J-INTEGRA installation directory&gt;\source\com\intrinsyc\jeb &lt;/B&gt;folder.&lt;TT&gt;&lt;FONT face=Arial&gt;&lt;BR&gt;&lt;BR&gt;For example, &lt;/FONT&gt;&lt;/TT&gt;&lt;FONT face="Courier New"&gt;&lt;TT&gt;C&lt;/TT&gt;&lt;/FONT&gt;&lt;TT&gt;&lt;FONT face="Courier New"&gt;:\jintegra\source\com\intrinsyc\jeb\JebContact.java&lt;/FONT&gt;&lt;/TT&gt; &lt;TT&gt;&lt;FONT face=Arial&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/TT&gt;&lt;BR&gt;&lt;LI&gt;Backup it by copying and pasting, and name the backup file as &lt;B&gt;JebContact_backup.java&lt;/B&gt;.&lt;TT&gt;&lt;FONT face=Arial&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/TT&gt;&lt;BR&gt;&lt;LI&gt;Open &lt;B&gt;JebContact.java&lt;/B&gt;. Look up the &lt;FONT color=#000000&gt;property &lt;/FONT&gt;tag of field from the &lt;B&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=53</description><pubDate>Mon, 25 Sep 2006 09:45:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item></channel></rss>