What does your JNDI tree look like. Going by the code you posted, i assume that you are using JBoss as the application server. Follow the steps below and post the contents of the JNDI tree:
- Go to http://localhost:8080/jmx-console - Search for service=JNDIView - Click on that link - On the page that comes up click on the Invoke button beside the list() method - The page that comes up will show the contents of the JNDI tree. Post that here.
As you rightly mentioned, the JNDI tree does not contain any reference to your bean. Maybe the bean is not recognized in your deployed application? Can you post the code of your CustomerDAOBean(i would be interested in the annotations that have been used for that). Also, if possible can you post the logs from the JBoss server when its starting up. That will show us, the jndi name its using to bind your beans to, when the application is being deployed.