-
1. Re: How can I send message to remote queue that predefined d
slogger Dec 4, 2007 2:32 AM (in response to slogger)
May be is it impossible!? -
2. Re: How can I send message to remote queue that predefined d
timfox Dec 5, 2007 4:11 AM (in response to slogger)Once you have obtained your connection factory, you just use the standard JMS API to create a connection, session and producer.
This is all standard JMS stuff, I suggest a JMS tutorial to get you started. http://java.sun.com/products/jms/tutorial/1_3_1-fcs/doc/jms_tutorialTOC.html.
If you are using JMS from within an EJB say, and you want it to participate in global transactions then you can use the JCA managed connection factory (that's normally at java:JmsXA) to obtain your connection factory, -
3. nevertheless ...
slogger Dec 6, 2007 8:57 AM (in response to slogger)Hi, Tim! Thank you very much fo your answer!
It necessary for me to make dialog between two JBOSS4.2.1 instances.
JMS Queue is deployed on only one central instance of Jboss AS.
Let me to retell JMS API a little bit :-):
QueueConnectionFactory has methodQueueConnection createQueueConnection()
It's allows to retain connection.
QueueConnection has methodQueueSession createQueueSession(boolean transacted, int acknowledgeMode)
Using QueueSession I'm allowed to create producer or senderMessageProducer createProducer(Destination destination) throws JMSException QueueSender createSender(Queue queue) throws JMSException
How can I receive Destination or Queue? While I have got Queue via JNDI.
It sets to doubling of IP address of remote JMS provider for
my aplication in JMS Resource Adapter and in properties file for remote message sending.
How can I fix this problem?
Please sorry my English. -
4. Is it possible?
slogger Dec 12, 2007 2:28 AM (in response to slogger)Tom!
Is it possible to receive remote Queue if only ConnectionFactory was existed? -
5. Re: How can I send message to remote queue that predefined d
timfox Dec 12, 2007 4:52 AM (in response to slogger)You need to look the Queue up from JNDI - please read the link to the tutorial I posted :)
-
6. Thank you very much Tom for your advise!!!
slogger Dec 14, 2007 2:02 AM (in response to slogger)Thank you very much Tom for your advise!!!