Integrating Java with COM

I am currently working on a migration project where we need to integrate Java with existing COM components. Can someone suggest some commercially/freely available tools which helps you do that? I believe JNI is something which is specifically meant for jobs like this. Does anyone has experience using JNI for such a job?
Any insights in this regard would be highly appreciated.

Hi,
Check out http://jakarta.apache.org/poi
Also, here's a handy tool to generate Java wrapper classes to any ActiveX control/DLL/exe you point it to.
http://www.alphaworks.ibm.com/tech/bridge2java
Although IBM will want ���1000 for commercial license I think.
Here's a freeware version.
But you have to specific each individual CLS_ID, instead of just pointing to a type library and letting it generate everything.
http://www.simtel.net/pub/pd/60701.html
regards,
Owen

Similar Messages

  • Integrating Java with C

    is anyone tell me how to add java programm in C or vice versa

    That would require you to use the invocation API to invoke java classes.
    http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jniref.html#invoke

  • Integrating Java with Fingerprint

    Hello...
    I need some info and tools for what i need to integrate the Java Applet with a serial fingerprint devices and what sort of database is needed in this project development.
    The concept is for library access to verify the user using the fingerprint and save the record on the database.
    Im only the beginner in Java...
    Thanks..

    http://www.google.com/search?q=biometric+java+api

  • Integrating  Java with MQ.

    My program requirement is that I should be able to insert and delete the messages in the Websphere Message Queue (MQ) through pure Java code . This MQ is used in the MiddleWare Technologies to read and write into the XML file .
    Then I will be using RFHUtil to check whether the message is inserted or not in the MQ.
    So Could you please tell me APIs to do so and the hint for doing so ?

    You would configure MQ binding in your WSDL. The WSDL could then be implemented as a Java EE Service Engine Session EJB in Glassfish. You wouldn't need to call any MQ or messaging API at all.

  • Integrating Java caps with tuxedo

    Hi,
    Could any one let me know the best way of integrating Java caps 6 with Tuxedo.
    Regards,
    Abdul

    But the C code that gets called from Java doesn't seem to have access to the data known by the C code that called the Java.
    I don't know exactly what you mean here, unless you're simply saying that the scope of your C data makes it inaccessible between functions.
    Is there a way to pass pointers into Java?
    Yep - Just treat the pointers as opaque types and wrap them in something large enough for the platform - for example a jlong. You need to be sure to be careful in managing the lifetime of the pointers with respect to the Java objects that hold onto them - for example, with function pointers that come from a dynamically loaded shared library or any data pointers that you might be passing around. You probably want to read the section on native peers in the JNI programmer's guide.
    God bless,
    -Toby Reyelts
    Check out the free, open-source, JNI toolkit, Jace - http://jace.reyelts.com/jace

  • Will Java UFLs satisfy reports designed with COM UFLs

    cr_xi_java_ufl.pdf notes that "When using Crystal Reports" to design reports that contain user-defined function libraries (UFL), you can use only Java UFLs or only COM UFLs, but not both".
    Is that purely a statement about configuring the Developer to access the UFLs or does it indicate some sort of distinction between COM and Java UFLs.
    In particular can I take a report designed on Microsoft Windows and including a call to a UF that happened to be exposed by a COM UFL and then run it under Crystal Reports Server XI R2 for Linux using JRC and have the function call evaluated by a Java UF of the same signature within a Java UFL?

    Business Objects led me wrong.  Java UFLs DO satisfy reports designed with COM UFLs.
    If I take a report that was designed under Microsoft Windows and I added functions that were there via COM UFLs (certainly I have proved it by typing the UFL name in directly into the formula editor; I presume it will also work if you drag the COM UFL into the formula editor) and I then place that rpt file on my Linux machine and view that report using Crystal Reports Server XI R2 and Tomcat and JRC and I have Java UFLs on that Linux machine that have the same name and arguments as the COM one then the report runs OK and the Java UFLs do their job.
    (Now that is great news)

  • Integrating crystal reports9 for java with weblogic8.1

    hi,
    i working with crystal reports 9 for java,i have a application done in weblogic
    which need to generate reports using crystal reports on the user's requirement,so
    reports data will be dynamic.kindly help me to proceed further,iam new to weblogic.

    hi
    i have worked on integrating crystal reports with weblogic
    first create the crystal RPT file under the portlet folder create a folder as reports then import the rpt file into ur reports folder u need some .jar files for integrating reports with weblogic or sent ur mail id i
    will sent it to u those jar files import those jar files into ur web inf folde of weblogic.
    regards
    sudhakar

  • JAVA to COM Bridge?

    Hello!
    For the past few days I was searchng for JAVA to COM bridge. I have a dll file from third partry that contains just LOTS of classes and methods and I need to work with it from my java application.
    I have found a few solutions.
    1. IBM Java interface toolkit (very expensive 1000usd per licence)
    2. JACOB Project
    3. Integra (also very expensive but cheaper than the one from IBM)
    I was able to install and try interga. Works perfect. But I do not have a budget to purchase it.
    I was not able to figure out how JACOB works. And was not able to find a solution to my broblem on Yahoo JACOB mailing list.
    Is there a JAVA to COM bridge from SUN??? I cannot believe SUN does not provide one.
    Please advise me. Please

    I think I start figuring out how NJAWIN works.
    I was able to load my dll host file and run couple of commands. But only that! no more. I am really having difficult time to figure out how it works. But the hope is there. It works.
    According to UML my dll file has a class HostSession and that class has a method Send(); UML does not say that this method expects parameters.
    Generated by JAWIN java class says that method Send in HostSession class DOES Expect two parameters:
    public HostResponse Send(ObjectRef HostCommand, ObjectRef Transmit) throws COMException {
    return new HostResponse((DispatchPtr) invokeN("Send", new Object[]{HostCommand, Transmit}, 2));
    I can assume that HostCommand is a command that needs to be processed! but what is Transmit?
    Is there any support forum for NJAWIN where people who work with NJAWIN share their experience? and even when using NJAWIN I still get this JAVA.EXE Error! memmory cannot be read.

  • Any kind of integration experience with Weblogic JMS and Oracle AQ?

    Hi,
    In my company I work with java developers who believe in some kind of "holly" database independence I don't understand and as a result my life as a database developer is hell on earth.. Yesterday we again started to discuss, this time where to log, they believe database is slow and prefer logging to filesystem, after some hours finally I could convince them for some operational and reporting needs to use the database and will do this in an asyncronous way whiich they won't get slow. After all I believe the reason for a database is data, this is the place where data lives, and with the correct desing and implementation logging to database would perform better.
    I love Oracle features, and know that we paid a lot for this software, so today I started investigating this promised solution. And quickly I found AQ and JMS topics in the documentation :)
    After this introduction here is my problem; my company use BEA Weblogic as application server and the java guys want AQ to automatically (but of course with some delay) take their JMS log requests into database tables. Does any one have similar application experience, or any kind of integration experience with Weblogic JMS and Oracle AQ?
    Any comments, references, documentation, sample code, url will be most welcomed :)
    Thank you very much!
    Tonguc
    [email protected]
    References I found upto now;
    Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14291/toc.htm
    (Packages; javax.jms & oracle.jms)
    Oracle® Streams Advanced Queuing User's Guide and Reference 10g Release 2 (10.2) http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14257/toc.htm
    Part IV
    Using Oracle JMS and Oracle Streams AQPart V describes how to use Oracle JMS and Oracle Streams Advanced Queuing (AQ).
    Chapter 11, "Introducing Oracle JMS"
    Chapter 12, "Oracle JMS Basic Operations"
    Chapter 13, "Oracle JMS Point-to-Point"
    Chapter 14, "Oracle JMS Publish/Subscribe"
    Chapter 15, "Oracle JMS Shared Interfaces"
    Chapter 16, "Oracle JMS Types Examples"
    A Sample Code from Otn
    http://www.oracle.com/technology/sample_code/tech/java/web_services/jmsws/NewsQueueEJB.java.html

    I wouldn't go as far to say Oracle AQ is out-dated today. However, it is indeed a proprietary technology that did not found much main-stream adoption in the earlier years after its introduction. The advent of JMS made it somewhat more useful (or should I say intriguing, because more people are trying to tie it together with other J2EE technologies), but the Oracle's JMS wrapper classes in aqapi.jar were not feature complete for a long while, so using it outside Oracle's application server was painful, if not impossible. I do agree that the info at the dev2dev's JMS newsgroup or in this forum is highly fragmented, as neither Oracle nor BEA provides an official solution to integrate AQ with WebLogic, so people like us have to learn the technology through experimentation and in a piecemeal fashion.
    3 years ago I was literally "playing around" - we had a polling mechanism set up to use triggers to write Oracle data changes into an event table, and had a Java-based daemon to scan that table and publish events as JMS messages to the WebLogic JMS server. This continues to work reliably till today, but I was looking for a solution that has few parts - I wanted to hook up my WebLogic MDB directly to AQ as a foreign JMS provider. Although I was able to get it to work (including XA), there were a few hoops I had to jump through, such as decompiling the Oracle AQjms classes to make them bind to the WebLogic JNDI tree.
    One year after that Diptanshu Parui took what I did a giant step further - he extended the Oracle AQjms classes to allow them to be bound to the WebLogic JNDI tree naturally, and he figured out how to use WebLogic JMS messging bridge to re-send single-threaded AQ JMS messages to clustered JMS queues, which allow concurrent message assumption by multiple instances of MDB's. My impression is that he is using that setup in a production environment.
    I am sure you are aware of it but I would like to make it clear - in order to use AQ as a foreign JMS provider to WebLogic-hosted MDB's, you don't need to update your database to Oracle 10g - Oracle 8i is good enough (although I recommend at least 9i Release 2). It is not the database engine, but rather the aqapi.jar JMS wrapper on top of AQ that matters. I do recommend that you use aqapi.jar from Oracle Application Server 10.0.3 or up for better XA support, among other things. Again, you don't have to replace WebLogic with Oracle AS - you only need a single jar file from it and put it in your WebLogic's classpath. However, I don't know what this means from a licensing point of view if you ever go to production - do you have to pay the full price of OracleAS or OC4J just to use the aqapi.jar?
    In the coming days I will test the latest aqapi.jar to see how much progress Oracle has made in terms of making their J2EE products more spec-compliant :-).
    Hope the above gives you a different perspective.
    Eric

  • Java with sap

    Hi,
    Can anyone help me how java is useful for xi in sap and other concepts.
    Thanks &Regards
    Ravicharan

    HI RAVICHANDRAN,
    >> <b>Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II</b>
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    >> <b>Integration of a Java Project with SAP using XI 2.0</b>
    Integration of a Java Project  with SAP using XI 2.0
    SOme More links to understand more on java with sap xi
    http://help.sap.com/saphelp_nw04/helpdata/en/87/5305adc23540b8ac7bce08dbe96bd5/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ce/81a797cc9642c8bbef249bfd84dd45/frameset.htm
    Hope IT Helps
    Thanks
    Varun CN

  • Can' t connect Java with MySQL

    My goal is to connect Java with MySQL. I found many solutions on Internet, but I always get the same mistake:
    SQLException: No suitable driver
    SQLState: 08001
    VendorError: 0MySQL works fine alone or with php.Only thing left me to think is that the installed versions are not compatible for this mysql-connector-java-5.0.4
    I don't believe that could be a reason.
    Installed versions are:
    Apache Tomcat 5.5.20 Server
    Apache HTTP Server 2.2.4
    PHP 5.2.0
    MySQL 5.2
    jre 1.5.0_11
    jdk1.5.0_11
    Apache Tomacat JK2 connector Version: 1.2.20 File Name: mod_jk-apache-2.2.3.so
    mysql-connector-java-5.0.4
    I also set connector in class path: C:\mysql-connector-java-5.0.4;C:\mysql-connector-java-5.0.4\mysql-connector-java-5.0.4-bin.jar;C:\mysql-connector-java-5.0.4\src\com\mysql\jdbc
    For installation I used manulas from:
    http://apacheguide.org/jsp.php
    http://doc.51windows.net/mysql/?url=/MySQL/ch23s03.html
    Here is also a test code in java:
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
       public class Connect
           public static void main (String[] args)
               Connection conn = null;
               try {
        conn =
           DriverManager.getConnection("jdbc:mysql://localhost/first_test" +
                                       "user=monty&password=greatsqldb");
        // Do something with the Connection
    } catch (SQLException ex) {
        // handle any errors
        System.out.println("SQLException: " + ex.getMessage());
        System.out.println("SQLState: " + ex.getSQLState());
        System.out.println("VendorError: " + ex.getErrorCode());
       }i'm desperate, please help or tell me someone who'll know the answer.
    Thank You in advance

    hey buddy .. it seems yr code is wrong .. in getconnection () method u should also specify the port ,which u r not doing ...
    the default port for MySQL is 3306 ... see below i am giving you a sample code ... its working fine .. and dont forget to put the MySQL driver jar path in to classpath and also copy the jar into common/lib folder of your tomcat ....
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class MySQLConnectionTest {
         public static void main(String[] args) {
    new MySQLConnectionTest().connTest();
    public void connTest() {
              String tableName = "portfolio"; //change as per setting
              String hostName = "10.81.9.39"; // please change for the target database ip or hostname
              String dbPort = "3306"; //change if not using the default
              String dbName = "tradingsystem"; //change as per the given DB name
              String username = "root"; //change as per setting
              String password = "password"; //change as per setting
              System.out.println("before try");
              Double data=0.0;
         Double data1=0.0;
              try {
    Class.forName("org.gjt.mm.mysql.Driver");
                   System.out.println("before driver manager");
    Connection conn = DriverManager.getConnection("jdbc:mysql://"+hostName+":"+dbPort+"/"+dbName, username, password);
    String query1 = "select * from "+tableName+" where User_id='trader1' and Stock_Type='Equity'";
    System.out.println("quesry1="+query1);
    Statement stmt = conn.createStatement();
    ResultSet rs1 = stmt.executeQuery(query1);
    while(rs1.next())
         System.out.println("hiiiiii for rs1");
         System.out.println(rs1);
         Quantity=(Integer)rs1.getObject(5);
         MarketPrice=(Double) rs1.getObject(8);
         data=Quantity*MarketPrice;
         data1+=data;
         System.out.println("data1="+data1);
         i=0;
    rs1.close();
    stmt.close();
    conn.close();
    } catch (ClassNotFoundException e) {
    e.printStackTrace(System.err);
    } catch (SQLException e) {
    e.printStackTrace(System.err);
    i hope it will work for u...
    cheers,

  • How to read azure storage data using JAVA with REST API

    Hi,
    We have a cloud service in our lab. We have enabled diagnostics
    in cloud services. So WADPerformanceCounterTable was created in storage account. Now , We want to read the WADPerformanceTable using
    JAVA with REST API. Is there any way to collect these details. please give me any
    sample code to connect azure storage using table service REST API.
    Thanks & Regards
    Rathidevi

    Hi,
    Please have a look at this article:
    https://convective.wordpress.com/2010/08/18/examples-of-the-windows-azure-storage-services-rest-api/, it demonstrate how to use table service Rest API, it also give us the code, hope this helps. Of course, the
    MSDN article could also help us coding.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Integrating Apex with Cocoon (does it make pdf from taking data from DB)

    Friends,
    I integrated Apex with appache with cocoon. Its working fine with reports but i want it to work with form on a table or view.The steps below which i have followed for integrating Apex with Cocoon
    Steps of pdf Printing of Report with cocoon:
    1) Download and unzip the following needed files in D:\Apex_fop directory.
    2) Open your command prompt .
    Change the directory to D:\Apex_fop\cocoon-2.1.11.
    Set the Java_Home environment variable as: set JAVA_HOME= C:\Program Files\Java\jdk1.5.0_21
    then type build war
    3) After getting the prompt back as D:>Apex_fop>cocoon-2.1.11>
    Copy coocon.war file from the folder D:\Apex_fop\cocoon-2.1.11\build\cocoon.
    Paste this file into webapps subdirectory in main tomcat directory having path as D:\APEX_FOP\apache-tomcat-6.0.26\webapps.....place it in the top
    level of webapps directory.
    4) Now just startup tomcat as D:>APEX_FOP>apache-tomcat-6.0.26>bin>startup.bat
    The cocoon.war file will automatically uncompressed as directory.
    5) To change the port of apache tomcat , edit apache-tomcat-6.0.26\conf\server.xml & change port attribute of Connector element from 8080 to 8181.
    Just check whether Tomcat is running or not as http://localhost:8181/
    & to check cocoon type http://localhost:8181/cocoon/
    6) Now copy fop_post directory & paste it undes new cocoon directory in webapps having path as D:\APEX_FOP\apache-tomcat-6.0.26\webapps
    \cocoon.
    7) Now you need to do some apex settings as follows:
    In APEX, just log in as ADMIN into apex/apex_admin and went to Instance Settings and did the following:
    - Print Serverr: Standard Support
    - Print Server Protocol: HTTP
    - Print Server Host Address:localhost
    - Print Server Port: 8181
    - Print Server Script: /cocoon/fop_post
    In your APEX application, in the Regions section, Click on the Print link next to your report and do the following settings:
    - Enable Report Printing: Yes
    - Link Label: Print
    - Response Header: Report Settings
    - View File As: Attachment
    - Output Format: PDF
    - Report Layout: Default Report Layout
    - Print URL: f?p=&APP_ID.:1:&SESSION.:FLOW_XMLP_OUTPUT_R1063230002781575
    8) Open up the Report Page and click Print , You will get the pdf report.
    But my requirement is bit different. I have made form on a table or view , so when i am submitting my form the record is getting updated in my database and at the same time a new button is appearing at same page as i have branched it in same page. The new button name is print. I want when i click this print button it should print the record which submitted recently. How can i enable the print functionality on form. Its simple in report but how can it be done on form?
    Looking forward for this to know wthr it is achievable or not and if yes what all are the ways?
    Thanks in advance for all who is going to post here and to them also who is giving their time in reading my thread
    Regards
    Adi
    Edited by: Adi's on Mar 23, 2010 8:54 PM
    Edited by: Adi's on Mar 23, 2010 8:54 PM

    You could redirect to a report page instead of to the form page. Then simply print the report.
    This makes sense. You would have one page for entering the data and another page for displaying and printing it.

  • Problem in integrating xMII with VC

    hi Experts,
    My xMII server Version is <b>11.5</b>
    I followed this document:
    <b>https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033</b> for integrating xMII with VC.
    Connection URL: http://<myXMIIServerName>/Lighthammer/ALL_TEMPLATES?version=<b>11.5</b>&trace=true
    Driver Class Name: <b>com.sap.xmii.custom.integration.jdbc.SAPxMIIJDBCDriver</b>
    System Alias: <b>XMII_JDBC</b>
    Connection test is <b>successful</b>, after configured System.
    I am getting error while <b>FindData Seach</b> in VC,
    Inputs given are,
    System: XMII_JDBC (this is my system)
    Look for: Look for a table
    the error is, <b>Error-2305 Cannot retrive catalogs and schemas; check the connection to the selected systems Cannot access JDBC metadata </b>
    I think i made mistake in connectionURL, but connection test is successful.
    Please guide me, where i made mistake.
    Points will be Awarded.
    Thanks & Regards,
    Chinnadurai R

    Hi Sam,
    Thanks for your reply... I am also think that i made mistake in comnnection URL ,
    I have created some querys under Samples/Reports,
    I gave like this::
    <b>http://<myXMIIServerName>/Lighthammer/Templates/Samples/Reports?version=11.5&trace=true</b> and  <b>http://<myXMIIServerName>/Lighthammer/Templates/Samples/Reports?</b>
    and then like this
    <b>http://<myXMIIServerName>/Lighthammer/Illuminator/Templates/Samples/Reports?version=11.5&trace=true</b>
    I tried using all the URL  shown above, but it is not listing the Querys in VC .
    Can u guide me how can i form that Connection URL ..
    Thanks & Regards,
    Chinnadurai R

  • Date Problem in Java with MySql

    Hello
    I am using Java with Mysql.I want to enter date in some in my format(YYYY:MM:DD:HH:MM:SS), this thing i have convert using format class and format class return date in String and iwwnat to insert this value in MySQL Table,So i want to know how can i convert String value in Date for Mysql is their inbuild function for converting string into date in mysql.
    Regards
    Anupam S

    Use PreparedStatement and SimpleDateFormat classes
    http://onesearch.sun.com/search/onesearch/index.jsp?qt=%2BPreparedStatement+%2BSimpleDateFormat+&qp=siteforumid%3Ajava48&chooseCat=allJava&col=developer-forums&site=dev

Maybe you are looking for

  • Solution for Windows 7 all-in-one network printer won't print

    It took all morning to resolve an issue that came up with my HP printer not printing today after working fine for 2 1/2 months. The problem was that the printer would queue the job, but then I would get a print error. The printer started out as offli

  • Error 1172 occured at invoke node

    Hello I am new to Labview and object oriented programming. I have an already written c# code which communicates with a digital I/O card attached to a test system. I want to run those c# functions in labview. I am using .NET constructor pallett and th

  • Personal Data ESS WDA

    Dear experts. I am configuring ESS for Colombia. We are using WDA. ERP 6.0 ehp 6. The structure of conversion used is: HCMT_BSP_PA_XX_R0002 For this country the system use a Infotype SECONDARY 0837 that is showed in the screen of the Infotype 0002. V

  • Total BT incompetence

    I'm moving house, I'd like to stop one phone line and start another, and take my (thankfully) third party broadband service with me. It must happen all the time - how hard can it be? Simple, you might think, but despite the fact that I had to go thro

  • Can I unsync a device from my iTunes library?

    A friend was upload a video to my computer and in the process accidentally synced thier iPad with my iTunes library.  Now when they plug into their computer it wont register the iPad.  Does anyone know how to fix this? Could I unsync the device from