Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can MDB listen a remote queue ?

 
Nicolas Taillepied
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have 2 servers (jboss) running on different computers. I wan't to deploy a Message Driven Bean on one computer which listen a queue located on the other computer.
I've made a lot of tries of configurations but unsuccessfully.
Thanks if you known the response
Nicolas
 
Siplin Ayishoto
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not have exact knowledge of how it works on JBoss, but can vaguely
suggest something. I have done a similar exercise on WebLogic 6.1, to
bind to MQSeries queues. The basic idea is to make the queue 'discoverable'
by the MDB.

First discover the foreign QueueConnectionFactory, Queue, etc., using
appropriate context, and then bind these to the local JNDI. Think you have
to do it in a startup class or a session bean that is loaded prior to your
MDB.




Hope this helps you in someway.
-Siplin
 
Kunaal A Trehan
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

You can do one thing.
I have done that in my previous project.

You have an option of configuring Foriegn JMS Server in the application server.Configure a foriegn JMS server,connection factories and destinations.
Then from MDB listen those destinations.Automatically ur server handles the request.

So no need to do anything.Appliaction server takes care of that.

Rgds
Kunal
 
Nicolas Taillepied
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your replies, but I've ever try this solutions before and I got bugs. I will try to do another way to solve my problem.
Regards,
Nicolas
 
Siplin Ayishoto
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Kunal Verma:
Hi
You have an option of configuring Foriegn JMS Server in the application server.

I thought this is only in WebLogic 8.1.
Is this available in JBOSS? I thought JBOSS doesn't even Messaging
Bridge...
 
Edison Martins
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am having the same problem. I have a MDB in one computer, and a i want to listen messages in a remote queue. Can you help me??

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic