• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DI with beans from an ejb-jar

 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I was wonder if is possible to inject a bean which is placed in a(other) ear-jar in the root of my ear file ?

Regards
Mihai
 
lalit upadheyay
Ranch Hand
Posts: 110
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, Its possible. I have succesfully created an ear containing ejb-jar file and injecting the remote biz interface in a servlet packaged in a war file. Both ejb-jar(.jar) and the .war file reside in same .ear file. The webapp lib should have the ejb-jar in it for ejb injection to work succesfully.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic