Re: ion java-Servlets? [message #41514] |
Tue, 02 November 2004 09:21  |
Michael Wallace
Messages: 409 Registered: December 2003
|
Senior Member |
|
|
coco89 wrote:
> I am trying to create an interactive interface, which, because of size
> and complexity, may not run efficiently in an applet.
>
> It seems, that servlets would serve my purposes however, I am not sure
> how I would implement ION Java.
>
> I am currently running JSDK 3.5.1 w/tomcat, for testing, how do I get
> to my ION Server that is located on a Windows NT Server to test the
> ION Java calls?
This may not answer your question, but we never really found a good way
to make ION work with servlets. We finally reached the conclusion that
it would just be easier to use IDL processes and tie them back into Java
rather than trying to go through ION. You'll need extra coding to
manage the IDL processes, but the time spent writing that was much less
than the time it would take to force the square peg of ION into the
round hole of servlets. The only way we found to talk to ION through a
servlet was via RMI, and unless you're well versed in RMI, that will
take some time to learn. And our RMI solution was slow.
We opted for creating a pool of IDL processes and directly connecting to
the IDL processes through the standard input and output stream methods
of Java. In our case we were just interested in creating images. So,
all we had to do to complete the loop was stream the image back to Java
which in turn was streamed to the browser.
I just wish that RSI had taken the extra step of making the ION software
applicable to servlets. Applets have a very limited scope and no one
really does applet programming. There are certain applications that
require applets, but for most uses applets aren't necessary. For us, we
just needed IDL to create graphics, nothing more.
|
|
|