[jboss-user] [JBoss Messaging] - How can I send message to remote queue that predefined decla
slogger
do-not-reply at jboss.com
Sat Dec 1 11:47:06 EST 2007
Hi, gurus
I try to open a remote Queue. I can get a RemoteConnectionFactory
like
http://wiki.jboss.org/wiki/Wiki.jsp?page=HowDoIConfigureTheJMSResourceAdapterToUseARemoteConnectionFactory,
but still unaware how to get a queue. I think i need something similiar to
Queue queue = (Queue) jmsContext.lookup(getQueueName());
| QueueSession session = connection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
| QueueSender sender = session.createSender(queue);
Queue is required to create a message sender.
It's necessary for me to get Queue predefined declaratively.
Any advice will be very much appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109548#4109548
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109548
More information about the jboss-user
mailing list