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

    How much does the webapp know

    Seamus Loftus Newbie

      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: