Consider simple reception code like this:

       MapMessage message = (MapMessage) consumer.receive(1000);
       int x = message.getInt("foo"));

I notice that x is now set to zero even though there was no "foo" value in
the map. I would have expected an exception.

The JavaDoc is unclear on this point. Is this expected behavior? Can someone
explain to me why it behaves like this? What if zero is a legal value for
the map?

--
Elliotte Rusty Harold
[EMAIL PROTECTED]

Reply via email to