<?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</title><description>Knowledge Base: J-Integra RSS 2.0 Feed</description><link>http://j-integra.intrinsyc.com/support/kb/</link><webMaster>j-integra_support@intrinsyc.com</webMaster><lastBuildDate>Fri, 09 May 2008 12:47:20 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;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;amp;displaylang=en" target=blank&gt;here&lt;/A&gt;. &lt;H2&gt;3. Microsoft Outlook 2003 and earlier&lt;/H2&gt;&lt;P&gt;In Outlook 2003 and ealirer, 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 &amp;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 Office on the Currently Installed Programs box on the right. Then, click on Change. &lt;P&gt; &lt;IMG hspace=0 </description><pubDate>Tue, 22 Apr 2008 04:32:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Working with Custom Document Properties in Microsoft Word 2003</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=107452</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;Working with Custom Document Properties in Microsoft Word 2003&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 is a glitch in the type library of Microsoft Word 2003 which makes it confusing for Word developers to work with Custom Document Properties programmatically. If you browse through the Word type library (MSWORD.OLB) using Visual Basic's Object Browser and look for CustomProperties, you will see that the Add function has the following signature: &lt;P&gt;  Function Add(Name As String, Value As String) As CustomProperty Member of Word.CustomProperties &lt;P&gt;Note that the function accepts two string parameters. Consequently, com2java will generate the corresponding Java method for this function as follows: &lt;P&gt;  public word.CustomProperty add(String name, String value) &lt;P&gt;When you then call CustomProperties.Add() from Java passing it two valid String parameters, you will get an exception from your Java client that looks as follows: &lt;P&gt;  java.lang.ClassCastException: A COM object reference via iid &lt;BR&gt;  00020400-0000-0000-c000-000000000046 does not support COM&lt;BR&gt;  interface b923fde1-f08c-11d3-91b0-00105a0a19fd&lt;BR&gt;    at com.linar.jintegra.Dispatch.b(Unknown Source)&lt;BR&gt;    at com.linar.jintegra.Dispatch.vtblInvoke(Unknown Source)&lt;BR&gt;    at word.CustomPropertiesProxy.add(CustomPropertiesProxy.java:212)&lt;BR&gt;    at CustomDocProperties.main(CustomDocProperties.java:37) &lt;P&gt;When to attempt to call the same function from VB passing it 2 string parameters as required by the function signature, you will get the following error: &lt;P&gt;&lt;I&gt;Run-time error '450': Wrong number of arguments or invalid property assignment&lt;/I&gt; &lt;P&gt; &lt;IMG hspace=0 sr</description><pubDate>Tue, 22 Apr 2008 03:23:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Supported JDKs and Platforms</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=30963</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;Supported JDKs and Platforms&lt;/H1&gt;&lt;P&gt;All J-Integra products are supported on the following JDKs and Platforms. Customers are also using our J-Integra products on additional JDK/Platform combinations not listed below, including non-Windows platforms such as Linux. If you experience technical issues with any JDK/Platform not listed below, please &lt;A href="http://j-integra.intrinsyc.com/support/"&gt;contact support&lt;/A&gt; and we will take all commercially reasonable steps to support it.&lt;/P&gt;&lt;H2&gt;Supported JDKs&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;Sun Microsystems JDK 1.2 &lt;LI&gt;Sun Microsystems JDK 1.3 &lt;LI&gt;Sun Microsystems JDK 1.4 &lt;LI&gt;Sun Microsystems JDK 5 &lt;LI&gt;Sun Microsystems JDK 6 &lt;LI&gt;IBM JDK 1.3* &lt;LI&gt;IBM JDK 1.4&lt;/LI&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size=1&gt;* Embedding ActiveX controls will not work with IBM's JDK 1.3.x because it does not support Sun's AWT Native Interface (jawt.dll). However, this is the only limitation with this JDK (all other J-Integra functionality is supported). &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;H3&gt;Notes:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Only 32-bit JVMs are supported. There are no plans to support 64-bit JVMs.&lt;/LI&gt;&lt;LI&gt;EJB 3.0 (specifically "annotations") is not supported.&lt;/LI&gt;&lt;/OL&gt;&lt;/UL&gt;&lt;H2&gt;Supported Microsoft Windows Platforms&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;Microsoft Windows NT 4.0 (including SP6) &lt;LI&gt;Microsoft Windows 2000 (including SP4) &lt;LI&gt;Microsoft Windows XP (including SP2) &lt;LI&gt;Microsoft Windows Server 2003 (including R2 and SP3) &lt;LI&gt;Microsoft Windows Vista &lt;/LI&gt;&lt;H3&gt;Notes:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Both 32-bit and 64-bit Windows platforms are supported.&lt;/LI&gt;&lt;/OL&gt;&lt;/UL&gt;&lt;H2&gt;Supported Microsoft Exchange Platforms&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;Microsoft Exchange 5.5 &lt;LI&gt;Microsoft Exchange 2000 &lt;LI&gt;Microsoft Exchange 2003&lt;/LI&gt;&lt;LI&gt;Microsoft Exchange 2007&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;&lt;BR&gt; &lt;/H2&gt;&lt;/FONT&gt;</description><pubDate>Mon, 07 Apr 2008 08:03:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Questions Regarding JCOM</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=65892</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;Questions Regarding JCOM&lt;/H1&gt;&lt;P&gt;JCOM is a version of J-Integra which &lt;A href="http://www.bea.com/" target=blank&gt;BEA&lt;/A&gt; ships with their WebLogic Server (WLS). They have licensed the J-Integra source code and integrated it into WLS. &lt;B&gt;BEA has asked that all JCOM support requests go through &lt;A href="mailto:support@bea.com"&gt;BEA Support&lt;/A&gt; (not through J-Integra Support).&lt;/B&gt; So if you wish to use the WLS version of J-Integra (JCOM), then you will have to send JCOM support requests to BEA directly.&lt;/P&gt;&lt;H2&gt;Updating JCOM to the latest version of J-Integra&lt;/H2&gt;&lt;P&gt;The JCOM classes that are shipped with WLS are based on older versions of J-Integra. If you wish to test your JCOM application with the latest version of J-Integra (e.g. to see if there are any differences in functionality), do the following:&lt;/P&gt;&lt;P&gt;&lt;B&gt;1.&lt;/B&gt; Download a copy of the latest version of J-Integra from our &lt;A HREF=http://j-integra.intrinsyc.com/download/default.aspx?ProductId=com&gt;website&lt;/A&gt;. A J-Integra license is not required if you have a valid WebLogic license.&lt;P&gt;&lt;B&gt;2.&lt;/B&gt; Update the startWebLogic.cmd startup script by adding a JINTEGRA_HOME variable and &lt;U&gt;prefixing&lt;/U&gt; the CLASSPATH with the jintegra.jar. The jintegra.jar must be placed &lt;STRONG&gt;in front&lt;/STRONG&gt; of the WEBLOGIC_CLASSPATH in order to ensure that the updated classes will be used instead of the ones in weblogic.jar (WLS 8.1 and earlier) or jcom.jar (WLS 10.0).&lt;P&gt;&lt;EM&gt;* Note: If you are using the examplesServer on WLS 8.1, you need to update the startExamplesServer.cmd script instead.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;3.&lt;/B&gt; Add a system PATH variable that places the J-Integra \bin directory &lt;STRONG&gt;in front&lt;/STRONG&gt; of the existing PATH. Doing so ensures that the updated J-Integra tools (i.e. jintmk.dll, ntvinv.dll, etc.) are used instead of their JCOM \bin directory counterparts. This also ensures that the tools are the same version as the J-Integra runtime (i.e. jintegra.jar).&lt;/P&gt;&lt;P&gt;&lt;EM&gt;* Note: If the tools (ie, the DLLs and EXEs</description><pubDate>Tue, 18 Mar 2008 07:10:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Embedding a Microsoft Office Document in a Java Frame</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=66642</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;Embedding a Microsoft Office Document in a Java Frame&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;According to Microsoft Knowledge Base &lt;A href="http://support.microsoft.com/support/kb/articles/q242/2/43.asp" target=blank&gt;article 242243&lt;/A&gt; and &lt;A href="http://support.microsoft.com/support/kb/articles/q311/7/65.asp" target=blank&gt;article 311765&lt;/A&gt;, Microsoft Office documents (including Word, Excel, PowerPoint, Project, and Visio documents) are ActiveX Document servers, not ActiveX Controls. Visual Basic does not support a native control to host ActiveX Documents. Instead, Visual Basic uses the OLE container control to embed an ActiveX Document. Therefore you cannot directly embed ActiveX Documents in a Java frame either. There are three workarounds:&lt;/P&gt;&lt;H2&gt;1. Use the WebBrowser ActiveX Control&lt;/H2&gt;&lt;P&gt;The WebBrowser control that comes with Internet Explorer (version 3.0 and higher) does support this form of in-place containment. It is possible to use this control to open an Office document as an ActiveX Document as mentioned in &lt;A href="http://support.microsoft.com/support/kb/articles/q243/0/58.asp" target=blank&gt;Microsoft Knowledge Base Article - 243058&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Run J-Integra's com2java tool and select C:\WINDOWS\system32\shdocvw.dll as the type library. Check the &lt;B&gt;"Generate extra classes for embedding ActiveX controls in AWT components"&lt;/B&gt; option and use &lt;B&gt;shdocvw&lt;/B&gt; as the package name. Generate the proxies to a subdirectory named shdocvw.&lt;/P&gt;&lt;P&gt;&lt;B&gt;Note:&lt;/B&gt; Due to a method naming conflict between &lt;FONT face="Courier New" size=2&gt;java.awt.Component&lt;/FONT&gt; and &lt;FONT face="Courier New" size=2&gt;shdocvw.WebBrowser&lt;/FONT&gt;, you will receive the errors below when attempting to compile the generated proxies. T</description><pubDate>Mon, 18 Feb 2008 03:16: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>Limiting the Range of Ports for Java-COM Communication</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=30123</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;Limiting the Range of Ports for Java-COM Communication&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 example scenario (Java client accessing a COM component on remote machine) will demonstrate how to do this.&lt;/P&gt;&lt;P&gt;You'll need to experiment with the JINTEGRA_LOCAL_PORT_START and JINTEGRA_LOCAL_PORT_END properties on the Java side to limit the range of ports the client uses. &lt;/P&gt;&lt;P&gt;On the server side, you'll need to limit the port range for the COM component. To do this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Launch DCOMCNFG&lt;/LI&gt;&lt;LI&gt;Click on the Default Protocols tab&lt;/LI&gt;&lt;LI&gt;Click on Connection-Oriented TCP/IP&lt;/LI&gt;&lt;LI&gt;Add the required port range (note that this setting will be used for all components - we are unsure if there is a way to specify for a single component). &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This should now limit both servers to the specific port range.&lt;/P&gt;</description><pubDate>Tue, 18 Dec 2007 06:22: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>Mapping VB Code to Java Code</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=113758</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;Mapping VB Code to Java Code&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;Because the Java proxies generated by &lt;A href="http://j-integra.intrinsyc.com/support/com/doc/#com2java/index.html" target=_blank&gt;com2java tool&lt;/A&gt; are simply mapped from the original COM programming API, you need to refer to the original documentation of the COM API to understand what each corresponding Java proxy does. The comments in the Java proxies are based on the comments found from the COM IDL file. The easiest way to start programming Java source code (which uses J-Integra for COM to access a COM component) is to find a VB example first, and then map the VB code to Java. This article covers some basic principles to map VB code to its equivalent Java code.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=113758#Object"&gt;Object&lt;BR&gt;&lt;/A&gt;1.1 &lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=113758#Creating a New Object"&gt;Creating a New Object&lt;/A&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=113758#Object"&gt;&lt;BR&gt;&lt;/A&gt;1.2 &lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=113758#Retrieving an existing active object"&gt;Retrieving an Existing Active Object&lt;/A&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=113758#Object"&gt;&lt;BR&gt;&lt;/A&gt;1.3 &lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=113758#Casting an Object into Another Object"&gt;Casting an Object into Another Object&lt;/A&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=113758#Object"&gt;&lt;BR&gt;&lt;/A&gt;1.4 &lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=113758#Embedding an ActiveX Control"&gt;Embedding an ActiveX Control&lt;/A&gt;&lt;A href="http://j-integra.intrinsyc.com/support/</description><pubDate>Tue, 04 Sep 2007 04:45:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Errors when Releasing COM Objects from Java Clients</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=30927</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;Errors when Releasing COM Objects from Java Clients&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;H3&gt;Contents&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=30927#SYMPTOMS"&gt;SYMPTOMS&lt;/A&gt; &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=30927#CAUSE"&gt;CAUSE&lt;/A&gt; &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=30927#RESOLUTION"&gt;RESOLUTION&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;&lt;A name=SYMPTOMS&gt;&lt;/A&gt;SYMPTOMS&lt;/H2&gt;&lt;P&gt;Sometimes COM objects are not released properly by the Java client. The client itself may execute normally. Errors listed below may be present in the jintegra.log file (note that the timestamp and objRefs will be different).&lt;/P&gt;&lt;FONT face="Courier New"&gt;995005188493 *: Received a fault (code:2147549448) in response to IRemUnknown::RemRelease request, with RPC call id 80&lt;BR&gt;995005188573 *: Error releasing batched objRefs: {00000022-013f-0000-3101-000022000000=30, 00000025-013f-0000-3101-000025000000=30, 00000023-013f-0000-3101-000023000000=5, 00000026-013f-0000-3101-000026000000=5, 00000024-013f-0000-3101-000024000000=5, 00000027-013f-0000-3101-000027000000=5} AutomationException: 0x80010108 - The object invoked has disconnected from its clients. in 'Invoke'&lt;BR&gt;995005188673 *: IOException reading from socket: java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read to Net={aaa.bbb.ccc.ddd[xxxx]...&lt;BR&gt;995005188673 *: RPC Connection Handler waitForResponse(2) failed: connection is dead to Net={{ 0x7, aaa.bbb.ccc.ddd[xxxx]}} Sec={{ .....&lt;BR&gt;995005188673 *: Error releasing all objRefs: java.io.EOFException: The DCOM connection to the remote object has been disconnected (waitForResponse2)&lt;BR&gt;&lt;/FONT&gt;  &lt;H2&gt;&lt;A name=CAUSE&gt;&lt;/A&gt;CAUSE&lt;/</description><pubDate>Tue, 24 Jul 2007 03:04:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Microsoft .NET Framework 3.0 Support</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183241</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;Microsoft .NET Framework 3.0 Support&lt;/H1&gt;&lt;P&gt;Since .NET Framework 3.0 is an additive release of .NET Framework 2.0, J-Integra for .NET will work normally under a .NET Framework 3.0 environment.  Installing .NET Framework 3.0 installs .NET Framework 2.0 first; therefore, there will be no compatibility issues running J-Integra for .NET (using GenService 2.0) on a computer with "only" .NET Framework 3.0 installed.&lt;/P&gt;&lt;P&gt;For more information regarding .NET Framework 3.0 and backwards compatibility, please refer to Microsoft's &lt;STRONG&gt;.NET Framework Versioning and Deployment Q&amp;amp;A&lt;/STRONG&gt; &lt;A href="http://msdn2.microsoft.com/en-us/netframework/aa663314.aspx"&gt;here&lt;/A&gt;.&lt;/P&gt;</description><pubDate>Wed, 18 Jul 2007 08:12: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>Embedding Internet Explorer in a Java Frame</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=52227</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;Embedding Internet Explorer in a Java Frame&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;This example embeds Internet Explorer inside a JFrame, navigates to an HTML document, and reads/displays the tags in the document to the command prompt. To run this example you will need the Java proxies generated from the mshtml type library, as well as the main Internet Explorer typelibrary (shdocvw.dll). &lt;P&gt;We assume that you are familiar with Java -- no COM knowledge should be required. You may wish to run through some of the more detailed step-by-step examples in the J-Integra documentation (such as the Excel example) prior to trying this example. We assume you have already &lt;A href="http://j-integra.intrinsyc.com/downloads/" target=blank&gt;downloaded and installed the J-Integra SDK&lt;/A&gt;. &lt;P&gt;&lt;TT&gt;Steps:&lt;BR&gt;1. Configure your Environment&lt;BR&gt;2. Download the Java proxies &lt;BR&gt;3. Run the Example&lt;BR&gt;&lt;/TT&gt;&lt;H2&gt;Step 1: Configure your Environment&lt;/H2&gt;&lt;P&gt;Create a new folder to where the &lt;A href="http://j-integra.intrinsyc.com/support/kb/attachments/HTMLDocumentParser-GUIDbebdbed5811f429fac70b8b17fbf4126.java"&gt;HTMLDocumentParser.java &lt;/A&gt;source file will be downloaded. We assume that you have already configured your DCOM settings and environment variables such as Path and Classpath. &lt;H2&gt;Step 2: Download the Java proxies&lt;/H2&gt;&lt;P&gt;We have already generated the Java proxies needed for this example (they can be downloaded below). The two files you need to download are &lt;A href="http://j-integra.intrinsyc.com/support/kb/attachments/mshtml-GUIDbcb45de69b3e4baa8ea6a71e2da44b40.zip"&gt;mshtml.zip&lt;/A&gt; and &lt;A href="http://j-integra.intrinsyc.com/support/kb/attachments/shdocvw-GUIDdc24bd97dec246fe9385c74d799705da.zip"&gt;shdocvw.zip&lt;/A&gt;. Please unzip these fil</description><pubDate>Fri, 08 Jun 2007 03:06: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 cellSpacing=10 cellPadding=0 bgColor=#dddddd border=0&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE&gt;import com.intrinsyc.cdo.*;&lt;/PRE&gt;&lt;PRE&gt;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;        Str</description><pubDate>Thu, 26 Apr 2007 09:25:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Java 6 sun.* Compilation Warnings</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183238</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;Java 6 sun.* Compilation Warnings&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H1&gt;&lt;P&gt;When compiling proxies created by J-Integra for COM's java2com tool, you may receive warning messages that &lt;FONT face="Courier New"&gt;sun.*&lt;/FONT&gt; packages are "Sun proprietary API and may be removed in the future."&lt;/P&gt;&lt;P&gt;Normally, &lt;FONT face="Courier New"&gt;sun.*&lt;/FONT&gt; packages should never be used by developers since they may change in future releases.  Direct calls to the &lt;FONT face="Courier New"&gt;sun.*&lt;/FONT&gt; packages are not guaranteed to work on all Java-compatible platforms and thus are not supported by Sun.  Please see the Sun article, "&lt;A href="http://java.sun.com/products/jdk/faq/faq-sun-packages.html"&gt;Why Developers Should Not Write Programs That Call 'sun' Packages&lt;/A&gt;", for more details.&lt;/P&gt;&lt;P&gt;However, since J-Integra for COM's java2com tool creates a one-to-one mapping to Java packages, references to &lt;FONT face="Courier New"&gt;sun.*&lt;/FONT&gt; packages need to be made.  This &lt;EM&gt;will not&lt;/EM&gt; impact the functionality of J-Integra.  If you're experiencing problems with the generated proxies, please try regenerating them using the same Java version as your runtime.  This will ensure that the proxies make reference to the same "versions" of the &lt;FONT face="Courier New"&gt;sun.*&lt;/FONT&gt; packages as your runtime.&lt;/P&gt;&lt;P&gt;Unfortunately, these warnings cannot be suppressed at compile time.  Please see Sun &lt;A href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6476630"&gt;Bug 6476630&lt;/A&gt; for more information regarding these warnings.&lt;/P&gt;</description><pubDate>Thu, 26 Apr 2007 09:08:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Windows Vista - User Account Control (UAC)</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183235</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;Windows Vista - User Account Control (UAC)&lt;/H1&gt;&lt;P&gt;Windows Vista introduced a new security component known as User Account Control (UAC) that is designed to help prevent malicious programs from silently installing and computer-wide infections from occurring.  With UAC enabled, an account with administrative privileges runs applications as a standard user unless the application has been approved to run at an "elevated" level. &lt;/P&gt;&lt;P&gt;If you are experiencing problems running J-Integra on Windows Vista, please try disabling UAC by doing the following: &lt;/P&gt;&lt;P&gt;In Vista's Control Panel -&amp;gt; User Accounts, click on "Turn User Account Control on or off".  In the next screen, uncheck "Use User Account Control (UAC) to help protect your computer" and click OK.  You will be prompted to reboot your machine in order for the change to come into effect. &lt;/P&gt;&lt;P&gt;For more information about Windows Vista's UAC, please refer to the &lt;A href="http://technet2.microsoft.com/WindowsVista/en/library/0d75f774-8514-4c9e-ac08-4c21f5c6c2d91033.mspx?mfr=true"&gt;Microsoft Windows Vista User Account Control Step by Step Guide&lt;/A&gt;. &lt;/P&gt;</description><pubDate>Thu, 26 Apr 2007 09:03:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Precompiled Java Proxy JAR Files</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=81869</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;Precompiled Java Proxy JAR Files&lt;/H1&gt;&lt;P&gt;We have provided the following proxy JAR files for your convenience. These JAR files contain Java proxy files for specific COM applications (already generated by com2java, compiled, and JAR'd). Using these JAR files allows you to avoid having to generate and compile the proxy files manually. &lt;P&gt;Feel free to download any JAR file below you wish to use. To use a proxy JAR file, simply unzip the corresponding zip file and place it in your Java application's CLASSPATH.&lt;/P&gt;&lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/attachments/activeds-GUID27c236f9be1e407285633d45db9f5b25.jar"&gt;activeds.jar&lt;/A&gt; - Microsoft Active Directory Library &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/attachments/access2003-GUID2916dc95dce0483fa1c03e8434211429.jar"&gt;access2003.jar&lt;/A&gt; - Microsoft Access 2003 (11.x) &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/attachments/access2007-GUIDbd7370c3d56e4e36b91a60372599d390.jar"&gt;access2007.jar&lt;/A&gt; - Microsoft Access 2007 (12.x)&lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/attachments/cdo-GUID13725ff445f64011a1fd7bf6b69aa143.jar"&gt;cdo.jar&lt;/A&gt; - Microsoft Collaboration Data Objects, CDO 1.2.1 v6.5.7233 &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/attachments/cdo2007-GUIDead41e2d28b44d27940c1cbf91671679.jar"&gt;cdo2007.jar&lt;/A&gt; - Microsoft Collaboration Data Objects, CDO 1.2.1 v6.5.7888 &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/attachments/excel2000-GUID1107e7c133404b688311fd60b7c7e81f.jar"&gt;excel2000.jar &lt;/A&gt;- Microsoft Excel 2000 (9.x) &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/attachments/excelXP-GUIDeb2c03345f4f4aff9d63ab43525edfac.jar"&gt;excelXP.jar&lt;/A&gt; - Microsoft Excel XP (2002 10.x) &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/attachments/excel2003-GUID3e6af6ed06b14485825efb52fcac9cda.jar"&gt;excel2003.jar&lt;/A&gt; - Microsoft Excel 2003 (11.x) &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/attachments/excel2</description><pubDate>Thu, 26 Apr 2007 04:01:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Warning Messages When Accessing Microsoft Outlook</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=110946</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;Warning Messages When Accessing Microsoft Outlook&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;When sending messages in Outlook via J-Integra, you will get a warning message saying that a program is trying to automatically send e-mail on your behalf. &lt;P&gt; &lt;IMG hspace=0 src="http://j-integra.intrinsyc.com/support/kb/Attachments/c8dbd73b-76b5-4618-83a3-15cf.gif" border=0&gt; &lt;P&gt;Note that this is a security design of Outlook and has nothing to do with J-Integra. You will get the same warning message if the application accessing Outlook is written in pure VB. Here's an excerpt from &lt;A href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;262617" target=blank&gt;MSDN&lt;/A&gt; regarding programmatic behavior of Outlook: &lt;P&gt;&lt;I&gt;If other applications try to use Outlook on your behalf, you receive a warning message and you are prompted to confirm what the other application is doing. You receive warning messages when another application tries to do anything in the following list: &lt;UL&gt;&lt;LI&gt;Send mail on your behalf &lt;LI&gt;Access your address book &lt;LI&gt;Access e-mail names from your messages &lt;LI&gt;Access e-mail information from your contacts or other types of items &lt;LI&gt;Save your messages to the file system &lt;LI&gt;Search your messages for content &lt;LI&gt;Use Simple Messaging Application Programming Interface, Simple MAPI, to send messages without your consent &lt;/LI&gt;&lt;/UL&gt;&lt;/I&gt;&lt;P&gt;One workaround is to install third-party software that handles these pop-up messages. Hereí»s a link to one of them: &lt;A href="http://www.contextmagic.com/express-clickyes/" target=blank&gt;http://www.contextmagic.com/express-clickyes/&lt;/A&gt; &lt;P&gt;A better workaround might be to use CDO (Collaboration Data Objects) via J-Integra for Exchange. CDO exposes objects and </description><pubDate>Wed, 18 Apr 2007 03:10:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Using J-Integra with Eclipse</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=104951</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 J-Integra with Eclipse&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;Eclipse is an IDE developed by &lt;A href="http://www.eclipse.org/" target=blank&gt;www.eclipse.org&lt;/A&gt;. It uses its own environment variables instead of using the PATH and CLASSPATH variables defined by the system. In order to use J-Integra within Eclipse, you need to add jintegra\lib\jintegra.jar in Eclipse's classpath and include jintegra\bin in Eclipse's java.library.path. To do this: &lt;OL&gt;&lt;LI&gt;Right click on your project and then click on "Properties" or select the menu "Project" and click on "Properties". &lt;LI&gt;Go to "Java Build Path" and then click on the button "add External JARs...". Select the jintegra.jar located in the C:\jintegra\lib\ &lt;P&gt; &lt;IMG hspace=0 src="http://j-integra.intrinsyc.com/support/kb/Attachments/4dcf29a9-ea55-4ef3-8101-be33.gif" border=0&gt; &lt;P&gt;&lt;/P&gt;&lt;LI&gt;Add C:\jintegra\bin to the java.library.path by going to Run -&amp;gt; Runí¡ . Select the Arguments tab and under VM arguments, add the variable -Djava.library.path=C:\jintegra\bin &lt;P&gt;&lt;IMG hspace=0 src="http://j-integra.intrinsyc.com/support/kb/Attachments/c85b37cb-9577-4f43-93a6-a1d5.gif" border=0&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description><pubDate>Thu, 12 Apr 2007 03:54:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Windows Error 3 occurred while using J-Integra installer</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183237</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;Windows Error 3 occurred while using J-Integra installer&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;You may get the following error when use J-Integra installer.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;"&lt;SPAN style="FONT-SIZE: 10pt"&gt;Windows error 3 occurred while loading the Java VM."&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If the install package crashes when trying to invoke the JVM on your computer, it's usually an indication that your Java Runtime isn't properly configured. &lt;/P&gt;&lt;P&gt;In your Windows "System Properties" -&amp;gt; "Advanced" -&amp;gt; "Environmental Variables", please check that your have the Java bin folder added to your System Path. &lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;Some variations of the path may be (depending on your installation folder and Java runtime version):&lt;BR&gt;&lt;FONT face="Courier New"&gt;C:\Program Files\Java\JRE 1.6.0\bin&lt;BR&gt;C:\Program Files\Java\JDK 1.6.0\jre\bin&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt; If this doesn't fix the installation problem, please go ahead and download the ZIP version of J-Integra for COM: &lt;A href="http://j-integra.intrinsyc.com/download/default.aspx?ProductId=com"&gt;http://j-integra.intrinsyc.com/download/default.aspx?ProductId=com&lt;/A&gt;.&lt;/P&gt;&lt;P&gt; The ZIP version is no different from the installer, except that the installer automates some configuration steps for you (CLASSPATH / PATH setup, etc.).  For complete installation instructions (for both the ZIP and Installer), please look here: &lt;A href="http://j-integra.intrinsyc.com/support/com/doc/#install.html"&gt;http://j-integra.intrinsyc.com/support/com/doc/#install.html&lt;/A&gt;.&lt;/P&gt;</description><pubDate>Mon, 05 Mar 2007 03:15:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Running the COM Accessing Java Early Binding Example (with Events) Using a VC++ Client</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=71119</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;Running the COM Accessing Java Early Binding Example (with Events) Using a Visual C++ Client&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 attachment, &lt;A href="http://j-integra.intrinsyc.com/support/kb/attachments/EarlyBindExample-GUID0b9c12bdcfd6418a8d726523cf695bae.zip"&gt;EarlyBindExample.zip&lt;/A&gt;, contains the COM accessing Java early binding example from the documentation, but also includes a VC++ client in addition to the VB client. To run the example with a VC++ client, do the following: &lt;/P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;&lt;?xml:namespace prefix = o /&gt;&lt;o:p&gt;&lt;OL type=1&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;FONT face=Arial&gt;Download the attachment and extract the files to your hard disk.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;FONT face=Arial&gt;Follow the instructions in the &lt;STRONG&gt;&lt;EM&gt;readme.txt&lt;/EM&gt;&lt;/STRONG&gt; file to setup and run the example.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;FONT face=Arial&gt;To run the VC++ client, open the project file in the &lt;STRONG&gt;&lt;EM&gt;cxx client&lt;/EM&gt;&lt;/STRONG&gt; directory.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;FONT face=Arial&gt;Select the &lt;STRONG&gt;&lt;EM&gt;Build-&amp;gt;Rebuild All&lt;/EM&gt;&lt;/STRONG&gt; opti</description><pubDate>Tue, 20 Feb 2007 06:34:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Changes to Daylight Saving Time in 2007</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183236</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;P&gt;A number of our customers have been asking us if J-Integra is affected by the upcoming changes to Daylight Saving Time. The short answer is no - J-Integra will not be affected by these changes and you will not need to update your J-Integra software. As long as your Windows and Java underlying systems (and applications, if necessary) are properly updated, J-Integra will simply pass the correct date/time information bi-directionally between applications.&lt;/P&gt;&lt;P&gt;For more information on how Windows and Java systems are affected by the changes, please see the following links...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://support.microsoft.com/gp/cp_dst" target=_blank&gt;Microsoft Support: Daylight Saving Time Help and Support Center&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://java.sun.com/developer/technicalArticles/Intl/USDST/" target=_blank&gt;Sun Developer Network: U.S. Daylight Saving Time Changes in 2007&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description><pubDate>Thu, 15 Feb 2007 06:59:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Deploying Your J-Integra Application</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=115086</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;Deploying Your J-Integra Application&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;H3&gt;Contents&lt;/H3&gt;&lt;/FONT&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=115086#introduction"&gt;Introduction&lt;/A&gt; &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=115086#java2com"&gt;Java Accessing COM&lt;/A&gt; &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=115086#com2java"&gt;COM Accessing Java&lt;/A&gt; &lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;&lt;A name=introduction&gt;&lt;/A&gt;1. Introduction&lt;/H2&gt;&lt;P&gt;There are many ways to use J-Integra. The following tables will help figure out which files need to be deployed in the various application scenarios. J-Integra offers two modes: &lt;A href="http://j-integra.intrinsyc.com/support/com/doc/#dcom_native.html" target=_blank&gt;DCOM Mode and Native Mode&lt;/A&gt;. &lt;P&gt;&lt;H2&gt;&lt;A name=java2com&gt;&lt;/A&gt;2. Java Accessing COM&lt;/H2&gt;&lt;P&gt;* Indicates the tool is required for configuration, but not used at runtime. &lt;/P&gt;&lt;P&gt;&lt;TABLE cellSpacing=1 width="100%" border=1&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD vAlign=top width="10%"&gt;&lt;B&gt;&lt;CENTER&gt;Mode&lt;/CENTER&gt;&lt;/B&gt;&lt;/TD&gt;&lt;TD vAlign=top width="45%"&gt;&lt;B&gt;&lt;CENTER&gt;Client&lt;/CENTER&gt;&lt;/B&gt;&lt;/TD&gt;&lt;TD vAlign=top width="45%"&gt;&lt;B&gt;&lt;CENTER&gt;Server&lt;/CENTER&gt;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;B&gt;&lt;CENTER&gt;DCOM&lt;/CENTER&gt;&lt;/B&gt;&lt;/TD&gt;&lt;TD vAlign=top&gt;&lt;BR&gt;&lt;UL&gt;&lt;LI&gt;Java client app &lt;LI&gt;Java proxy files (generated by com2java) &lt;LI&gt;jintegra.jar or jintegra_reduced_logging.jar &lt;LI&gt;If using &lt;A href="http://j-integra.intrinsyc.com/support/com/doc/#remoteaccess.html#nativeAuth" target=_blank&gt;native authentication&lt;/A&gt;: &lt;UL&gt;&lt;LI&gt;ntvauth.dll &lt;/LI&gt;&lt;LI&gt;ntvauthEnglishResourceDll.dll &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/TD&gt;&lt;TD vAlign=top&gt;&lt;BR&gt;&lt;UL&gt;&lt;LI&gt;COM server app &lt;LI&gt;setdllhost.exe* &lt;/LI&gt;&lt;LI&gt;setdllhostEnglishResourceDll</description><pubDate>Fri, 09 Feb 2007 08:14:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>How to Access .NET Event from Java</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183233</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;H2&gt;How to Access .NET Event from Java&lt;/H2&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 two ways to access .NET event from Java Clients:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Registering the event listener (Java way to access event)&lt;/LI&gt;&lt;LI&gt;Using .NET events (actual .NET events) from Java, wrapping .NET events using a delegate and an equivalent interface exposed to Java&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;We suggest using the first way to access .NET event, because it treats the .NET event as a normal Java event (add/remove event listener). The second way involves a wrapper class around the class using the events. It’s a little rough around the edges but it works.&lt;/P&gt;&lt;P&gt;Note: for the attached examples, please use Janetor tool to install your J-Integra for .NET license before your test. You can find the janet.xml for each test in \java_client directory after you unzip the attached examples.&lt;/P&gt;&lt;H2&gt;1. Registering the event listener &lt;/H2&gt;&lt;P&gt;Please find the attached &lt;STRONG&gt;java_csharp_event.zip&lt;/STRONG&gt; for this example.&lt;/P&gt;&lt;H5&gt;A. Write the .NET Server with event handler:&lt;/H5&gt;&lt;TABLE style="WIDTH: 693px; HEIGHT: 663px" cellSpacing=10 cellPadding=0 bgColor=#dddddd border=0&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;PRE&gt;using System;&lt;BR&gt;using System.Runtime.InteropServices;&lt;BR&gt;using System.Collections;&lt;/PRE&gt;&lt;PRE&gt;namespace csharp_server&lt;BR&gt;{&lt;BR&gt; public class Factory : MarshalByRefObject&lt;BR&gt; {&lt;BR&gt;  private ArrayList listeners;&lt;BR&gt;  public Factory()&lt;BR&gt;  {&lt;BR&gt;   Console.WriteLine("Factory Created...");&lt;BR&gt;   listeners = new ArrayList();&lt;BR&gt;  }&lt;BR&gt;  public void addMyEventListener(ITestListener l) &lt;BR&gt;  {&lt;BR&gt;   listeners.Ad</description><pubDate>Tue, 16 Jan 2007 02:51: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>Wed, 08 Nov 2006 08:36:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>MIDL2021 duplicate id when use MIDL compile java2com generated IDL</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183231</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;MIDL2021 Duplicate ID when use MIDL compile java2com generated IDL&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;You may get the following error when use midl.exe compile idl file generated by J-Integra java2com tool. &lt;/P&gt;&lt;P&gt;&lt;IMG hspace=0 src="http://j-integra.intrinsyc.com/support/kb/Attachments/8e421435-3a23-4dbf-9c3d-de96.gif" border=0&gt;&lt;/P&gt;&lt;P&gt;These midl error occur because of nested classes/interfaces. Notice that, in this case, java.io.PrintWriter extends java.io.Writer which in turn implements java.lang.Appendable. Therefore, the java2com tool generates an interface for each of java.io.PrintWriter, java.io.Writer, and java.lang.Appendable. &lt;/P&gt;&lt;P&gt;Because the COM IDL language does not know anything about Java inheritance, it generates 3 append method signatures for JavaLangAppendable, 6 append method signatures for JavaIoWriter, and 9 append method signatures for JavaIoPrintWriter. However, because of the Java inheritance involved, it ends up giving the same method id to the same append method signatures.&lt;/P&gt;&lt;P&gt;To resolve these errors, you need to use the &lt;STRONG&gt;Name Mappings&lt;/STRONG&gt; option to tell java2com not to generate IDL definitions for the append() methods in java.io.Writer, and java.lang.Appendable:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Run the java2com (gui) tool.&lt;/LI&gt;&lt;LI&gt;Click Settings &amp;gt; Name Mappings.&lt;/LI&gt;&lt;LI&gt;On the left-hand side, click java &amp;gt; io &amp;gt; PrintWriter (its methods will appear to the right).&lt;/LI&gt;&lt;LI&gt;On the right-hand side, deselect the checkboxes beside the last 6 append methods. &lt;IMG hspace=0 src="http://j-integra.intrinsyc.com/support/kb/Attachments/e77b5152-de60-4e07-88cf-8e99.gif" border=0&gt;&lt;/LI&gt;&lt;LI&gt;Save settings and regenerate the proxies.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;For more informaiton about J-</description><pubDate>Fri, 03 Nov 2006 06:24:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>CDO Filter on AppoinmentItems</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 AppoinmentItems&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; &amp;</description><pubDate>Wed, 25 Oct 2006 09:36: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;/** * Created by IntelliJ IDEA. * User: fragasa * Date: 18-Oct-2006 * Time: 11:23:31 AM * To change this template use Options | File Templates. */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 Calend</description><pubDate>Wed, 18 Oct 2006 15:15:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Accessing .NET Components From a Java Client</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=78813</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;H1&gt;Accessing .NET Components From a Java Client&lt;/H1&gt;&lt;P&gt;This step-by-step example shows you how you can use J-Integra to access .NET components from a Java client or embed a .NET form in a Java AWT/SWING frame. If your Java client does not embed a .NET GUI component in a Java frame, you can also use &lt;A href="http://j-integra.intrinsyc.com/products/net/" target=blank&gt;J-Integra for .NET&lt;/A&gt; to integrate your Java/J2EE and .NET components. J-Integra for COM uses a &lt;A href="http://msdn.microsoft.com/library/en-us/cpguide/html/cpconcomcallablewrapper.asp" target=blank&gt;COM Callable Wrapper&lt;/A&gt; to bridge Java and .NET, whereas &lt;A href="http://j-integra.intrinsyc.com/products/net/" target=blank&gt;J-Integra for .NET&lt;/A&gt; uses pure &lt;A href="http://msdn.microsoft.com/library/en-us/dndotnet/html/hawkremoting.asp" target=blank&gt;.NET Remoting Protocol&lt;/A&gt; to do the bridging. &lt;H3&gt;Contents&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/admin/editarticle.aspx?id=78813#introduction"&gt;Introduction&lt;/A&gt; &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/admin/editarticle.aspx?id=78813#configure"&gt;Configure the .NET environment&lt;/A&gt; &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/admin/editarticle.aspx?id=78813#compile"&gt;Compile and register the C# component&lt;/A&gt; &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/admin/editarticle.aspx?id=78813#addtogac"&gt;Add the C# component to the GAC&lt;/A&gt; &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/admin/editarticle.aspx?id=78813#tlb"&gt;Create a TLB from the C# component&lt;/A&gt; &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/admin/editarticle.aspx?id=78813#proxies"&gt;Generate and compile the Java proxies for the C# component&lt;/A&gt; &lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/support/kb/admin/editarticle.aspx?id=78813#client"&gt;Compile and run the Java client&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This example was built using the following: &lt;UL&gt;&lt;LI&gt;&lt;A href="http://j-integra.intrinsyc.com/downloads/" target=blank&gt;J-Integra&lt;/</description><pubDate>Tue, 17 Oct 2006 02:11:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Mapping COM Currency Types to Java and Java Long Values to COM</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=39661</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;Mapping COM Currency Types to Java and Java Long Values to COM&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 is occasionally confusion about how to map COM Currency types to Java, and how to map Java long values to COM.&lt;/P&gt;&lt;H3&gt;COM Currency in Java&lt;/H3&gt;&lt;P&gt;Internally, the Currency data type is actually a 64-bit integer. However, COM languages such as VB, ASP, and Delphi scale such values down by a factor of 10,000 to produce four digits after the decimal point. So, although the data type is a 64-bit integer, COM languages will display the value of any Currency-type variable as having a decimal point followed by four digits. For more details, see the &lt;A href="http://j-integra.intrinsyc.com/support/com/doc/#types/index.html" target=blank&gt;J-Integra documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Therefore, in order to display a 64-bit value correctly in a Java application, you must first divide the result by 10,000. This will shift the decimal point, resulting in the display of the actual value. This is a COM specification and the problem is not caused by J-Integra.&lt;/P&gt;&lt;P&gt;This behavior is by design, although we appreciate it isn't obvious. We didn't want to run the risk of losing accuracy by mapping a fixed point value (currency) to a floating point value (double), which at first glance might be the obvious mapping. Using a long was the only option.&lt;/P&gt;&lt;H3&gt;Java long in COM&lt;/H3&gt;&lt;P&gt;The long data type in Java is mapped to the Currency type in Visual Basic. This is because in Java a &lt;I&gt;long&lt;/I&gt; is a 64-bit data type, while in Visual Basic, a &lt;I&gt;long&lt;/I&gt; is a 32-bit data type. The only 64-bit data type in Visual Basic is a &lt;I&gt;Currency&lt;/I&gt;.&lt;/P&gt;&lt;P&gt;The following information was found on www.vbapi.com (as of August 2, 2002):&lt;/P&gt;&lt;P&gt;&lt;I&gt;"Internally, </description><pubDate>Thu, 21 Sep 2006 05:09:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>NullPointerException when Working with ActiveX Controls</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=30945</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;NullPointerException when Working with ActiveX Controls&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;When working with ActiveX controls, the control must first be displayed before invoking methods on it. If the control is not displayed first, often you will get a NullPointerException.&lt;/P&gt;&lt;P&gt;As an example, if com.activex.MapControl is an ActiveX component, doing something like this may cause a Null-pointer Exception:&lt;BR&gt;&lt;BR&gt;&lt;FONT face="Courier New"&gt;  com.activex.MapControl mapcontrol = new com.activex.MapControl();&lt;BR&gt;  mapcontrol.zoomIn(); // causes java.lang.NullPointerException&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;In this case, you may have to display the ActiveX component first, as below:&lt;BR&gt;&lt;BR&gt;&lt;FONT face="Courier New"&gt;  com.activex.MapControl mapcontrol = new com.activex.MapControl();&lt;BR&gt;&lt;BR&gt;  &lt;B&gt;// code to display the MapControl should be placed here:&lt;BR&gt;&lt;/B&gt;  JFrame frame = new JFrame();&lt;BR&gt;  frame.setSize(400, 300);&lt;BR&gt;  frame.getContentPane().setLayout(new BorderLayout());&lt;BR&gt;  frame.getContentPane().add(mapcontrol, BorderLayout.CENTER);&lt;BR&gt;  frame.setVisible(true);&lt;BR&gt;&lt;BR&gt;  mapcontrol.zoomin(); // now it works&lt;/FONT&gt;&lt;/P&gt;&lt;H3&gt;Notes:&lt;/H3&gt;&lt;P&gt;(1) Actually, not all methods will cause a NullPointerException when called before the ActiveX control is displayed. Any &lt;B&gt;setXX()&lt;/B&gt; method can be called beforehand. These &lt;B&gt;setXX()&lt;/B&gt; methods will be queued up and automatically called once the ActiveX control is made visible. &lt;/P&gt;&lt;P&gt;(2) ActiveX controls hosted by J-Integra extend com.linar.jintegra.Ocx, which in turn extends java.awt.Canvas (see the generated proxies for details). All java.awt.Canvas components have a property called &lt;STRONG&gt;preferredSize&lt;/STRONG&gt;. The preferredSize of any ActiveX control that is hosted by J-Integra defaults to 1</description><pubDate>Thu, 17 Aug 2006 16:55:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>Running a Java Class as an Windows NT/2000/XP/Server 2003 Service</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=30411</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;Running a Java Class as an Windows NT/2000/XP/Server 2003 Service&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;H2&gt;Background&lt;/H2&gt;&lt;P&gt;Windows 2000 and Windows NT support the concept of services. A service is a software component that runs in the background. Examples include the "Event Log" service which provides logging facilities, and the "DHCP Client" service which manages obtaining an IP address for your machine. If you have IIS on your machine, it runs as a service also.&lt;/P&gt;&lt;P&gt;Service states are controlled by the services control panel (on Windows 2000 select Start-&amp;gt;Programs-&amp;gt;Administrative Tools-&amp;gt;Services). Services respond to a number of control commands including start, stop, pause and resume. So a service must be programmed to handle these events.&lt;/P&gt;&lt;P&gt;The most interesting feature of services is that they are running even when there are no users logged on. So if your application needs to run all the time, with and without users logged on, then it must run as a service.&lt;/P&gt;&lt;H2&gt;JavaService by Alexandria Software Consulting&lt;/H2&gt;&lt;P&gt;JavaService is an application that allows any Java class to be run as a Service. It is an open source product that was originally developed and distributed by Alexandria Software Consulting.  However, the JavaService software is now hosted by the ObjectWeb source forge. It can be downloaded from &lt;A href="http://javaservice.objectweb.org/index.html"&gt;here&lt;/A&gt; (&lt;A href="http://javaservice.objectweb.org/index.html"&gt;http://javaservice.objectweb.org/index.html&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Please note that Intrinsyc Software does not provide technical support for JavaService.&lt;/P&gt;&lt;P&gt;We have successfully used this product to run the COM to Java bridges in our Application Server examples (suc</description><pubDate>Thu, 27 Jul 2006 03:37:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item></channel></rss>