Archived
This forum has been archived. Please start a new discussion on GitHub.
Java Servlets & ICE
in Help Center
Is it possible to implement a Java Servlet that would act as an ICE client and allow remote method calls to an ICE server?
Thanks,
Will
Thanks,
Will
0
Comments
-
Re: Java Servlets & ICE
Hi Will,Originally posted by will
Is it possible to implement a Java Servlet that would act as an ICE client and allow remote method calls to an ICE server?
Thanks,
Will
Absolutely, I don't see any problems with this! Your servlet can use Ice for Java and act as a regular Ice client. Let us know if you have any difficulties using IceJ with your servlet.
Benoit.0 -
Thanks for the quick response Benoit, I will be trying this out later.
Thanks & Best Regards,
Will0 -
Hello,
I have similar question. Is it posible to create java servlet which acts like a ICE SERVER? In my project I want to run ice server as an web-application under Jetty control.0 -
Yes, you can certainly host an Ice server in a jetty controlled web app.0
-
Slawomir,
there's no way to have a Servlet's interface methods handle Ice requests directly without writing code yourself. More importantly when we were looking into this (or rather EJB & ICE), there's no way to use the same ThreadPool -- there will always inherently be two. Without knowing more about your architecture, my guess is that your best bet will be to provide a servlet and an ICE implementation if you need both HTTP and RPC handling.
You might also take a look at this thread: http://www.zeroc.com/forums/comments/3717-best-practices-using-ice-object-containers.html
Cheers,
~Josh0