can you post lookup code + error trace?
// Enclosing the whole process in a single `try' block is not an ideal way
// to do exception handling, but I don't want to clutter the program up
// with catch blocks
// Get a naming context
InitialContext jndiContext = new InitialContext();
// Get a reference to the Interest Bean
Object ref = jndiContext.lookup("Interest");
// Get a reference from this to the Bean's Home interface
IMyFirstHomeInterface home = (IMyFirstHomeInterface)
PortableRemoteObject.narrow (ref, IMyFirstHomeInterface.class);
// Create an Interest object from the Home interface
IMyFirstSession interest = home.create();
thanks for any help
I had a look through the server log and can find no mention of binding Interest to the JNDI??
the problem was in the jboss.xml file