Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

referencing ejb at run time in wsad

 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ed Wallen
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic