1 Reply Latest reply on Nov 16, 2002 3:36 AM by juha

    Ed Roman - Mastering EJB's

    megaskins

      I'm using Ed Roman's book Mastering EJB's to learn EJB's and I have JBoss installed and working (I ran the template example just fine) but I can't get the client programs from his book to run. Firstly, I can't get an InitialContext using his examples, so I have to create an InitialContext by passing a HashMap that has all the properties set.

      After doing this, my client programs will run, but I always get an error that the Home interface is not bound. I'm using the examples in Chapter 3 and 4 from his book.

      Has anyone had any experience with this? If so, what were your solutions?

        • 1. Re: Ed Roman - Mastering EJB's

          To get rid of the hashmap in the initial context, you need to make sure jndi.properties are in your client's classpath.

          If you can't locate the home interface the best thing to do is to check the management console at http://localhost:8080/jmx-console and find the JNDIView MBean and see that your home proxy is bound and check under what name. Then make sure you're trying to lookup that same name from your client.