What kind of resource initialization are we talking about here? I am
wondering why there is no ejb-jar level event defined in the spec so far
unlike one that exists for web module. May be it has to do with the
fundamental difference between war module and ejb-jar module. A war is
considered one component where as individual ejbs in an ejb-jar is
considered a component. Since each component should be as independent as
possible, each should be responsible for initialization of the resource
that they need. Going by this argument, can't EJB's lifecycle methods be
used to do resource initialization?
Thanks,
Sahoo
Witold Szczerba wrote:
> Good, question. I would like to use Spring for some things I cannot do
> with EJB3 and I do not have WAR module, so I am joining the question
> from Chris.
>
> Witold Szczerba
>
> 2008/2/21, glassfish_at_javadesktop.org <glassfish_at_javadesktop.org>:
>
>> Hello,
>>
>> I'm still pretty green to GlassFish, so I'm hoping someone can enlighten me. Basically, I'm trying to initialize some resources during the application startup. Since the server hosts multiple EARs, I really cannot use the server life cycle hooks. Also, the way this application is wired, I can't use the web application life-cycle listeners (or servlet init functions) to perform this. Are there any hooks into the server to allow for this prior to the web applications (there are multiple WARs in the EAR) accepting requests? Something like a preStartup or postStartup interface that I could use? Thanks!
>>
>> Chris
>> [Message sent by forum member 'csiemback' (csiemback)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=260294
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>