Hi
we just tested a good tool provided by IBM Alphaworks team for this problem,
you can talk to your COM object using OLEObject1.0 from IBM.
We are now testing it!
All you need is to creatr the Java class import the packages, register the
DLLs and call the interface methods!
It is using the RMI technology to communicate so going distributed is not a
problem

the link is http://www.alphaworks.ibm.com/tech/olebridge
Best regards
Mehrdad Loghmani

-----Original Message-----
From: Kevin Mukhar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 18, 2000 9:17 AM
To: [EMAIL PROTECTED]
Subject: Re: How Application communicate with Servlet?


Maizatul wrote:
>
> Hi! I want to pass Data from an application to a servlet. Do you out there
> have any solutions or is there any sites that have the sample of that?

Let's see... how many ways are there for two programs to communicate?

Have the app open a socket connection to port 80, talk to the web
server/servlet
engine using HTTP protocol.

Have the servlet open a socket and listen. Have the app connect to this
socket
and send the data. Or have the app open and listen to a socket; have the
servlet
connect to the socket.

Implement the app as an RMI server. Communicate using remote method calls.

Implement the app as a CORBA server. Communicate using remote method calls.

Have the app write the data to a file. Have the Servlet read the file.

Have the application run in the servlet engine, and thus in the same JVM as
the
servlet. To pass information, Use a Singleton class accessible to both app
and
servlet.

Have the servlet start the application. Connect an OutputStream to the app's
standard InputStream; Connect an InputStream to the app's standard
OutputStream.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to