• 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
  • 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
  • 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!