You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Manu George <ma...@gmail.com> on 2006/04/12 11:15:57 UTC
Question on Gbean attributes and serialisation
Hi,
I saw that in some GBeans Maps and various other structures are
defined as attributes. Suppose I have a GBean with a map as an attribute how
do i programmatically inject values for the attributes? Also if i want to
change the attribute values i.e add more elements to the Map at runtime, how
do I go about it? Will this attribute entry be then made in the
config.xmlas the
config.ser does not change after deployment?
Regards
Manu
Re: Question on Gbean attributes and serialisation
Posted by Dain Sundstrom <da...@iq80.com>.
BTW I hope we will have support for nested attributes from our xml in
1.2.
-dain
On Apr 12, 2006, at 5:05 AM, Aaron Mulder wrote:
> If you want to change a Map attribute you need both a getter and a
> setter for it. Your client should get the map with the getter, do
> whatever you want to it, and then call the setter. It should update
> config.xml with the new values.
>
> Thanks,
> Aaron
>
> On 4/12/06, Manu George <ma...@gmail.com> wrote:
>> Hi,
>> I saw that in some GBeans Maps and various other
>> structures are
>> defined as attributes. Suppose I have a GBean with a map as an
>> attribute how
>> do i programmatically inject values for the attributes? Also if i
>> want to
>> change the attribute values i.e add more elements to the Map at
>> runtime, how
>> do I go about it? Will this attribute entry be then made in the
>> config.xml
>> as the config.ser does not change after deployment?
>>
>> Regards
>> Manu
>>
Re: Question on Gbean attributes and serialisation
Posted by Aaron Mulder <am...@alumni.princeton.edu>.
If you want to change a Map attribute you need both a getter and a
setter for it. Your client should get the map with the getter, do
whatever you want to it, and then call the setter. It should update
config.xml with the new values.
Thanks,
Aaron
On 4/12/06, Manu George <ma...@gmail.com> wrote:
> Hi,
> I saw that in some GBeans Maps and various other structures are
> defined as attributes. Suppose I have a GBean with a map as an attribute how
> do i programmatically inject values for the attributes? Also if i want to
> change the attribute values i.e add more elements to the Map at runtime, how
> do I go about it? Will this attribute entry be then made in the config.xml
> as the config.ser does not change after deployment?
>
> Regards
> Manu
>