Mikael Molin wrote:Hi,
is it up to me to write what i want in the url or does it have to be like a certain pattern in it.
What is my own JNDI ?
Is it already there or what.
Definitely
you should go through the links pointed by Jepser to understand what JNDI is all about and how it is dealt with.
However, to answer your other questions in a precise way, the URLs are actually standardized based on the vendors who implement the JNDI and hence you are expected to follow the pattern recommended. However, at the end of the JNDI URL, you are free to choose the unique Id for the object/component you are registering.
For example, java:comp/env may be a standard one and you can NOT change this. However, at the end of /env, you can add your own id like "java:comp/env/myJDBCDataSource" or "java:comp/env/oracleDS" etc.,