If I have an CMP entity bean with a field named "name"
and corresponding methods setName() and getName(),
is there a way to use reflection to have the same affect
as setName() given the name of the field? In other
words, I'd like to have a general method set() that takes
the name of the field and the value to set it to, so:

setName("frank");

would be the same thing as:

set("Name","frank");

Can someone point me specifically to somewhere describing
how to do this? Thanks.



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to