May be is it impossible!?
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,
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 method
It's allows to retain connection.
QueueConnection has method
QueueSession createQueueSession(boolean transacted, int acknowledgeMode)
Using QueueSession I'm allowed to create producer or sender
MessageProducer 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.
Is it possible to receive remote Queue if only ConnectionFactory was existed?
You need to look the Queue up from JNDI - please read the link to the tutorial I posted :)
Thank you very much Tom for your advise!!!