This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Purpose of ejb-ref  RSS feed

Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that ejb-ref is useful when deploying your web application but I'm wondering if it has any impact on the below scenario:
If your .war contains an <ejb-ref> for a bean that is deployed in a separate application, does this help the container know that it should refresh your servlet if the ejb application is redeployed?
I'm getting ClassCastExceptions on my home lookups in a servlet when the ejb application is redeployed. I'm confident that the problem is not arising due to my deployment. I've read that the ClassCastException is just a JBoss "bug," but I was wondering if including the <ejb-ref> might help the container figure out when it should refresh a .war.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!