This week's book giveaway is in the OCP forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests and have Scott Selikoff and Jeanne Boyarsky 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
"Know where to find the solution and how to use it - that's the secret of success."
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?