JMS - conection

1 resposta
J

Olá Pessoal,
Alguem poderia me ajudar nessa configuração do jms, não estou conseguindo configurar a conexão.
Instalei e configurei o JBOSS sem problemas.
O Jboss inicia sem erro, porém ao fazer um ConnectionFactory apresenta esse erro.
Segue abaixo o código implementado.


arquivo: jbossmq-destinations-service.xml

jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager








Envio.java

itx = new InitialContext(environment);

ConnectionFactory cf = (ConnectionFactory) itx.lookup(cfName);

Queue queue = (Queue) itx.lookup(queueName);

Connection connection = cf.createConnection();

Erro:
javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:8080 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to retrieve stub from server localhost:8080 [Root exception is java.io.EOFException]]

Existe algum xml que preciso configurar no jboss?

Obrigado

1 Resposta

J

Era só alterar no meu context:
Context.PROVIDER_URL, url

vlw

Criado 21 de julho de 2008
Ultima resposta 21 de jul. de 2008
Respostas 1
Participantes 1