• 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

which one use hot potato pattern?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A Hot Potato anti pattern can arise from misuse of the following technology?

1. Messaging in the Business Tier
2. JNDI Lookups with Global Java Naming

do i need choose 1 or 2?

I am confused of these options.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would select

Messaging in the Business Tier


Btw, I found a mock exam question for OCJMEA-I, which had this question and their answerer was JNDI...

Their answers were not correct in most cases, so I would not trust JNDI is the right option.
 
Ranch Hand
Posts: 75
Eclipse IDE Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Antipattern: Hot Potato.

It's discussed in Book "Bitter EJB". I'm wondering if it's legal to quote the book. So I give a description in my own words.

1. JMS server sends message to a MDB.
2. this MDB's onMessage() is being triggered, but unfortunally, throws EJBException(). So no acknowelage message sent back to server.
3. JMS thought Message has not been received, then re-send the message.
4. MDB does the same thing in step 2.
5. JMS Server does the same thing in step 3.
...
...

So, I think answer should be Messaging in the Business Tier
 
Thank you my well lotioned goddess! Here, have my favorite tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic