• 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

Call RemoteHome in web component

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HiHi,

Please help! Something I'm confused.
I packed the ejb(s) and .war files in a .ear file.
If the web-component call the ejb through remote home method instead of local home mehotd, will it affects the performance?
Because of ejb and war are pack in the ear file, I think weblogic will handle all the components(servlet and ejb) in the same JVM then the method is call by reference instead of call by value. Is this true?

Regards,
Alan
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this should answer your question.
 
Alan A Smith
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi karthik,

Thx a lot. I've another question.
How about I call ejb through local host.
Weblogic will use pass-by-reference automatically even not enable <enable-call-by-reference> in weblogic-ejb-jar.xml ??

Regards,
Alan Kam
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alan,
To answer your question,

Quoting from WL Docs:

"Method parameters are always passed by value when an EJB is called remotely".

If you set call-by-reference to true for an ejb but you end up accessing it remotely, weblogic makes sure that it will pass method paremeters by value.

But if you access the same ejb locally, it will make sure that it uses pass by reference.

So it is better that you set call-by-reference to true to get better performance.
 
reply
    Bookmark Topic Watch Topic
  • New Topic