Using COM component from EJB

Hi,
I'd like to use a third party COM component from. I know JIntegra and such tools but I'd like to use a non-commercial software as I need it for my diploma thesis.
Did anyone ever manage to call an ActiveX/COM component from an EJB. I mean a third party component, not a self developed one.
Could I use M$ specific classes in my EJB or do they rule out each other?
Any working example?
TIA
Frank

Did you really manage to use third party DLLs with EZJCOM?
Would be great if you could clarify this to me:
If I would use M$ specific classes to have a Java / COM - communication then I would
have to use M$ JVM, right?
But if I use that VM, I can not use my classes within the J2EE / EJB environment as this
requires Sun's JVM, right?
So, if I use EZJCOM for that than I do not have to use any M$ specific stuff, right?
Unfortunately, I did not get any further yet. The product I'd like to use is Lindo.
I have the DLL, but trying to use it with EZJCOM it says: No COM interface definition.
No tlb is given either. There's a JAR package with classes that seem to use JNI to call
DLL functions, so maybe it does not provide a COM interface.
But that means I would have to build my own (maybe VB) ActiveX DLL that calls all the funtions
in the Lindo DLL. But that would keep me busy for weeks I guess :-(
As I need it for my diploma thesis, I can not spend a lot of time building ActiveX components.
Frank

Similar Messages

  • 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/

  • Calling a VB Com component from Java

    Hi,
    I wish to call some legacy VB 6 COM dlls from some new Java code I am writing. I was looking (just read quickly haven't tried the examples yet) at the ActiveX Bridge documentation and get the impression that it only goes one way -i.e. make Java into an ActiveX Component to be used from VB, whereas I wish to call VB from Java.
    Have I missed something or is this not the way to go to get to the legacy code?
    The legacy code also has an MIDL file. Ideally, I would love to just be able to access that from Java, but I can't find any (non-Microsoft VJ++ based) tools to help with either converting MIDL to IDL so I can use Sun's idlj.exe or just converting the MIDL to Java.
    Any pointers/tips on any of this would be appreciated.
    Thanks,
    Cheryl

    I looked at Jacob, but didn't get far either.
    Right now I'm looking at Jawin -
    http://jawinproject.sourceforge.net/jawin.html. Not
    making a lot of headway yet.
    IDL is OMG's IDL (Interface Definition Language) -
    http://www.omg.org/gettingstarted/omg_idl.htm.
    MIDL is Microsoft's version of IDL for COM - I believe
    it uses IDL., but can't seem to find a conversion
    tool.
    idlj.exe is in the bin directory of whatever JDK you
    have loaded. This tool will convert OMG IDL into Java.
    Good luck to you.Hi,
    I am facing a similar problem. I need to access a vb dll methods. I took and look at jawin and installed it.
    I want to invoke a method in the dll from my servlet.
    So do I have to create stubs for it. I opened the Type Browser that comes with jawin. It is a GUI through which I am supposed to create stub java files for that dll. But I am getting this error:
    [EXCEPTION] InfoPanel.generateInfo() failed to generated info
    org.jawin.browser.xsl.TransformationException: TransformationManager.cacheStyles
    heet() failed to compile stylesheet from: stylesheets/info/library.xsl - javax.x
    ml.transform.TransformerConfigurationException: javax.xml.transform.TransformerC
    onfigurationException: javax.xml.transform.TransformerException: java.net.Malfor
    medURLException: no protocol: stylesheets/info/library.xsl
    at org.jawin.browser.xsl.TransformationManager.cacheStylesheet(Transform
    ationManager.java:130)
    at org.jawin.browser.xsl.TransformationManager.checkStylesheet(Transform
    ationManager.java:180)
    at org.jawin.browser.xsl.TransformationManager.transform(TransformationM
    anager.java:147)
    at org.jawin.browser.info.InfoPanel.generateInfo(InfoPanel.java:68)
    at org.jawin.browser.info.InfoPanel.selectionChanged(InfoPanel.java:61)
    at org.jawin.browser.tree.TypeDataTree.fireSelectionChanged(TypeDataTree
    .java:61)
    Is anyone sucessfully able to generate stub files for the dll in jawin using Type Browser ?
    Please let me know
    my mailid is tanveerrameez(at) yahoo dot com
    thanks
    Tanveer

  • Using Spring beans from EJB MDB

    I have a situation where I need to use spring beans from an EJB 3.0 MDB. The project does not have any webapps or anything,
    it will be only a MessageBean facade that needs to call spring beans. It is meant to be a service, that can be called by usign a single EJB message.
    The problem is I cannot get the spring context to load properly, since the MDBean it self is initialized(constructor called) only when it receives the first message from the broker, thus It's "too late" to initialize the spring context. What I want to do is load the spring context when the EJB is deployed in the Java EE container. So, is there a way I can call a some method, class, anything when the EJB is deployed in the container. Can I do something with a deployment descriptor?
    I am using glassfish V2 UR1, EJB 3.0, Spring 2.0.7 The project is deployed as a jar.

    Miku wrote:
    I have a situation where I need to use spring beans from an EJB 3.0 MDB. The project does not have any webapps or anything,
    it will be only a MessageBean facade that needs to call spring beans. It is meant to be a service, that can be called by usign a single EJB message. Why not make it a real service? Spring's contract first web services are a very nice way to go. It hides the fact that you're using a message-driven component for processing, too.
    %

  • OAS and using JDBC-drivers from EJB

    Hi.
    I have a problem with accessing the database from EJB-components
    deployed to OAS 4.0.8. The database is 8.1.5-version. I'm trying
    to use a connection exactly like it is documented in OAS-EJB-
    documents, the connection string looks like this:
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:jts8:@ora8i");
    And this is the error that above sentence it generates:
    "Sub Protocol must be specified in connection URL".
    The DAD(ora8i) is created in OAS.
    Now, I don't even know if this uses JDBC/OCI or thin since the
    documented connection-string doesn't contain that information. I
    quess it must use OCI-drivers, at least I should use them and
    they should be installed with OAS.
    So:
    * I should use only jts-enabled JDBC-drivers when developing EJB-
    components, is this right?
    * How can I connect to the database (from OAS 4.0.8 to Oracle
    8i), the string please?
    Thanks,
    [email protected]
    null

    Hi Suresh,
    There is lot of Documentation available on this, check these links
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/07d2eeea3e0485e10000000a155369/frameset.htm
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/08546ff5200486e10000000a155369/frameset.htm
    Venkat.

  • 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.

  • Using T3 Services from EJB's

    I want to use weblogic's T3Services from within stateless session beans. But when I try to do this I get the following error
    java.rmi.RemoteException: java.lang.NoClassDefFoundError: weblogic/common/T3ServicesDef
    and when I try to put \weblogic\classes in JAVA_CLASSPATH while starting weblogic the server does not start.
    Is their a way of using these services from within EJB's
    I am using weblogic 5.1.0 service pack 6 under WINNT environment with SP5
    Thanks
    Sohit

    You have classpath problems. Please post the classpath and the weblogic
    classpath that you are using to start the server. In particular, make
    sure that your ejb-jar is not found in either of these.
    -- Rob
    Sohit wadhwa wrote:
    >
    I want to use weblogic's T3Services from within stateless session beans. But when I try to do this I get the following error
    java.rmi.RemoteException: java.lang.NoClassDefFoundError: weblogic/common/T3ServicesDef
    and when I try to put \weblogic\classes in JAVA_CLASSPATH while starting weblogic the server does not start.
    Is their a way of using these services from within EJB's
    I am using weblogic 5.1.0 service pack 6 under WINNT environment with SP5
    Thanks
    Sohit

  • 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 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 Messeges component from a button Action ? (add item to Messages)

    Hi
    Thank you for reading my post
    I have a Messages component on one of my ADF JSF pages.
    i create an Action method for one of my buttons that are on the page and now i need to
    add some items to Messages component , for example to alert the manager that the user name he/she want to add to system is already exists.
    can some one give me some help about this ?
    my problem is that from an Action method how i can access that Messages on the page that called the action.

    Hi,
    this is from the ADF Developers guide which is available on OTN:
    if (!password.equals(confirmPassword))
    FacesMessage fm = new FacesMessage();
    fm.setSummary("Confirm Password");
    fm.setDetail("You've entered an incorrect password. Please verify that you've
    entered a correct password!");
    FacesContext.getCurrentInstance().addMessage(null, fm);
    }Brenden

  • COM Component problem with BPC Excel

    Hi!
    We are using BPC MS 7.5 service pack 3 version. Microsoft Office 2007
    On one of our client machines we got problem when trying to enter BPC for excel,nothing appears and something is downloading showing Installing COM Component from http://activex.microsoft.com/objects/ocget.dll site. And after a while Excel is shut down.
    It´s the same errro entering from Launch Page or Log on from native Excel.
    We have already tried uninstalling and installing BPC client and uninstalling and installing Microsoft Office on this specific client machine with the problem.
    Regards
    Fredrik

    This was solved by this Microsoft fix:
    http://support.microsoft.com/kb/323207/en-us

  • Access COM component in Java

    I am trying to access a COM component in Java. I want to bring up the Windows clock (which I understand is a component) and call it up from within my code. I just need it to appear - not do anything specific. I did post this question and one person said it was not something normally done in Java and that I should use a Java-COM bridge. While I am not opposed to that - I am trying to keep the solution within Java without using third party components if possible.
    I have got the impression from some things I've read in various forums and elsewhere that it is possible to do with JNI by using a wrapper written in C. Have I got that right? If so - how would I go about doing that? Could someone point me in the right direction of some examples that might be similar to what I'm trying to do?
    Any help would be appreciated....

    Regarding the reasons behind the clock:
    I am using a product (work-related) that has a java engine built into it to allow the user to manipulate columns of a database with built in functions written in Java. However, within this mini-development area you can also run regular java code.
    I will in the not-too-distant future need to access a COM component from a third party vendor that will allow me to do various data checks on data (i.e. post code verification) so I want to know how to access COM components generally as well. The idea behind accessing the windows clock (and by "accessing" I mean just throwing it up on the screen and not doing anything else) is that (a) it is an easily recognizable COM component in the windows environment and (b) it should then be fairly easy to translate what I have learned to allow me to integrate the other component. ( I hope! )
    I think for the time being I will look to the tutorial and see if I can get anywhere with that.
    Having explained a little further what I'm trying to do - any further suggestions on things to read or look at are welcome. And thanks to everyone who responded - this is new territory for me and I'm muddling through it as best I can. I do appreciate you all taking the time to help me.

  • How can JSP access a COM+ component

    I have to develop JSP pages that leverage existing Microsoft COM+ components. Can anyone suggest a good resource or provide me with a quick explanation/overview of how I would access a COM+ component from JSP? I'm getting exhausted searching the internet for answers only to come up empty. Thanks...

    I use Neva Object (www.nevaobject.com) for this sort of thing. This is a commercial product. The product does what it says it does and that is as far as I will endorse it.
    Since purchasing it I came accross
    http://staff.develop.com/halloway/code/jawin.html
    This looks like it will do much of the same thing but is more suitable for scriptable COM objects. It is also an open source license.
    I don't have any experience with jawin but the support community looks strong. Checking out their website will be worth your time.
    Good luck
    Bill

  • Instantiating COM objects from within the java code in WLS

    is there a way to use COM objects from servlets or ejb's,
    with JVM, not with JView.
    thanks,
    ali.

    Sun has released a beta product - its a COM bridge that you can use
    to connect a Java2 JVM to a COM object with. I havent tried it yet
    but I probably will soon.
    Brad
    "Michael Girdley" <[email protected]> wrote in message news:39b86deb$[email protected]..
    >
    >
    No, at the current time we only support COM integration when using the
    Microsoft JVM. The Jintegra product from Linar is good.
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "Ali Ozgun" <[email protected]> wrote in message
    news:[email protected]..
    is there a way to use COM objects from servlets or ejb's,
    with JVM, not with JView.
    thanks,
    ali.

  • 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.

Maybe you are looking for

  • Excise duty in the Pricing Procedure for Local Purchase / Importation

    Hi, I'd like to know how to set up the pricing procedure for the purchase of an IS Oil Material; for local purchase and importation, especially with regards to the excise duty posting. Local purchase:  the vendor will bill us inclusive of the ED tax

  • Can I install windows on a fresh hard drive?

    I'm installing a fresh hard drive into a macbook pro, I'm wondering if the hard drive will accept a windows 7 disc to install as OS, or will it only accept OSX, and if I'd have to go through bootcamp.

  • Mail.app crashes, never comes up...

    Something happened to Mail on my machine. Suddenly it crashes when I try to launch it. The icon on the toolbar bounces for a while, then stops. The system makes a crashreport, but it does not tell me anything. I am not sure what made the application

  • 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 o

  • How to extract data from MDTC table.

    Hi all. I want to fetch data from MDTC table. But in that table field CLUSTD contain compressed data. How can i extract that data. Can i extract data for structure MDPSX. is MDTC table is used in function module MD_STOCK_REQUIREMENTS_LIST_API . Pleas