File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes call by reference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "call by reference" Watch "call by reference" New topic

call by reference

John King
Ranch Hand

Joined: Aug 27, 2002
Posts: 165
How to do call be reference when EJBs are
deployed in the same application? Does ELB
container do it automatically?

Joined: Jan 22, 2002
Posts: 26
If u want to call the EJBs from another EJBs u have to follow the same process as invoking the ejbs fron any other client like the java application client, swing client or jsp/servlet client.

Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Even with the use of remote EJBs, WebLogic will default to call by reference on all calls made within the same JVM. This behavior can be explicitly controlled in the weblogic-ejb-jar.xml with the enable-call-by-reference tag.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Sameer ,
Thanks for joining JavaRanch, but could you take a quick look at the naming policy and edit your profile accordingly. Repeatedly failing to comply with the naming policy risks having your account locked.
Scott Gray

Joined: Dec 09, 2002
Posts: 2
I know this is an old thread, but I'm just getting started with WebLogic. When running appc, I get the BEA-010202 warning that call-by-reference is not enabled for my ejb. So I add <enable-call-by-reference>true</enable-call-by-reference> to my weblogic-ejb-jar.xml and now appc barfs with "the contents of element type weblogic-enterprise-bean must match yada yada", in which enable-call-by-reference is included.
Using WL Server 8.1.1 on Windows 2000.
I agree. Here's the link:
subject: call by reference
jQuery in Action, 3rd edition