Re: Anyone know about ActiveX in Java?

From: Jared Dykstra (dyksjare_at_hotmail.com)
Date: 12/30/03


Date: 30 Dec 2003 14:53:17 -0800


"S C A" <nospamemail@bellsouth.net> wrote in message news:<rkkIb.50786$Ol1.8369@bignews3.bellsouth.net>...
> Jared:
> Thanks for the response. Yes, I am trying to use the ActiveX control via
> Java. The problem is that while I can use it and it works quite well in
> Visual Basic (it's a TAPI wrapper for answering, making calls on Dialogic
> boards), I can't figure out how to use it (the Dialogic telephony board) via
> Java. I do know that Dialogic has a C API and wonder if that will be my only
> or best avenue?
>
> Thanks for your help,
> Carl
> P.S. This is due to the fact that I am thinking learning Java but don't want
> to miss out on my ability to program the board.
> "Jared Dykstra" <dyksjare@hotmail.com> wrote in message
> news:ba84b53e.0312292146.52182d24@posting.google.com...
> > "S C A" <nospamemail@bellsouth.net> wrote in message
> news:<rw%Gb.27238$Ol1.19202@bignews3.bellsouth.net>...
> > > Dear All:
> > > I'm not sure if this is even possible but does anyone know about using
> > > ActiveX controls (a Microsoft-specific technology) in Java? I am having
> a
> > > heck of a time finding some similar functionality in Java provided by
> some
> > > controls (ActiveX) and I was wondering if I can manipulate them using
> Java?
> > >
> > > Thanks in advance,
> > > Carl
> >
> >
> > Are you trying to build an ActiveX container in Java? What is the
> > functionality you are looking for?

AcitveX components obviously depend on the operating system and are
not run by the VM. Java is not designed to do this. You may have a
couple options:

1. Convert the Java applet to a servlet and use Internet Explorer as
your servlet container. You can then POST data to the activeX control
or to the servlet. You can even embed the ActiveX control in a JSP
page if you wish.

2. Write a container for the ActiveX control as a win32 executable or
dll and invoke it from java. You can either exec() it, or use the
Java Native Interface (JNI) to wrap calls to a dll.

Both of these are hacks and you should use MFC, VB, or something
better suited for interfacing with ActiveX. Microsoft may provide a
way to do this with their VM, but I am unfamiliar with anything
outside Sun's standards in this respect.

---
Jared Dykstra
http://www.bork.org/~jared


Relevant Pages

  • Re: Setting up a Java development environment the debian way.
    ... > imply that JBoss incorporates Tomcat. ... A servlet is the Java equivalent of a CGI ... JBoss is an Enterprise Java Bean container. ...
    (Debian-User)
  • Re: Terms :)
    ... Where can I find the most complete definitions of the technologies Java ... A servlet is a compiled bit of java that's run by another java program called a container. ... Basically, the container uses reflection to load and inspect the servlet, and then uses that and configuration info to decide what to do with the servlet. ... The most common container is Tomcat, which can funtion as a web server, but also Tomcat can be connected to a running Apache instance. ...
    (comp.lang.java.help)
  • Re: Java and ActiveX Integration
    ... Using an ActiveX control as a Java class ... Manipulating a Java applet through ActiveX scripting ...
    (comp.lang.java.programmer)
  • URGENT: .Net Controls Vs Java Applets
    ... My company is making a decision about using Java or .Net. ... Microsoft based ... and we have a specific ActiveX control that we have to turn into a Java ... but I am still be able to run Java Applets. ...
    (microsoft.public.dotnet.framework)
  • Re: Making IE and a standalone Java application communicate...
    ... >> ActiveX control can be notified of the click and get the clicked URL ... as a listener of the *currently run IE instance*. ... When a URL link is clicked in this instance of IE, ... When the Java application is started, ...
    (microsoft.public.win32.programmer.ole)