geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <>
Subject Re: Module startup order?
Date Thu, 14 Dec 2006 18:18:25 GMT

On Dec 14, 2006, at 9:18 AM, Mike Perham wrote:

> So I can't list a war dependency in my ejb so the war is init'd first?
> I tried to do that but it said it couldn't find the module.  I
> thought maybe this is because I don't have any modules listed in
> geronimo-application.xml.
> We are using Spring's BeanLocator facility to build a shared
> ApplicationContext which is visible to all modules in the EAR so they
> all share the same caches, etc.  Only one war has the setup necessary
> to build this context so we need it to start first.

I'm probably just being stupid, but why does it need to start first?   
Starting an ejb module does not execute any application code so I'm  
having trouble imagining what bad effects starting the ejb module  
before the web module would have.

david jencks

> On 12/14/06, David Jencks <> wrote:
>> In an ear, you can't.  We go to a lot of trouble to make sure all
>> ejbs are started before any wars so that if you need to look up an
>> ejb in a servlet init method you can.
>> If the apps are packaged separately, you can make the ejb app depend
>> on the web app and the web app will be started first.
>> Out of curiousity, why do you need to start the web app first?
>> thanks
>> david jencks
>> >
>> > mike

View raw message