jbossmq

JMS message to remote server

眉间皱痕 提交于 2020-01-07 08:18:58
问题 I need to send a message to a remote server's queue (running "JBoss MQ") so that it can process the message and act on it. Properties properties = new Properties(); properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); properties.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces"); properties.put(Context.PROVIDER_URL, "jnp://192.168.1.131.129:1299"); InitialContext jndiContext = new InitialContext(properties); //[2] Look up connection factory and queue.

Using JMS or ThreadPool to send email messages

烈酒焚心 提交于 2019-12-21 02:40:15
问题 I will like to know: I have a scenario. If a user adds a product to the system (I'm developing), there's a listener that sends a notification to the user's client base notifying of a new product added by the user. I've read this thread and (seeing I've never used JMS nor ThreadPool before) I was wondering whether I should use JMS or ThreadPooling. I am using Tomcat 5.5 and higher and JBoss 5 and higher (depending on company last resort) to deploy my web application. If I use JMS, do I use

Can I use JBoss MQ on JBoss 5? If so, how?

别说谁变了你拦得住时间么 提交于 2019-12-11 02:05:42
问题 I have an application that was written on JBoss 3.2.5 and I am tasked with migrating it to JBoss 5. I am unable to deploy the application because it relies on JBoss MQ, which I read has been replaced by JBoss Messaging. Is there any way I can get the app to work on JBoss 5 without making any code changes? Config changes are OK. 回答1: Actually JBoss Messaging is already being replaced by HornetQ. In JBoss Application Sever 6.0, HornetQ will be the default messaging provider. http://jboss.org

How to connect JMS queues from JBOSS 4 and 5?

你。 提交于 2019-12-07 12:23:36
问题 I have a server on which a Jboss 4.2.2 and a Jboss 5.1.0 runs. The problem is that a 3rd party is not able to upgrade its application to Jboss 5.1.0 in the near future, for us it is a simple matter. Unfortunately we need to send and receive some JMS messages from the third party app running on Jboss 4.2.2. What is the easiest way to enable the transfer of JMS messages between JbossMQ and JbossMessaging? 回答1: I think I found the solution for my problem. The JBOSS documentation has a chapter to

How to connect JMS queues from JBOSS 4 and 5?

丶灬走出姿态 提交于 2019-12-05 20:50:01
I have a server on which a Jboss 4.2.2 and a Jboss 5.1.0 runs. The problem is that a 3rd party is not able to upgrade its application to Jboss 5.1.0 in the near future, for us it is a simple matter. Unfortunately we need to send and receive some JMS messages from the third party app running on Jboss 4.2.2. What is the easiest way to enable the transfer of JMS messages between JbossMQ and JbossMessaging? I think I found the solution for my problem. The JBOSS documentation has a chapter to migrate messages between JBOSS Messaging and JBOSS MQ: http://www.redhat.com/docs/en-US/JBoss_Enterprise

Using JMS or ThreadPool to send email messages

帅比萌擦擦* 提交于 2019-12-03 08:40:38
I will like to know: I have a scenario. If a user adds a product to the system (I'm developing), there's a listener that sends a notification to the user's client base notifying of a new product added by the user. I've read this thread and (seeing I've never used JMS nor ThreadPool before) I was wondering whether I should use JMS or ThreadPooling. I am using Tomcat 5.5 and higher and JBoss 5 and higher (depending on company last resort) to deploy my web application. If I use JMS, do I use Apache ActiveMQ or JBoss Messaging ? Are they both compatible to run on both platforms (Tomcat and JBoss)?

Reconnecting JMS listener to JBossMQ

倖福魔咒の 提交于 2019-11-28 23:30:18
We have a Java listener that reads text messages off of a queue in JBossMQ. If we have to reboot JBoss, the listener will not reconnect and start reading messages again. We just get messages in the listener's log file every 2 minutes saying it can't connect. Is there something we're not setting in our code or in JBossMQ? I'm new to JMS so any help will be greatly appreciated. Thanks. Todd You should implement in your client code javax.jms.ExceptionListener. You will need a method called onException. When the client's connection is lost, you should get a JMSException, and this method will be

Reconnecting JMS listener to JBossMQ

僤鯓⒐⒋嵵緔 提交于 2019-11-27 14:49:16
问题 We have a Java listener that reads text messages off of a queue in JBossMQ. If we have to reboot JBoss, the listener will not reconnect and start reading messages again. We just get messages in the listener's log file every 2 minutes saying it can't connect. Is there something we're not setting in our code or in JBossMQ? I'm new to JMS so any help will be greatly appreciated. Thanks. 回答1: You should implement in your client code javax.jms.ExceptionListener. You will need a method called