• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is the order of loading in the servlet spec?

 
Joshua White
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,
I have a servlet whose init method checks for a class "foo" that should be bound to the servlet context.
Class "foo" implements the ServletContextListener and puts itself into the servlet context on the contextInitialized event.
This works correctly in the sun one application server, but not in WLS 8.1. WLS loads the servlet first, then "foo" gets initialized.
Whats the deal?
 
Joshua White
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I should also mention that it works on Tomcat as well.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!