views:

1500

answers:

5

Is it possible to call a COM API from Java (specifically the HP/Mercury Quality Center OTA API)? If so, what's the best way?

Is something like JACOB appropriate?

Code fragments would be helpful for the basics :-)

+6  A: 

jacob : yes, http://sourceforge.net/projects/jacob-project/ is an active project that will suite your purpose pretty well.

you can see multiple examples : http://jacob-project.wiki.sourceforge.net/Event+Callbacks

but if you want something that is more tested and are willing to pay money, then go for http://www.nevaobject.com/_docs/_java2com/java2com.htm.

anjanb
+2  A: 

I've also found this to be useful: com4java

Darksider
+2  A: 

You can use Jawin > http://jawinproject.sourceforge.net/

or try the instructions http://docs.rinet.ru/ZhPP/ch20.htm

Arun K.Y arunky

A: 

j-Interop is a Java-COM bridge: j-Interop. It's written in pure Java and licensed under the LGPL v3. It uses the DCOM wire protocol to call COM objects as opposed to the JNI approach used by JACOB.

richj
+1  A: 

maybe you should have a look at http://qctools4j.sourceforge.net/ it's a java library used by qclylyn (http://sourceforge.net/apps/mediawiki/qcmylyn/index.php?title=Main_Page) to retrieve defects from QC.

unfortunately the COM bridge doesn't work for linux as it loads jacob dlls

z0rglub