You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Mircea Toma <mi...@home.com> on 2001/05/26 21:07:58 UTC
Serializable Configuration
Hi,
I know that you people put a lot of thought into the framework but I'm using
Configuration in a distributed environment (Weblogic JMX) and configuring
remote MBeans is not possible. I was wondering if making Configuration
serializable would solve the problem of configuring remotely the application
(by having Configurable MBean-s and a global MBeanServer to send the
Configuration objects).....there might be other solutions that I'm not aware
of ?!
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: Serializable Configuration
Posted by Peter Donald <do...@apache.org>.
At 06:24 AM 5/27/01 -0700, Berin Loritsch wrote:
>
>> It sounds nice initially but I am a little reluctant
>> to do it at the moment
>> as I don't think we are willing enough atm to
>> guarentee a serialized
>> format.
>
>Question: Would it be reasonable to make that a
>requirement? It would make distributed configuration
>of a group of servers easier.
I don't really have any experience in keeping backwards compatibility for
serialized form. Though it would 0probably be a good idea ;)
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: Serializable Configuration
Posted by Mircea Toma <mi...@home.com>.
>
> > It sounds nice initially but I am a little reluctant
> > to do it at the moment
> > as I don't think we are willing enough atm to
> > guarentee a serialized
> > format.
>
> Question: Would it be reasonable to make that a
> requirement? It would make distributed configuration
> of a group of servers easier.
You bet!
>
> > Another way of combatting it would be "serializing"
> > it to XML and then
> > using A ConfigurationBuilder on server to rebuild
> > configuration object. Not
> > sure - what do you think ?
It would solve the problem maybe but using XML you have to send XML
fragments that would represent children Configuration-s and parse those XML
fragments..... :( . The nice thing about Configuration is that you can get
really easy children Configuration-s to configure parts/components of your
application using only objects (aka Configuration-s).
> That would be a good alternative. It is a heavier
> solution, because we would be parsing and reparsing
> an already created object.
There is maybe the alternative of having a ConfigurationCopier class that
would reconstruct a Configuration (a Serializable one) by parsing the source
Configuration (the attributes are all Serializable)!
>
> My view of a Configuration object at this point is
> that it should be simple to create and simple to use.
> Returning arbitrary objects (which would only make
> Configuration serializable if all the stored objects
> were serializable) should be out of the picture. The
> more I think about it, the less I like it.
>
> Parameters should be equally simple to use and also
> able to be Serialized.
>
> Thoughts anyone?
I agree! Configuration and Paramaters have as building bricks Serializable
objects anyway (String,Long,Integer .......)!
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: Serializable Configuration
Posted by Ken Geis <ke...@telocity.com>.
Berin Loritsch wrote:
>>It sounds nice initially but I am a little reluctant
>>to do it at the moment
>>as I don't think we are willing enough atm to
>>guarentee a serialized
>>format.
>
> Question: Would it be reasonable to make that a
> requirement? It would make distributed configuration
> of a group of servers easier.
Sounds good to me, but I might not be totally up on the implications.
> Parameters should be equally simple to use and also
> able to be Serialized.
Could someone tell me what the as yet undocumented
Parameters/Parameterizable are for?
Ken
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: Serializable Configuration
Posted by Berin Loritsch <bl...@yahoo.com>.
> It sounds nice initially but I am a little reluctant
> to do it at the moment
> as I don't think we are willing enough atm to
> guarentee a serialized
> format.
Question: Would it be reasonable to make that a
requirement? It would make distributed configuration
of a group of servers easier.
> Another way of combatting it would be "serializing"
> it to XML and then
> using A ConfigurationBuilder on server to rebuild
> configuration object. Not
> sure - what do you think ?
That would be a good alternative. It is a heavier
solution, because we would be parsing and reparsing
an already created object.
My view of a Configuration object at this point is
that it should be simple to create and simple to use.
Returning arbitrary objects (which would only make
Configuration serializable if all the stored objects
were serializable) should be out of the picture. The
more I think about it, the less I like it.
Parameters should be equally simple to use and also
able to be Serialized.
Thoughts anyone?
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: Serializable Configuration
Posted by Peter Donald <do...@apache.org>.
At 01:07 PM 5/26/01 -0600, Mircea Toma wrote:
>I know that you people put a lot of thought into the framework but I'm using
>Configuration in a distributed environment (Weblogic JMX) and configuring
>remote MBeans is not possible. I was wondering if making Configuration
>serializable would solve the problem of configuring remotely the application
>(by having Configurable MBean-s and a global MBeanServer to send the
>Configuration objects).....there might be other solutions that I'm not aware
>of ?!
It sounds nice initially but I am a little reluctant to do it at the moment
as I don't think we are willing enough atm to guarentee a serialized
format. Perhaps in the interim you could do something like
class MyConfiguration extends Configuration implements Serializable {}
Another way of combatting it would be "serializing" it to XML and then
using A ConfigurationBuilder on server to rebuild configuration object. Not
sure - what do you think ?
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org