Illegal connection factory access

I'm using message-driven beans and I'm getting this error in my server log:

JMS5007: Illegal connection factory access to [jms/MVAQueueConnectionFactory]. J2EE Components should access JMS Connection Factories through a resource-ref in java:comp/env

What does this mean?

Despite the warning, the app works fine...

Nuno Geraldes

[367 byte] By [nhpg] at [2007-11-25 10:47:39]
# 1

In the code sending the message you have code something like:

queueConnectionFactory = (QueueConnectionFactory)

jndiContext.lookup

("java:comp/env/jms/MyQueueConnectionFactory");

This needs to be reflected in the deployment descriptor of the module containing this class. The deployment descriptor entry is called a resource-ref. In Studio, these entries can be set at the module level (ejb module, application client, and web module). The JNDI name and factory type will be specified. The convention is to use jms/FactoryName and the lookup will be performed using "java:comp/env/jms/FactoryName".

cbwebster at 2007-7-1 21:44:00 > top of Java-index,Development Tools,Java Tools...