• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMS - Queue

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

 
reply
    Bookmark Topic Watch Topic
  • New Topic