Nice tree. I can see the ASCII artist yearning to burst free.
> -----Original Message-----
> From: Jeremy Boynes [mailto:[EMAIL PROTECTED]
>
> For example, suppose you have a tree like
>
> org/apache/geronimo/System
> |
> -- org/apache/geronimo/Server
> |
> -- org/apache/geronimo/DebugConsole
> |
> -- org/apache/geronimo/Secure
> |
> -- com/example/Config1
> | |
> | -- com/example/app1A
> | |
> | -- com/example/app1B
> |
> -- com/example/Config2
> |
> -- com/example/app2A
>
> On build, we configure the server to start "Server" (abbreviated) so
the
> first time you boot both it and "System" will be started.
>
> Suppose you then distribute all the other configs to it and start
them.
> If you then stop and restart the server all 9 configs will start.
>
> If you then stop and start the server with "app1A" and "app2A" on the
> command line then "System" "Server" "Config1" "app1A" "Config2" and
> "app2A" will be started.
>
Makes sense.
The reason that I ask is that in itests I distribute and start app1A,
app1B, and app2A. I then try to stop and undeploy them in reverse
order. When I do this, app1A, app1B and app2A throw this exception when
they are undeployed:
java.lang.IllegalStateException
at
org.apache.geronimo.kernel.Kernel.stopConfiguration(Kernel.java:327)
...
Does what I'm doing for these unit tests, undeploying them in reverse
order, even make sense?
BTW, what configuration to I pass to tell the server to stop the whole
tree all at once? Do I have to stop the nodes that I started in reverse
order?
Regards,
Alan