Exception attempting to inject Unresolved Message-Destination-Ref
I am using glassfish v3.0.1 b 14.
I have two Topics that are defined as follows im my domain.xml
It seems that the server can't find jms/OutgoingMessageTopic even though it is able to find jms/OutgoingMessageTopic and they have an identical declaration. I have tried
@Resource(name = "jms/OutgoingMessageTopic")
Destination destination = (Destination) c.lookup("java:comp/env/jms/OutgoingMessageTopic");
and both fail
I get the following with asadmin:
/opt/glassfishv301b14/bin/asadmin list-jndi-entries --context jms
Command list-jndi-entries executed successfully.
I have no idea why OutgoingMessageTopic is seen as a org.glassfish.javaee.services.ResourceProxy
instead of javax.naming.Reference like the rest.