Hi again,
I'm a newbie to Seam. Sorry for various questions. Can anyone explain this code in org/jboss/seam/contexts/StatelessContext.java to me.
public String[] getNames() { throw new UnsupportedOperationException(); }
public void set(String name, Object value) { try { new InitialContext().bind(name, value); } catch (NamingException ne) { throw new IllegalArgumentException("could not bind: " + name, ne); } }
huh?
This code is perfectly OK. It simply doesn't make sense to ask for "all existing instances of statless components". The notion of "existing instance" is not well-defined for a stateless object.