How to Use COM Component in a Java Bean

Dear Sir,
How can I use a COM Component in a Java-Bean . I am having a COM Component for reading Weighment Reading on a Serial Port and want to use this Component in a Java-Bean . I would also like to call the methods of this COM Component inside my Java-Bean . COM Component is a dll file .
Please guide me how to go ahead . If possible kindly provide some sample code for the same .
With Thanks and Regards
B V Mittal

You need a Java to COM bridge like Jacob. Try searching this forum for more information, I've answered this question several times before.
Dom.

Similar Messages

  • How to use COM component in Forms 6.0 ??

    Dear All,
    We are developing Retail-Chain s/w and have a 3rd party s/w for credit card and
    they give a .dll (not a ordinary dll ), .tlb file and sample VB code to integrate the 3rd party s/w.
    Now i want to do the same task in my application using Forms 6.0.
    Here is the sample code for VB :
    ' Sample VB code for invoking Plutus from VB-based ECR application
    Private Sub Command1_Click()
    ' This is called when "Pay by card" is pressed in ECR application
    Dim strIO As String
    Dim lTrackingID As Long
    ' Add PlutusExchange v1.0 Type Library (TLB) as reference to the project
    Dim plutObj As New PlutusExchangeLib.ExchangeObj
    lTrackingID = 6 ' For testing, enter the scenario number as given in interchange spec doc
    strIO = "T123,156" ' This is input to Plutus -- base amount in paise for Rs. 1.56 and ECR bill number: T123
    ' Bill number is only used for printing on Plutus chargeslip
    plutObj.PL_DoTransactionEx lTrackingID, strIO
    MsgBox strIO, vbOKOnly, "Plutus Response String"
    ' Parse this string to extract Plutus response. Only indication of successful transaction authorization is a valid auth code returned in response
    End Sub
    Plz. reply.
    Note: I already register the .dll file and it showing in import OLE option under Forms 6.0.
    Thanks
    Debabrata
    Message was edited by:
    Debabrata Guchhait

    You need a Java to COM bridge like Jacob. Try searching this forum for more information, I've answered this question several times before.
    Dom.

  • How to use com.ms.win32 in java

    hi..
    I am tring to copy a file from a computer which is connected in lan through java.
    I want to logged into it thrugh java,where it is not shared.
    I want to use win32sockect programing or is there is any other way out.
    please provide some examples or code if possible.
    thanks

    Hi,
    I have spent many n many hours looking for the com.ms .win32 to install. I need this pacage to develop an application and it is not installed in my computer. Do you please can tell me where I can download it? Please, if you know, tell me.
    thanks.

  • How to interact with a COM component from a Java class

    Hi, could someone give a hint on what API I should explore in order to interact with a COM component from a Java class?
    Thanks in advance
    Luis

    jacob sounds nice...http://danadler.com/jacob/

  • How to use Calander Component in JSF JSCreater

    i am using the calander component in JSCreter .
    i have one jsp page with a button and a calander component . If i let the calander field blank then the action event of button is fired but if i select some value in calandar field then then click the button then on action is fired
    what can be the reasion .

    I saw the documentation. But it uses com component which has ClassID / GUID. but how to use .net component and I think .net component doesn't maintain any registry information like classid / guid.

  • How to use the TCP/IP in Java?Thanks!

    How to use the TCP/IP in Java?Thanks!

    Look at the java.net package, more specifically to classes ServerSocket (The server TPC conection) and Socket (the client TCP conection)
    Abraham

  • How to Use Windows XP theme in Java

    How to Use Windows XP theme in Java.
    I am an developing application which L&F should be like Windows XP.
    Because I am going use this application in different OS.
    Which LookAndFeel I have to use it

    try this in main:
    try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}
    catch (Exception exc) {System.err.println("Eroare la incarcarea look & feel" + exc);}

  • How to use HTML Tags in webdynpro java

    Hi,
         Can any body tell me how to use HTML Tags in webdynpro java.
    If u provide me with sample code it will become more usefull.
    Thanks & Regards,
    SN

    HI,
    Please find the steps:
    Create a html file and store in your webdynpro project
    Add the html contents in your file
    & Create a IFRAME UI element and refer you html file
    Now you able to see the html in webdynpro
    Thanks & Regards,
    Ram

  • How to use ObjectDataProvider component in WDA

    Hello all,
    I hv an urgent requirement to develop an OADP based application in SAP webdynpro Abap (to fetch tree like structure). i don't know how its possible, but i heard we can use ObjectDataprovider component to do the same.
    Does anybody know how to use "ObjectDataProvider" component in web dynpro abap to develop OADP based Webdynpro abap application, a step by step guide would be very nice. or do i need to fetch data myself using methods in webdynpro.
    any reply will be highly appreciated.
    thanks
    Mani

    Hi,
    Know this is an old post, but for future people:
    In se80, see example Web Dynpro components:
    OADP_EXAMPLE
    OADP_TEST
    Good luck,
    Garth

  • What are the simple to use COM library in your java code

    Hi,
    what are the simple to use COM library in your java code

    PhHein wrote:
    [javax/comm|http://java.sun.com/products/javacomm/reference/api/javax/comm/package-summary.html]
    No, he wants to use Windows COM objects!
    @OP
    It's not easy. You can try j-integra or ezjcom, which I tried years ago and was not too happy, but maybe
    they improved or they are just fine for your needs. $$$ involved!
    If you want to do it by yourself, it won't be easy at all, I promise, but it can be done with JNI or JNA.
    If your interactions are very few and simple, maybe some workarounds could be found.

  • How to call the method from the java bean and pass it to JSP textbox

    i'm quite new to java thats why i'm asking how to call a method in the java bean file and pass it to the JSP textbox. My projects are communicating JSP with C#. i had successfully created a C# client bean file for JSP. The whole process is to type something on the server(C# programming) and it would appear in the textbox.

    your question doesn't provide much informartion. provide some other information and coding so that we could tell exactly what you are looking for?

  • Java mapping how to use com.sap.tc.logging

    Hi I would like to know how to use logging within a java mapping.
    I know i have to use theese classes : Location, Category, ConsoleLog but i dont know how.
    1) How to load the P1, P2, P3 and P4 tags in the Error tag of the SOAP header watched in SXMB_MONI
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">STREAM_TRANSFORMATION_EX</SAP:Code>
      <SAP:P1>SwissMedical/Interfaces/IFI002/LiquidacionMapping~</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Java mapping of application triggered an exception</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    2) How to load and activate log in the DIAGNOSTIC tag of the SOAP Header.
    - <SAP:Diagnostic xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:TraceLevel>Information</SAP:TraceLevel>
      <SAP:Logging>Off</SAP:Logging>
      </SAP:Diagnostic>
    Thanks!!

    As already suggested, you can display custom messages using AbstractTrace.
    trace = (AbstractTrace)param.get( StreamTransformationConstants.MAPPING_TRACE );
                        trace.addInfo("G1-CYCLE is missing");
    For more on coding front refer:
    http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/StreamTransformation.html
    To get this trace seen in MONI, set parameter TRACE_LEVEL in SXMB_ADM to 2.

  • How to use MyFaces component with Java Creator 2

    Please advise for me the way to use Myfaces component with Java Creator 2. Thanks

    Apologies for the late reply, but currently what exists generally for MyFaces integration with Creator is on this blog:
    http://wiki.java.net/bin/view/Javatools/CustomComponentLibraries
    You might also want to post the same question on the nbusers alias on netbeans.org, referencing Visual Web Pack
    Regards,
    -Brad Mayer

  • Use COM (Component Object Model) libraries

    I am new in Java but can write simple application already.
    Now I have a need to write a simple application to manage my Nokia cellphone via a cable. I have downloaded the Nokia PC Connectivities SDK already. In the manual, it states that "all the libraries are implemented as COM (Component Object Mode) Libraries". All examples inside are Visual Basic...
    How can I make use of the libraries in Java? What area of Java should I study for this purpose?
    Thanks a lot.

    Sun has a Java-COM bridge somewhere on the Java website for this purpose. Also, there are a heap of third-party ones too, both commercial and open-source. Just search for 'Java COM bridge' on Google.

  • How to use .properties files in Webdynpro Java code?

    Hi all,
      I want to use a logon.properties file when I initial a JCO connection pool in my webdynpro DC (JCO.addClientPool()),but  I found when I deployed this DC to the server, it always giv e me an FileNotFoundException. So I donot know how to deploy a .properties file to the server and how to access this file in my Java code?
    Thans and Best regards
    Deyang

    Hi,
    1) put .properties file to your packege under src\packages folder (src\packages\com\sdn\properties\jco.properties)
    2) load property:
         final InputStream is = getClass().getClassLoader().getResourceAsStream("com/sdn/properties/jco.properties");
         final Properties properties = new Properties();
         try
              properties.load(is);
         catch(Exception e)
              wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);
    Regatds Maxim R.

Maybe you are looking for

  • Want to pass Realm login username to php web page

    I have a web directory set up as a Realm via Server Admin. I'd like to grab the authentication info (really just the username) and use it via PHP to compare against a mysql table of users to pull out username and real name so the user doesn't have to

  • Cant open Itunes, please help

    can someone please help me. i have an ipod photo. a friend of mine has an ipod video, and he wanted me to put some music on his ipod. i wasnt able to do so unless i updated my itunes software. when i did this, and restarted my cpu i was unable to ope

  • Queries on multiple worksheets.

    dear all, i have a requirement which i have to create multiple queries and load them on to different worksheets. I also have a main worksheet that is predefined by the customer and that worksheet will either do a VLOOKUP or HLOOKUP to get the values

  • Does cinema display interfere with wifi?

    Sometimes I use my laptop (macbook pro) just on its own, and no problem connecting to wifi... then if I plug it into the display and sometimes the wifi drops... Maybe just irregular boadband service, but I wonder if adding displays or bluetooth or an

  • Huawei E220 and Macbook air

    When I plug my E220 into my Air I get an error message that the Air cannot recognise the drive. If I plug the same E220 into my iMac it works and connects fine. The same Huawei software is loaded on both machines. Any ideas? alfie