This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
For example, a field named myDatabase in the class MySessionBean in the package com.acme.example would correspond to the JNDI name java:comp/env/com.acme.example.MySessionBean/myDatabase
As I understood that from excerpt above is that the runtime will perform a look up in the following name : java:comp/env/com.acme.example.MySessionBean/myDatabase.
When i went to the Glassfish administration tool and tried to create a new resource with the JNDI name : java:comp/env/com.acme.example.MySessionBean/myDatabase
I got the following error :
ADMVAL1047: Value 'java:comp/env/com.acme.example.MySessionBean/myDatabase' is not valid for attribute 'jndi-name' of jdbc resource. The value can not contain the following characters: ^'':, ADMVAL1070: Create of jdbc resource is rejected.