jQuery in Action, 3rd edition
The moose likes EJB and other Java EE Technologies and the fly likes how to call an ejb from ejb in Weblogic 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to call an ejb from ejb in Weblogic 7" Watch "how to call an ejb from ejb in Weblogic 7" New topic

how to call an ejb from ejb in Weblogic 7

Saurabh Jaiswal

Joined: Feb 06, 2004
Posts: 1
I have made two cmp's
1st is AccountManaged
2nd is EjbCustomer
Both having Local home and local component
I then have inserted in ejb-jar.xml

<description>Reference to application EJB</description>
then error at deploying my ejb_D1.jar is javax.naming.namenotfoundException
Unable to resolve ejb link
And when i made changes to ejb-jar.xml as
<description>Reference to application EJB</description>

Then error at deployment of ejb_D1.jar is could not resolve ejb-link

Also at
In weblogic-ejb-jar.xml i have inserted


Please help me regarding this......Tell me how in local or remote can we call an EJB from EJB

The angels set the message and fly......
Seetesh Hindlekar
Ranch Hand

Joined: Feb 13, 2004
Posts: 244
Its possible to call one ejb from another by defining one ejb as a remote and other as local.
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB//EN'
Define the ejb-jar.xml the same way.
This will work. I had created an example using Stateless Session bean. It works fine using Weblogic 7.0 and 8.1.
Place the lookup call of EREJB in the business method of PlayerEJB
I agree. Here's the link: http://aspose.com/file-tools
subject: how to call an ejb from ejb in Weblogic 7
It's not a secret anymore!