• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

load-on-startup problem ?

 
Ranch Hand
Posts: 223
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am using WebLogic Server 8.1 SP2 (supports Servlet 2.3)
i have a startup servlet and ServletContextListener

my first problem is that startup servlet is getting called before MyServletContextListener
and the second problem is the whole process is happenig twice.

my server startup console looks like this


Inside StarUpServlet.init()

Inside ServletContextListener.contextInitialized()

Inside StarUpServlet.destroy()

Inside ServletContextListener.contextDestroyed()

Inside StarUpServlet.init()

Inside ServletContextListener.contextInitialized()


before the context is initialized StartUpServlet is called, //a
then context is initialized, //b

then StartUpServlet is destroy, //c
then context is destroyed, //d

then again StartUpServlet is called, //e
and context is initialized once more. //f


 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,

On what events the destroy() and ContextDestroyed() methods are called. Are you undeploying the application or restarting the server.

Thanks
 
hasan khan
Ranch Hand
Posts: 223
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
there is no event from my side. i am starting the server and watching.
these thing happens automatically.
 
reply
    Bookmark Topic Watch Topic
  • New Topic