The value of message destination reference Destination Name  is the environment entry name used in the enterprise bean code.  The name of the message destination reference is relative to the  java:comp/env context (e.g., the name should be jms/StockQueue rather than java:comp/env/jms/StockQueue).