Re: cross-vm cache - group name?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon Jan 10 2005 - 10:42:42 EST

  • Next message: Andrus Adamchik: "Re: Newbie: connected user"

    > I have not found an easy way to create different port/address for every
    > war/database that we are running as each war does not know about the
    > others. Perhaps I should just pick a random number and see if that is
    > used by another database?

    A random number probably won't work - it will be different for each
    instance, regardless whether they are in the same "group" or not, right?

    If you can't (or do not want) to set any web.xml parameters that define
    your group, the only piece of information that distinguishes the groups is
    web app context path. Some sort of hashing algorithm that builds a port
    number depending on context path would work. Can't think of a generic
    algorithm, but maybe a simple properties file that maps all known
    customers to ports would work?

    Or use custom subjects, like you are doing now...this is extra network
    traffic of course.

    Andrus



    This archive was generated by hypermail 2.0.0 : Mon Jan 10 2005 - 10:42:44 EST