permaculture playing cards*
The moose likes OO, Patterns, UML and Refactoring and the fly likes which one use hot potato pattern? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "which one use hot potato pattern?" Watch "which one use hot potato pattern?" New topic
Author

which one use hot potato pattern?

frank wanga
Greenhorn

Joined: Oct 29, 2012
Posts: 1
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

Joined: Aug 27, 2007
Posts: 5
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

Joined: Aug 17, 2010
Posts: 75

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


OK, so that other guy knows Java better than I do, but I bet he can't speak Wuhanese(a Chinese Dialect) like me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: which one use hot potato pattern?