• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

websphere network deployment v6.1 load-balancing for local ejb client

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, does anyone know if there is some workaround to break process affinity in websphere application server (network deployment v6.1) so the workload manager can route part of local ejb requests to remote node machine(s) in a cluster?

According to all the documentation we've read about load-balancing in websphere application server, all ejb requests that come from a local ejb client will be processed within the same application server. I understand this is forced for performance reason. But in my case, I need the load-balancing to be able to forward part of the requests to other nodes in the same cluster.

Also, this ejb client has to be running as a cluster singleton in my application.

Is this possible by any means?

Thanks very much for any hint.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In EJB terminology, "local" means "in the same JVM". Therefore, if you're using an EJB's local interface it will always be executed in the same JVM (Server) as the client.

If you want calls to EJBs to be load balanced, you must use the EJB's remote interface.
[ March 10, 2008: Message edited by: Merrill Higginson ]
 
leon xian
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply... Maybe I should have described the scenario in more details.

I have a cluster set up in Websphere to include 2 application servers (nodes). A ejb client is running in one of the 2 servers (the same JVM where the application server runs) to submit requests to some ejb deployed in the cluster.

What I want to achieve is the load-balancing across the entire cluster so that some ejb requests will be handled locally in one server and others will be processed in another server. Because of "Process Affinity" in
Websphere, all the ejb requests submitted by that client were procssed
only in the local application server and weren't distributted to the remote server (JVM) eventhough round-robin has been set.

For my ejb application deployed in Websphere, there's only remote interface defined. And the ejb client always uses JNDI lookup to find the EJB.

The same application works fine in JBoss which allows overriding of ejb invoker interceptor so that local ejb client can choose between local and remote interface for load-balancing. Check the link from JBoss:

http://wiki.jboss.org/wiki/Wiki.jsp?page=ClusteringFAQ

Not sure if Websphere provides something similar (it is supposed to...)
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about using Data Replication Services (DRS)?

http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/index.jsp?topic=/com.ibm.iea.was_v6/was/6.1/ScalabilityAndAvailability.html
 
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may need to connect to the rmi port on the Deployment manager rather than the rmi port on the node. The DM should load balance the requests over the nodes.
 
Ranch Hand
Posts: 33
Android Mac PPC Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Patrick,

could you please provide more info on your suggestion? We have the smililar requirement to load balance RMI transactions and really stuck up with this part.

Thanks,
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic