Home Help Center

Java Servlets & ICE

willwill Member
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

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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.
  • willwill Member
    Thanks for the quick response Benoit, I will be trying this out later.

    Thanks & Best Regards,
    Will
  • slaveqslaveq Member Slawomir GoszczOrganization: silvermedia sp.j.Project: reports generation engine
    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.
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    Yes, you can certainly host an Ice server in a jetty controlled web app.
  • slaveqslaveq Member Slawomir GoszczOrganization: silvermedia sp.j.Project: reports generation engine
    matthew wrote: »
    Yes, you can certainly host an Ice server in a jetty controlled web app.

    I will be grateful for a clue or an example. Official documentation doesn't say a word about ice servlets and running a server as an web app.
  • joshmoorejoshmoore GermanyMember Josh MooreOrganization: Glencoe Software, Inc.Project: OME, http://openmicroscopy.org
    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,
    ~Josh
Sign In or Register to comment.