Hello!
I wrote the MessageDrivenBean with the following annotations:
@MessageDriven(activationConfig =
{
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
@ActivationConfigProperty(propertyName="destination", propertyValue="queue/myOwnQueue")
})
public class MessageDrivenBean {
...
};
javax.naming.NotContextException: Reference Class Name: org.jboss.mq.SpyQueue Type: name Content: myOwnQueue is not a Context at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:692) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) at javax.naming.InitialContext.lookup(InitialContext.java:351) at development.junit.TestOne.main(TestOne.java:91)
Hi!
The problem was solved. jbossmq-client.jar must be in the client classpath.
Also, /remote has to be removed from the lookup()