2 Replies Latest reply on Jun 22, 2004 4:03 AM by darranl

    can a Servlet use local intefaces to talk to BMP Entity Bean

    jonasj

      I tired to use local interfaces in my Servlet to talk to BMP bean
      but no luck. I only got it working using remote interfaces.

      If Servlet and EJb are deployed under the same jboss server process,
      servlet should be able to use local interfaces to talk the EJB for higher
      performance.
      Also it should not matter if Servlet is in separate jar or in .ear file where
      EJB resides.

      Any help here?

        • 1. Re: can a Servlet use local intefaces to talk to BMP Entity
          milowe

          Local interfaces should work (at least it used to...). Maybe you should try to describe the error in order to get any feedback.

          I have a vague memory that it doesnt really matter though. I think the JBoss EJB proxy treats the remote the same way as local when running in the same JVM. You wouldnt get a performance boost using local instead of remote in that case.

          • 2. Re: can a Servlet use local intefaces to talk to BMP Entity
            darranl

            How do you lookup the initial context in your servlet?

            Have you edited any jndi.properties files (You shouldn't have but this is sometimes a common mistake)

            What is your JBoss version and what is the error and stack trace that you are getting?