• 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

local vs remote in clustered environments

 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
pls i am deploying my aplication in a clustered server (weblogic) environment .pls i would like to ask if in using clustering u will have to call remote home objects in ur code rather than local home objects.
i would pefer local due to better performance .but since i am deploying on different machines, should i then call remote methods from the remote home objects
or does it matter?
thanks
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Chinedu,

You can always use the local interfaces. WL uses cluster-aware stubs when clustering is enable. This means that the stub implements the routing algorithm (which by default is the round-robin) and it will forward the request to the next server instance in the cluster. However WL will always bypass the routing algorithm if the request originates from within the container. WL will redirect the request to the same instance to improve the performances.
Bottom line is that your request (from one ejb to another) will never leave the server instance, no matter whether you�re using remote or local interfaces. The only difference is that using the remote calls will add the extra RMI overhead.
Regards
 
Erwin Bredford
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks a lot.
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are very welcomed!
 
So there I was, trapped in the jungle. And at the last minute, I was saved by this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic