0 Replies Latest reply on Mar 8, 2005 4:56 AM by wong sc

    Call remote EJB on other JBoss from web

    wong sc Newbie

      Hi all,
      as title, I can access remote EJB through standalone client, but failed for web client. All in jboss-4.0.0.

      Exception thrown is ClassCastException when casting to EJBHome.
      Source failed on PortableRemoteObject.narrow(...)

      Below is my config. any hints? thanks much
      jboss-service.xml

      time/arr/UstCourseInfoService
      jnp.properties
      javax.naming.InitialContext


      jnp.properties
      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.provider.url=jnp://myremotehost:1099/time/arr/UstCourseInfoService
      java.naming.factory.url.pkgs=org.jnp.interfaces

      jboss-web.xml

      <ejb-ref>
      <ejb-ref-name>time/arr/UstCourseInfoService</ejb-ref-name> <jndi-name>jnp://myremotehost:1099/application/time/arr/UstCourseInfoService</jndi-name>
      </ejb-ref>