• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS - Queue

 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between
jndiContext.lookup("Q1") and
session.createQueue("Q1");
as both are used to link the Queue Object "Q1".
Regards,
M.S.Raman.
 
gautam shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Malli Subramanian Raman:
What is the difference between
jndiContext.lookup("Q1") and
session.createQueue("Q1");
as both are used to link the Queue Object "Q1".
Regards,
M.S.Raman.


second one is temperory. available only for u and to those whom u want. but the first one is global. administred established object . available to any authorized user till the server exist.
but in the second case once u loose the "reference" of that queue it will be lost for ever from ur hands.
ooops again reference........
:roll:
 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gautam,
Can u pls elaborate it "second one is temporary". Whether in both cases the Queue "Q1" must be available physically in the server or the createQueue method will create a temporaryQueue which will be valid during the session period.
Because when i run createQueue("Q100") statement in the program it will throw Queue not found
message as the "Q100" is not available in the QM1.
Raman.

Originally posted by gautam shah:


second one is temperory. available only for u and to those whom u want. but the first one is global. administred established object . available to any authorized user till the server exist.
but in the second case once u loose the "reference" of that queue it will be lost for ever from ur hands.
ooops again reference........
:roll:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!