aspose file tools*
The moose likes Websphere and the fly likes referencing ejb at run time in wsad Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "referencing ejb at run time in wsad" Watch "referencing ejb at run time in wsad" New topic
Author

referencing ejb at run time in wsad

Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

hi,

I have an ear in WSAD 5.1.My ear contains one Web modules and multiple EJBs modules.few classes EJBs are tight coupled (this shouln't be)

When I run my EAR it is supposed to run one war and 3 ejb-jar,but one of three ejb-jars is not able to get reference of a class ie in other EJB jar

I added project reference in project properties but it did't work out.

It works only when if I pull out those classes and keep in my classpath as a jar.

I need suggestion to how to refer reference of other EJB class.
I am able to refer ejbs at compile time

thanks


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
Ed Wallen
Ranch Hand

Joined: Feb 11, 2002
Posts: 34
Right click on each of your EJB projects and go to "Java JAR Dependencies". Make sure you have set up the proper dependencies here............your project references are only valid for compile time. The Java JAR Dependencies create entries in your Manifest.mf for runtime.

-Ed
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

thanks ed,
but I had already tried this, but didn't work out.

I will try again.

Shailesh
[ March 11, 2005: Message edited by: Shailesh Chandra ]
 
 
subject: referencing ejb at run time in wsad