This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

ejb-ref lookup does not work with JBoss 4.2.0GA _CP07, pleas help.

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using JBoss 4.2 with ear-isolation = true and call-by-value=false

I have the following situation:

ejb A needs to call ejb B, and both are in different isolated EARs.

To do this, as stated on the JBoss community wiki's:

http://www.jboss.org/community/wiki/classloadingconfiguration

I have to configure ejb-jar.xml and jboss.xml of ejb A with references to ejb b.

So, these are my configuration files:
ejb A = TISService
ejb B = GTSService

ejb-jar.xml of ejb A


jboss.xml of ejb A



This is the code I am using to lookup ejb B from a class in ejb A (taken from an example in the JBoss UserGuide):



The problem is that the lookup fails.

If I try to lookup the JNDI name of the EJB, the lookup succeed, but the create fails with "Invalid invocation, check your deployment..." because it is trying to create an instance of ejb B that is in an isolated ear.


Can someone help me?

Why the lookup of the ejb-ref-name fails, even if I saw that is present in the JNDI tree of ejb A ?
JNDI tree view from JMX console:


Am I doing something wrong?

Thanks.
 
My pie came with a little toothpic holding up this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!