• Post Reply Bookmark Topic Watch Topic
  • New Topic

how sender will create queue by createTemporaryQueue() and how reciever will use it  RSS feed

 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
plz tell :
how sender will create queue by createTemporaryQueue() and how reciever will use it
#I think jndi lookup will not be needed in this case,plz tell whether this will be needed
#its lifetime remains till the Queueconnection is closed, Right???
#plz send the small code snippet of sender and reciever for this if you can
Thanx
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One good use of Temporary queues is for receiving reply message from the consumer.
 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradip bp:
One good use of Temporary queues is for receiving reply message from the consumer.

But can the reciever receieve offline messages in case of createTemporaryQueue().
I think in all cases.,for a messenger to create a temporary queue createTemporaryQueue() is right.
Thanx
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Raj Kumar Bindal:

But can the reciever receieve offline messages in case of createTemporaryQueue().
I think in all cases.,for a messenger to create a temporary queue createTemporaryQueue() is right.
Thanx


Temporary queues are destroyed when the creater closes the session.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!