3 Replies Latest reply on Aug 22, 2005 6:06 AM by Tomasz Rostanski

    Two applications having classes with the same name but total

    Tomasz Rostanski Newbie

      i've got problem - two applications are standing on one jboss installation, lets say A and B. unfortunatelly both has EJB called User with local interface UserLocal. this classes are totally different.

      when deploying: if A starts first, then B, when session bean from A and B calls for UserLocal referenced bean, gets bean from B. when B starts first and then A, both applications gets User bean from A.

      problem occurs when using local reference UserLocal in session bean:
      UserLocalHome ulh = (UserLocalHome)context.lookup("java:comp/env/UserLocal");
      and application gets class cast exception

      how to resolve this problem? maybe attached code is wrong?