This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Devaka Cooray wrote:Amirr, please post the code of the ClientCustomer.java What does it actually supposed to do? If it is just a client program, then please also post the code of the EJB which uses the Customer entity.
Deveka ClientCustomer.java is a simple client program. Please see below the Bean code
It seems that the problem is with the client program. For some reason travelAgent is not initialized. Instead of using JNDI lookup, can you check it with the dependency injection using the @EJB annotation?