-
1. Re: Clustering for JBoss Remoting
tom.elrod Jan 5, 2006 9:21 AM (in response to linpeizhang)Sounds like, based on what you are looking for, EJB3 (which runs on top of remoting) might be a better option for you than just JBoss Remoting. You can find more information about EJB3 at http://www.jboss.com/products/ejb3.
However, if still want to use just JBoss Remoting, there is an example of using failover via regular POJOs using remoting transporter at http://labs.jboss.com/portal/jbossremoting/docs/transporter/transporter_sample.html#d0e326. -
2. Re: Clustering for JBoss Remoting
linpeizhang Jan 6, 2006 12:56 AM (in response to linpeizhang)Thanks, Tom! I will take a look at both approach and let you know what I figure out. Thanks!
-
3. Re: Clustering for JBoss Remoting
linpeizhang Jan 6, 2006 1:17 AM (in response to linpeizhang)I looked through the clustered transporter example. It looks great. However, just to confirm, it can only handle fail-over. It CANNOT handle load balancing. I mean round roubin the invocations among clustered servers. Can you confirm that? Thanks!
-
4. Re: Clustering for JBoss Remoting
linpeizhang Jan 6, 2006 9:45 AM (in response to linpeizhang)I tested out the example of the JBoss Remoting transporter. The failover seems to have a bug. I am using JBoss Remoting 1.4.0 Beta
Here is the sequence I tried:
1. Start SocketServer
2. Start HTTPServer
3. Start RMIServer
4. Start Client. I can see all the requests from Client is processed correctly.
5. Stop SocketServer. The failover works. The Client requrests are now processed by the HTTPServer.
6. Start SocketServer again. Now, all the Client requests went to the new SocketServer instead of the HTTPServer. I consider it's bug.
7. Stop SocketServer again. The Client requests cannot be processed any more. I got a lot of exception in the Client side indicating "connection refused". I am not sure why it didn't failover to the HTTPServer or the RMIServer.