like i said, afaik 3.2.6, clustering is already enabled by default when you 
star the server with a -c all option.  If you start another instance on another 
machine with a -c all, you can see on the console that both the servers are 
visible to each other as long as on the network level the multicast address 
they use are routable between the 2 networks each machine is in..

The simplest case is for testing would be to put both machines on the same 
network on the same hub/switch.  Also most linux distros will have a firewall 
installed by default that may block multicasts depending on the options you set 
when installing... so if you cant get the cluster to work, does not necessarily 
mean jboss is not working, check your network and your os setting... heh you 
can even install a linux kernel without multicast support.. 

As far as using the clusters, i've so far only tested EJB fail over, basically 
you  just need to configure your EJB as clusterable in the jboss.xml file as 
such,


  | <?xml version="1.0" encoding="UTF-8"?>
  | <jboss>
  |   <enterprise-beans>
  |   <session>
  |     <ejb-name>MyEJB</ejb-name>
  |     <jndi-name>MyEJB</jndi-name>
  |     <clustered>true</clustered>
  |   </session>
  | </jboss>
  | 

Also, in your ejb lookup code (i.e. the client), you need the following jndi 
properties


  | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  | 

Notice , we dont specify a provider url i.e. jnp://localhost:1099 because we 
dont want to be tied to a specific jboss server. 

Anyway thats all i've experienced so far.  If you want http fail over and 
session replication, i believe thats between your web server and tomcat which 
is another topic altogether.  Cheers

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868305#3868305

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868305


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to