0 Replies Latest reply on Jul 19, 2011 7:17 AM by Prasad Deshpande

    JNDI structure

    Prasad Deshpande Expert

      Hi Guys,

       

      I'm still trying to understand JNDI mapping rules according to http://lists.jboss.org/pipermail/jboss-as7-dev/2011-July/002890.html.

       

      For a simple test, I defined my datasource as "jdbc/someName", now, according to above message rule#1, it should have either mapped to

      "java:comp/env", "java:module/env", or "java:jboss/env". but when I try to deploy my PU, I have to give datasource as "java:/jdbc/someName". Now, I failed to understand this behaviour.

       

      So, the question here is where does it exactly bind datasource if defined in standalone.xml as "jdbc/someName" & how can I refer to that name without any reference to "java:", "java:/" or any prefix?

       

      I'm starting with keeping datasource names, my next step will be jms destinations.

       

      Basically my objective is to keep my application portable across different app server with no code change or without any deployment descriptor.