File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes RMI call: Design help needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI call: Design help needed" Watch "RMI call: Design help needed" New topic
Author

RMI call: Design help needed

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9426
    
    2

Guys,

I have an environment wherein there are two non clustered Weblogic instances with each having a couple of EJB's (primarily stateless) deployed. There is a ESB server before the Weblogic stack (also non clustered). Each ESB server communicates to its respective Weblogic. There is a load balancer that sits on top of these two ESB server instances and routes the request to each one of them. The client jar's for the EJB's are deployed in the ESB servers. Now when the first weblogic server is down, we need to connect to the next available Weblogic server. At present the environment comprises of 2 physical servers, but later it might increase. Is there a readily available failover mechanism to realize this scenario? Any suggestions, ideas are welcome!


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9426
    
    2

Looking for a dispatcher / failover mechanism. I did implement it to an extent, but looking for better ways to handle exceptions and multi threading issues. Any ideas?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9426
    
    2

I managed to get this done. But I have some concerns with respect to multi threading. In essence I have a class which has a List of valuen objects and in this value object I have the jndi looked up ejb reference. Now when the first weblogic instance is shut down, then the client requests will be routed directly to the next available instance in the List. I now have to make the read and write operations to this List thread safe. At the same time, the write operation to the List involves a remote JNDI lookup which definitely is not a candidate to be synchronized. Any suggestions?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI call: Design help needed