Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which one use hot potato pattern?

 
frank wanga
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.
 
Sridevi Sekar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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.
 
Leon Omk
Ranch Hand
Posts: 75
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic