This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB reference to Web project  RSS feed

 
Ayub ali khan
Ranch Hand
Posts: 395
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Could any one please clarify my doubts?

In IBM Rational Software Architect, I have created a EJB project, with one Stateless session bean. There is a web project with one servlet. I give reference of the EJB project to the web project. I tried accessing EJB from the servlet in web project, I was getting error message unable to find home interface. I added the default stubs generated for the EJB to the web project the issue was resolved.

Is there an alternate way to call the EJB from the web project without adding the generated stubs manually ? can the generated stubs be added automatically ?

Thanks and Regards
Ayub
 
Vipul
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create a EJB cleint jar file and include it in the Web project class path .

Vishal
 
Ayub ali khan
Ranch Hand
Posts: 395
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Vish!! I will try this option

Best regards
Ayub
 
bala nannaka
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You creare ear file in which it contains war of your web module and jar of ejb module .

you then can give references of your home and remote object references to web module
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!