<?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</title><description>Knowledge Base: J-Integra : J-Integra for Exchange 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 09:35:15 GMT</lastBuildDate><ttl>20</ttl><generator>Knowledge Base: J-Integra</generator><item><title>How do I Install CDO (Collaboration Data Objects)?</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=113792</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 do I Install CDO (Collaboration Data Objects)?&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;There are a few ways to install CDO. The method to use depends on what version of Microsoft Outlook you currently have installed (if any). Since different copies of CDO cannot co-exist on the same machine, please only follow the instructions that apply to your system configuration.&lt;/P&gt;&lt;H2&gt;1. Microsoft Outlook is not installed&lt;/H2&gt;&lt;P&gt;Download and install the stand-alone Messaging API (MAPI) client version available &lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9-bff2-0a110307611e&amp;DisplayLang=en" target=blank&gt;here&lt;/A&gt;. &lt;H2&gt;2. Microsoft Outlook 2007&lt;/H2&gt;&lt;P&gt;Beginning in Outlook 2007, Microsoft no longer provides CDO as part of the product installation. However, since Outlook is a MAPI client itself, the stand-alone version that does not come pre-packaged with the MAPI client must be used. This version of CDO can be downloaded &lt;A href="http://www.microsoft.com/downloads/details.aspx?familyid=2714320D-C997-4DE1-986F-24F081725D36&amp;displaylang=en" target=blank&gt;here&lt;/A&gt;.Note: This version of CDO may only be used with Outlook 2007.  Microsoft does not support CDO with Office 2010 or later. &lt;H2&gt;3. Microsoft Outlook 2003 and earlier&lt;/H2&gt;&lt;P&gt;In Outlook 2003 and earlier, CDO is bundled as a component in MS Outlook; however, it is not installed by default when you install MS Outlook. The following steps demonstrate how to install CDO as a component of Outlook using a Windows XP machine. Similar steps apply for other operating systems. &lt;OL&gt;&lt;P&gt;&lt;LI&gt;Open Add or Remove Programs under Settings &gt; Control Panel. &lt;P&gt;&lt;/P&gt;&lt;LI&gt;Click on Change or Remove Programs on the left side bar and select Microsoft Off</description><pubDate>Tue, 18 Mar 2014 05:12:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Common J-Integra for Exchange Problems</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=129770</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;Common J-Integra for Exchange Problems&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;OL&gt;&lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=129770#Class not registered"&gt;Class not registered&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=129770#Illegal Argument Exception"&gt;Illegal Argument Exception&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=129770#MAPI_E_LOGON_FAILED or Interface not registered"&gt;MAPI_E_LOGON_FAILED or Interface not registered&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=129770#AutomationException: 0x80010106"&gt;AutomationException: 0x80010106 - Cannot change thread mode after it is set&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=129770#AutomationException: 0x5"&gt;AutomationException: 0x5 - Access is denied. in 'Invoke'&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=129770#AutomationException: 0x800706ba"&gt;AutomationException: 0x800706ba - The RPC server is unavailable&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=129770#IOException"&gt;java.io.IOException: Unable to establish RPC Connection to DCOM SCM on &lt;hostname/ip&gt; (Bind returned Bind_NAK)&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;&lt;A name="Class not registered"&gt;&lt;/A&gt;1. Class not registered&lt;/H2&gt;&lt;P&gt;You will get this error when CDO is not installed on the CDO machine and/or CDO is installed but no surrogate process exists for CDO. To install CDO, refer to KB article 113792. &lt;P&gt;To create a surrogate process for CDO, refer to the &lt;A href="http://j-integra.intrinsyc.com/support/exchange/doc/#GettingStarted/cdoconfigvb.htm" target=blank&gt;Getting Started Guide&lt;/A&gt; in the </description><pubDate>Tue, 25 Jan 2011 06:54: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>Using an Admin Account to Access Multiple Mailboxes</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=173004</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;Using an Admin Account to Access Multiple Mailboxes&lt;/H1&gt;&lt;P&gt;Other Java-Exchange connectors use MAPI and impersonation to access the Exchange Server. The motivation behind using impersonation is to be able to access multiple mailboxes without the need for special admin privileges. Although this is a feasible solution, it has been known to cause some problems. As Microsoft points out:&lt;/P&gt;&lt;P&gt;"We've seen a number of crashes in code that uses impersonation and then uses MAPI. Many of these relate to heap allocations occurring with one user context and then the deallocations happening with another context. Both the Exchange and Outlook development teams are aware of these issues. However, especially due to the problem with CreateThread, we've not been able to fix all of them."&lt;BR&gt;Source: &lt;A href="http://blogs.msdn.com/stephen_griffin/archive/2005/04/13/407925.aspx" target=blank&gt;http://blogs.msdn.com/stephen_griffin/archive/2005/04/13/407925.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Microsoft's suggested solution for accessing multiple mailboxes is to use an admin account instead of impersonation:&lt;/P&gt;&lt;P&gt;"If you're using impersonation in order to access multiple mailboxes, you may be doing too much work. […]code running under an administrator account with the right permissions […] can access any mailbox without doing any impersonation."&lt;BR&gt;Source: &lt;A href="http://blogs.msdn.com/stephen_griffin/archive/2005/04/13/407925.aspx" target=blank&gt;http://blogs.msdn.com/stephen_griffin/archive/2005/04/13/407925.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The technology used by J-Integra for Exchange to access multiple mailboxes is akin to what Microsoft recommends. As pointed out in this &lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=147062" target=blank&gt;knowledge base article&lt;/A&gt;, we require the use of an admin account when accessing multiple mailboxes.&lt;/P&gt;</description><pubDate>Mon, 17 Aug 2009 08:22:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>java.io.IOException: Unable to establish RPC Connection to DCOM SCM on &amp;lt;hostname/ip&amp;gt; (Bind returned Bind_NAK)</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183257</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;java.io.IOException: Unable to establish RPC Connection to DCOM SCM on &amp;lt;hostname/ip&amp;gt; (Bind returned Bind_NAK)&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;If using J-Integra for COM, please refer to the &lt;A HREF="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=30337#IOException"&gt;Common Java Exceptions&lt;/A&gt; article.&lt;/P&gt;&lt;P&gt;If using J-Integra for Exchange, please refer to the &lt;A HREF="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=129770#IOException"&gt;Common J-Integra for Exchange Problems&lt;/A&gt; article.&lt;/P&gt;</description><pubDate>Wed, 10 Jun 2009 07:24:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>AutomationException: 0x5 - Access is denied</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183256</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;AutomationException: 0x5 - Access is denied&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;If using J-Integra for COM, please refer to the &lt;A HREF="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=30337#0x80070005"&gt;Common Java Exceptions&lt;/A&gt; article.&lt;/P&gt;&lt;P&gt;If using J-Integra for Exchange, please refer to the &lt;A HREF="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=129770#AutomationException:%200x5"&gt;Common J-Integra for Exchange Problems&lt;/A&gt; article.&lt;/P&gt;</description><pubDate>Wed, 10 Jun 2009 07:17: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>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>"bad class file. class file has wrong version 50.0, should be 4x.0."</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183240</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;"bad class file. class file has wrong version 50.0, should be 4x.0."&lt;/H1&gt;&lt;P&gt;When compiling your code using the JAR files packaged with J-Integra for COM v2.7 or J-Integra for Exchange v2.7 (excel2007.jar &amp;amp; cdo.jar respectively) , you may receive an error similar to the one below: &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;SampleProgram.java:28: cannot access com.intrinsyc.cdo.Session&lt;BR&gt;bad class file: C:\Program Files\J-Integra\Exchange\lib\cdo.jar(com/intrinsyc/cdo/Session.class)&lt;BR&gt;class file has wrong version 50.0, should be 48.0&lt;BR&gt;Please remove or make sure it appears in the correct subdirectory of the classpath.&lt;BR&gt;            Session session = new Session(CDOmachine);&lt;BR&gt;            ^&lt;BR&gt;1 error&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;P&gt;These types of errors are caused by a Java version mismatch between the compiled proxies and your runtime.&lt;/P&gt;&lt;P&gt;Below are a list of some of the version numbers and their corresponding Java runtimes:&lt;BR&gt;Version 50.0 = Java 1.6.x&lt;BR&gt;Version 49.0 = Java 1.5.x&lt;BR&gt;Version 48.0 = Java 1.4.x&lt;/P&gt;&lt;P&gt;To resolve this issue, regenerate the proxies using com2java and compile them with your version of the Java SDK.  Alternatively, you can download some precompiled proxies from our &lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=81869"&gt;Precompiled Java Proxy JAR Files&lt;/A&gt; KB article.&lt;BR&gt; &lt;BR&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; The downloadable proxies were compiled using Java 1.4, except for Excel 2007, which for compatibility reasons, was compiled using Java 1.5.&lt;/P&gt;</description><pubDate>Tue, 12 Jun 2007 04:36: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>