wood burning stoves 2.0*
The moose likes Servlets and the fly likes Purpose of ejb-ref Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Purpose of ejb-ref" Watch "Purpose of ejb-ref" New topic
Author

Purpose of ejb-ref

Anthony Watson
Ranch Hand

Joined: Sep 25, 2003
Posts: 327
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.
Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Purpose of ejb-ref
 
Similar Threads
unresolved ejb-link
Why Use ejb-ref?
JNDI and distributing EJB. How to set up?
Not able to excute EJB ClassCastException
ctx.lookup of Session Bean from Messaging Bean