java jboss hosting

If you want to know how many nodes are clustered in the current partition, all you have to do is ask HAPartition the list of nodes. HAPartition represents the cluster partition, which contains all the information you need to know about your group and lymph: host names, IP position at the hearing cluster.
Suppose you have a grain of service that extends from HASingletonSupport. HASingletonSupport in turn, extends from HAServiceMBeanSupport.
HAServiceMBeanSupport is the object gives you access to HAPartition.
The application object code HAPartition and the list of nodes that is somewhere, then you can put in your service bean:
Partition HAPartition = getPartition (); clusternode [] nodes = Partition.getClusterNodes () System.out.println (nodes.length);
Clusternode object represents the node in the cluster. Contains information about the hostname of the node, its URL and some other things. GetClusterNodes () you return an array contains as many objects as clusternode currently in the cluster. So to get the value of the length of the table, you know how nodes in the cluster has.
Another way is to do virtually the same, but at the request of a HAPartition current view of your group:
Partition HAPartition = getPartition (); partition.getCurrentView Vector v = () System.out.println (partition.getCurrentView (). Size ()) for (Object: v) (
System.out.println (o.toString ());}
The point of view, which is a vector containing information about the socket node. When printing, is a return to a string representation of the node IP + port: xxx.xxx.xxx.xxx: port. Also for the print size of vectors, we obtain the number of nodes in the cluster.
Important Note:
I noticed that some delay is happening from the moment it leaves the cluster node to the update date View HAPartition return. In other words – after the node left the cluster and topology change occurred, the HAPartition may revert to an old design that still contains the dead node. So be careful.
That's all.
Alexander Zagniotov resides in Melbourne, Australia. He has recently graduated from Victoria University in Melbourne with BSc in Computer Science. In his blog Java Beans dot Asia Alexander writes about interesting and new things he encounters as J2EE developer.
What is a reliable method at a reasonable price, to host a small website using J2EE technology?
I want to create a website using Java technology, so I have to manage a server or virtual private servers myself, and be able to install software such as JBoss, Apache web server, etc. What is the best option for "early", which also allows me to develop in the future? I heard that a virtual private server is good for this, but I find no reference or how to evaluate suppliers. Hi David G. Thank you for the recommendation, but I speak just BlueHost and they JBoss because "it is very resource intensive.
www.dsvr.co.uk These guys have been purchased by evil I think. But from what I remember, which allows a period (30 days trial) of your virtual server.
|
|
|
Jboss Enterprise Application Platforms
Leave a Reply
Using Gravatars in the comments - get your own and be recognized!
XHTML: These are some of the tags you can use:
<a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>