Have you had a look at the clustering documentation available from the 'Documentation' link above.
You are going to need either a software or hardware based load balancer that your clients can connect to. That in turn will be responsible for passing the calls to the two nodes in your cluster.
But how jboss provide the fail over mechanism?
I thought that i could get fault tolerance only with the configuration of the xmls in jboss.
Please, what can i do to obtain fail over in jboss?
The automatic fail over mechanism that JBoss provides is when you are accessing EJBs remotely. The reason that it is able to do this is because JBoss code is executing on the client so JBoss has control over where the requests are sent.
For web application JBoss has no control over the client code, this is the reason why an intermediate component is required that can route the calls from a single client to one of many nodes.
darranl, now i understand how jboss works.
Thank you very much!