4 Replies Latest reply on Aug 27, 2009 12:28 PM by jadin

    How much does the webapp know

    jadin

      Is it possible for a webapplication to determine what node it is on if I am running multiple instances of the application on a single jboss server?

      Id like to send an email from both applications and for them to tell me which instance they are running on.

      For instance, 1 jboss server running two instances: NodeA, NodeB

      I'd like to have in the subject line:

      Subject: Hi I am NodeA if the app running on NodeA fires off an email.

      Is this possible or will I have to use InetAddress.getLocalHost().toString(); and convert the returned IP manually with my own properties file that has key value pairs like so:

      127.0.0.1=NodeA
      127.0.0.2=NodeB

      Thanks.