• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

JMS: looking up queues ?

Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm new to JMS, and would appreciate it if someone could please clear up this confusion...

There appear to be 2 ways to access a Queue object:

I've managed to get it working both ways.
And I see one obvious advantage of Method 2 (queues & managers are configured through the container admin, and not inside the code).

But apart from that, are there any other important differences ? would it affect my application design or performaces ?
In particular, suppose we put aside the initialization times ( assume "ctx.looup" or "session.createQueue" are called once on application startup). Will there be a difference in performance - will it take longer to send/receive JMS messages ?

Thanks very much !
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic