wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "call by reference" Watch "call by reference" New topic
Author

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?
sameerleekha
Greenhorn

Joined: Jan 22, 2002
Posts: 26
Hi,
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.


sameer
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
Greenhorn

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.
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>XYZ</ejb-name>
<jndi-name>xyz-home</jndi-name>
<enable-call-by-reference>true</enable-call-by-reference>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
Using WL Server 8.1.1 on Windows 2000.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: call by reference
 
Similar Threads
How can I use abstract class methods
Is it nesscessery to handle Garbage collection
Books on internals of Java
java parameter passing
a simple question?