This content has been marked as final.
Show 2 replies
-
1. Re: EJB as a JMS client ?
sfcoy May 10, 2013 8:38 AM (in response to fillg1)Are both servers running AS7? If so, what version?
Also, show the code you're using to send messages, including the lookups.
-
2. Re: EJB as a JMS client ?
fillg1 May 10, 2013 8:51 AM (in response to sfcoy)This is my lookup code
import java.util.Hashtable;
mport javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.DeliveryMode;
import javax.jms.JMSException;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
env.put(InitialContext.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"); env.put(InitialContext.PROVIDER_URL, "remote://localhost:4447"); Context ctx = new InitialContext(env);
Queue queue = (Queue) ctx.lookup("jms/queue/loader");
I have found the following solution, just add org.hornetq and org.jboss.remote-naming to the dependencies in the ejb MANIFEST file