1 Reply Latest reply on Dec 6, 2001 3:40 AM by vad

    Classpath and Local interfaces

    vad

      I'd like to use Local interfaces (in JBoss3.0). If I deploy a bean with local interface and then I deploy another bean (so they are not in the same "application") which calls the first bean via its local interfaces, I get these problems :

      1°) classpath problem : I have to include the local interfaces also in the client bean which wants to call them

      2°) Then a classloader problem : I get a ClassCastException when doing BeanHomeLocal home = (BeanHomeLocal)context.lookup("local/mybean") ;

      I've checked the spec, we can use a local interface provided we are in the same JVM, but we don't have to be in the same "application".

      Any idea of what I'm missing?

      Thanks in advance.
      Vad

        • 1. Re: Classpath and Local interfaces
          vad

          Sorry, I got this error because I had completely forgotten the ejb-ref in my deployment descriptor (it was late...). But now, I cannot deploy it:

          1°) Although the dtd states ejb-link is not mandatory,
          jboss3.0 (25/11 build) needs it.

          2°) ejb-link does not support reference to external jars (see spec p.465)

          Does someone work on this?