Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

call by reference

 
John King
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to do call be reference when EJBs are
deployed in the same application? Does ELB
container do it automatically?
 
sameerleekha
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic