Calling COM objects
I have client HTML forms sending info to the middle tier. On the middle tier are Microsoft COM objects that have the business logic. The middle tier is Windows NT.
Previously, Microsoft IIS was the applications server and ASP was used to access the COM objects.
How can I use Oracle9i Application Server to call the COM objects? I suppose that I could receive the client input in a java servlet and make CORBA calls via a CORBA-COM bridge to the COM objects. Is there a better solution? If I have to do the CORBA-COM, anything I should look out for? I suppose the performance can't be very good over that many layers.
null
Hi John,
Thanks for the reply.
I have already looked into those topics which talks about Jintegra( com2java tool) and EZ Jcom .Basically these generate the java proxy classes, which is tedious to manage.
In asp we have something like Server.createObject(...). Is there anything similar to this in jspx?
Regards,
Asha
Similar Messages
-
How can I call COM object in a servlet?
Hi,
Does oracle provide a bridge to call COM objects in a servlet? Is there any sample for doing this?
Thanks,
ArchieArchi,
Take a look at the following link:
http://technet.oracle.com/products/ids/daily/jul12.html
You can use J-Integra, one of JDeveloper's Extensions, in your Servlet to call any MS COM objects. -
Problem calling COM Object on Windows Server 2008 x64
Hi,
We are using 32 bits COM object called in Coldfusion page on 32 bits OS. It works fine since few years.
Now we need to use it on x64 Windows Server 2008 and 64bits IIS.
As I 've seen (http://www.coldfusionjedi.com/forums/messages.cfm?threadid=87869C67-B1 9B-288F-F32B6E8BAB3228CA ),a 64 bits process can only call 64 bits DLL.
So we created a 64 bits Wrapper like this : http://www.dnjonline.com/article.aspx?id=jun07_access3264
But calling 64 bits COM Object still raises the same error (" The cause of this exception was that: java.lang.RuntimeException: Can not use native code: Initialisation failed") whereas it works fine with a 64 bits executable created in .NET for example.
Is there a known issue about this subject?
Sorry for english , I'm a french developper.
Thanks in advance.Can somebody please share the solution for this issue?
I am facing similar issue with Windows 2012 R2 x64 OS and Excel 2007(32-bit) combination.
I tried couple of things like Excel is able to Open an existing workbook on my system but fails to
create a new Workbook as done by invoking the "Add" command. It fails with Error 800a03ec.
I tried creating the two folders i.e. C:\Windows\SysWOW64\config\systemprofile\Desktop & C:\Windows\system32\config\systemprofile\Desktop, but could not get it working. -
Calling COM object from an Applet
Hi,
Can an applet communicate with Microsoft COM object?
ThanxCheck out some software called JIntegra (commercial). Also, I think there used to be some sun stuff... but it got dropped... and then got picked up again... but I don't know what the status is on it.
-
Is it possible to call COM objects from ABAP?
Hi guys, is it possible?
Can you also provide me a little sample code?
Thanx a lot!
PeterI think OLE is possible through ABAP
as in
INCLUDE OLE2INCL.
DATA EXCEL TYPE OLE2_OBJECT.
CREATE OBJECT EXCEL 'Excel.Application'.
FREE OBJECT EXCEL.
i dnt know much about COM ..
there maybe somthing similar to this
hope this helps
Award forum points to helpful answers -
General COM object considerations
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec14713 -7fef.html
Note that ColdFusion does not support calling COM objects in CF 64-bit editions. For more, see http://helpx.adobe.com/coldfusion/kb/coldfusion-limitations-running-coldfusion-64.html.
-
Invoking COM objects from Weblogic EJB
Hi,
I am searching the BEA site on how best to call COM objects from
a EJB deployed in Weblogic. I find rmi over iiop, articles on ObjectBridge
which are confusing. Is there a sample where a COM method is called
from EJB server ( I only see example the other way round)
Thanks,
Harish.http://www.weblogic.com/docs51/examples/com/examples.com.ServerSideDLLClient.html
This shows use the WebLogic COM compiler to generate and RMI wrapper
around a COM DLL and invoking it remotely. Unfortunately, the example
appears to be a little out-of-date (e.g., it is using the old RMI Naming
style of doing the lookup)...
Be forewarned, WebLogic COM is not supported in WebLogic 6.0 (due to the
inavailability of a Microsoft 1.3 JVM implementation).
Harish wrote:
JIntegra is fine, but I want to know if anybody tried WebLogic-COM.
(Is this the right forum?)
Actually I tried out the 'beeper' sample but still have many doubts.
Robert Patrick <[email protected]> wrote:
JIntegra by Linar (http://www.linar.com).
Harish wrote:
Hi,
I am searching the BEA site on how best to call COMobjects from
a EJB deployed in Weblogic. I find rmi over iiop, articleson ObjectBridge
which are confusing. Is there a sample where a COM methodis called
from EJB server ( I only see example the other way round)
Thanks,
Harish. -
How can I call a COM object from a PL/SQL CODE
Hi everyone,
Does anyone know how to call a COM object from a stored procedure in oracle.
a sample of code
please help,
HilaireAre you familiar with external procedures? Basically, you can expose functions exported by a shared library (i.e. a DLL on Windows) to the Oracle database. My assumption is that you'd probably need to write a wrapper DLL around the COM object, since I believe you can only pass fundamental data types back and forth (i.e. no object references). You'd expose the method(s) of that wrapper DLL to the database via external procedures.
Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com/askDDBC -
How to call a COM object from an Oracle Form?
Hi All,
Pls advice. How to call a COM object from an Oracle Form?
Thanks.try asking the "Form" forum
-
Calling test sequence from CVI DLL that use ATL COM object does not work
I am trying to call some DLL function writen in CVI from teststand. The CVI DLL is using ATL COM object(Written by me).
The ATL COM object making instance of several ATL COM object inside it (including two controls that contains dialog). If I use a client writen in VC++ 6 and use the ATL COM (writen by me) works perfectly. But if I try to use it from CVI DLL it does not work any more.
What is wrong? The client is passing an IUnknow interface to my component. Can anybody explain me what is wrong?It is not clear from your question as to what is specifically failing. If possible, one option would be to remove TestStand from the picture and see if the problem still occurs using a CVI EXE that invokes the CVI DLL.
Scott Richardson - NI
Scott Richardson
National Instruments -
Call MS com object via SOAP from WLS 6.1
I generated a WSDL file for a Microsoft com object and can easily write a WL
web service that calls it using Workshop 7.0. But I need to deploy it on a
WLS 6.1 server. (I was hoping that Workshop would simply generate the source
code required for accessing the com object via soap, which I could then cut
and paste into my own source, but it doesn't do that.)
Does anyone have an example of how to do this?Hi Mel,
You said that you want to "deploy it on WLS 6.1", but I think what you really
meant is that you want a J2EE component (i.e. JSP, Servlet, EJB, etc.) running
in WLS 6.1 to consume the WSDL you created from the COM object, right?
If so, the web services package in WLS 6.1 can be used to do this :-) If you tell
me what type of J2EE component (i.e. JSP, Servlet, EJB, etc.) you want to be the
client, I'll provide you with some sample code. Also, be sure you attach the WSDL
that was generated, because WLS 6.1's WSDL processor isn't as complete as the
one in WLS 7.0 and Workshop :-)
Regards,
Mike Wooten
"Mel Werbow" <[email protected]> wrote:
I generated a WSDL file for a Microsoft com object and can easily write
a WL
web service that calls it using Workshop 7.0. But I need to deploy it
on a
WLS 6.1 server. (I was hoping that Workshop would simply generate the
source
code required for accessing the com object via soap, which I could then
cut
and paste into my own source, but it doesn't do that.)
Does anyone have an example of how to do this? -
JVM crash when calling no-arg methods of a COM object with JACOB
When I try to call no-arg functions of a COM object with JACOM JVM crashes with the following error
# A fatal error has been detected by the Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x770e47c5, pid=5424, tid=3392
# JRE version: 6.0_17-b04
# Java VM: Java HotSpot(TM) Client VM (14.3-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C [ntdll.dll+0x347c5]
The log is at [http://paste.linux-sevenler.org/index.php?id=32319|http://paste.linux-sevenler.org/index.php?id=32319]
Thanks in advance
SerkanThis only happens with sun JDK IBM jdk works fine
-
Sun JDK 1.3.1 calling a Microsoft COM object???
My question, which inevitably in my eyes has been deemed impossible to answer, is as follows: How can one incorporate MS VM to connect to an MS COM object using Sun�s JDK 1.3.1?
I�ve tried the following: I ran the simple example of a COM object with a client interfacing with that COM object that came with MS SDK for Java 4.0. I built the *java files using the given makefile (jvc). I registered the Hub with javareg and created a hub.tlb with jactivex.
Using JBuilder 4.0, I built a small non-swing object that created in instance of the Client class from above:
import sample.dcom.*;
public class Main
public Main()
try
// MS Client � the Client class creates the COM object connection to HUB
Client client = new Client();
catch( Exception exception )
System.err.println("Default exception caught");
System.err.println(exception);
exception.printStackTrace();
I was able to compile/make the above snippet of code, but without having access to the com.ms* classes and without loading a library (since the Hub class actually references a native function), I was not able to run my application:
java.lang.UnsatisfiedLinkError: addListener
at hub.Hub.addListener(Native Method)
at sample.dcom.Client.<init>(Client.java)
at am.temp.Main.<init>(Main.java:30)
at am.temp.Main.main(Main.java:44)
However, if run the following command: jview Main, I get the necessary results. Which is what I thought would happen. I tried doing the same thing within a swing application, however, to my not-so-surprise, MS doesn�t contain swing components. I�ve read through many forum headaches: �I�ve tried appending rt.jar�, �You can�t mix MS with Sun�, etc.
Therefore, has anyone had any luck creating/connecting/instantiating a MS COM object while trying to run it under Sun�s VM? Note: I have to do it this way since the application I�m trying to connect to is built as a COM server and I�m using Java as my application language.
Thank you.gui != COM.
In other words COM objects are not limited to GUI objects. From your question it looks like you have a COM object which is a gui component. And you want to use it in swing. If it is just a fancy drop down box then I would say the complexity isn't worth it. If it does more, then I believe that people have put 'windows' into swing frames. You can search this forum or perhaps the "Advanced Programming" (or even all forums) for more discussion on that. -
How can I use a COM object that does not have a type library?
Hello,
I've created a com server in python for which I do not have a type library. I am able to call functions for this application in Python, TCL, I'm sure VB, etc. without the type library.
Must I have a type library registered to use this COM object with Labview? I was hoping I could simply supply the name to the refnum (or the GUID) then call functions by passings strings to the invoke node. This does not seem to be possible - am I missing something?
In the event that I cannot use a com server without a type library. Any recommendataions on how to create one? I'm wondering if I can use the same GUID and create a shell in LabWindows which generates the IDL/TBD file I need for Labview to see my
com server.
Any help is greatly appreciated.
73,
TimothyTimothy Toroni wrote:
> Thanks for the info, however their example is labview server and
> python client. I'm going the other way. It's good to know about
> LabPython though...
>
> As of now, it seems to be there is no way to use a COM object without
> a type library from inside LabView.
Yes that is true. LabVIEW needs that to configure the Property and
Methode Nodes correctly. Otherwise it would need to have a special
Property and Method Node with a configuration dialog similar to the Call
Library Node, but a LOT more complicated. Not sure many people could
make use of that, and it would be a very tiring experience trying to get
things setup in that way, by going through the edit, test, and crash
cycle over and over again.
Rolf Kalberm
atter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Error while reading indesign(.indd) file through COM object in c#
I want to read InDesign(.indd) file in c#. I have installed adobe InDesignCS6.
I have added COM reference of 'Adobe InDesign CS6 Type Library' in my c# application.
Code snippet is as follows.
[STAThread]
static void Main(string[] args)
InDesign.Application app = (InDesign.Application)COMCreateObject("InDesign.Application");
Document doc = app.ActiveDocument;
Page page = doc.Pages[1];
TextFrame frame = page.TextFrames[1];
Console.WriteLine(frame.Contents.ToString());
public static object COMCreateObject(string sProgID)
// We get the type using just the ProgID
Type oType = Type.GetTypeFromProgID(sProgID);
if (oType != null)
return Activator.CreateInstance(oType);
return null;
But the first line itself throwing an following error while type casting output of COMCreateObject method into InDesign.Application type.
Error :
Unable to cast COM object of type 'System.__ComObject' to interface type 'InDesign.Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{ABD4CBB2-0CFE-11D1-801D-0060B03C02E4}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Kindly help me. Its urgent.try this,
InDesign.Application app = (InDesign.Application)COMCreateObject("InDesign.Application.CS6");
Maybe you are looking for
-
I wrongly entered my apple id into my new i phone . It was my e mail address with a letter wrong I have registered correctly on the i cloud account but when I go to get apps it still shows wrong e mail How do I delete this incorrect e mail? Thanks Mi
-
Instead of customized push notification getting only simple notification with alert message?
Recently the provisional certificate got expired and we renewed new one installed in server the latest problem is we are just getting app name with text named alert. More than this nothing can see in push notification we are customized with name and
-
Downloading Content (Error Code 8008)
Just wondering if anyone else has experienced this same thing... On two occasions now with my Apple TV (1 HD Movie rental and 1 TV Show purchase), the file completes exactly 32% of the download and then stops with error code (8008). If I do "Check fo
-
i bought a macbook pro and downloaded videos from itunes and some were digital copies of blue rays but i had to return the old mac for a new one and now i cant retrieve my videos under purchased how can i get my videos back some of them being digital
-
Help cannot create standard iviews
I am super admin. logged into portal this morning tried to create iviews, could not see any template. in the PCD, I have checked permissions all is fine. but i still cannot create anything. pls help.