geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <>
Subject Re: How to updated config.list during offline deployment
Date Thu, 04 Nov 2004 19:25:19 GMT
On Nov 4, 2004, at 11:18 AM, Jeremy Boynes wrote:

> Aaron Mulder wrote:
>> 	I'd like to be able to add entries to config.list when the server is 
>> not running and I'm doing a deployment.  The problem is, the 
>> configuration list GBean isn't running -- it's not in the minimal set 
>> started by the deployer.  And even if it was, it would install a 
>> shutdown hook that basically saved an empty file when the deployer 
>> finished.
>> 	Anyone mind if I just have a little logic in the deployer to update 
>> this file directly?
> Yes, I mind. The config.list file is specific to the actual 
> implementation of the PersistentConfigurationList GBean and the 
> deployer should not assume that as other implementations may exist.
> The other thing is that the --install option does just that - install 
> but not start (it is meant to be similar to JSR-88 distribute).
> I believe this can be better solved by adding an option to server.jar 
> that adds a new configId to the list to be run, something like:
> java -jar bin/server.jar --add my/new/config

So I would have to do this:

java -jar bin/server.jar --install file.ear
java -jar bin/server.jar --add my/new/config

I think that the vast majority of the time I would just want this:

java -jar bin/server.jar --deploy file.ear

which would do both of the above commands in one go


View raw message