0 Replies Latest reply on Dec 20, 2006 11:42 AM by gadsspy

    Dependency to the interface of EJB bean

    gadsspy

      Hi,
      I have a servlet which depnds/calls interface of EJB stateless session bean.
      They are deployed separately.

      Now, whenever I change implementationof the bean (not its interface)
      I get an error java.lang.ClassCastException: $Proxy114 as a result of
      lookup operation from the servlet. Once I re-build the servlet the problem is gone.

      But my expectation would be that if interface stayed unchanged it should
      work without the need to re-build all dependent modules.
      Should it be that way?

      I am running jboss 4.0.4GA and use EJB3 bean.

      Thanks.