• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Global.jsa

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
As i read that Tomcat doesn't support global.jsa file facility.
JRun supports global.jsa file facility.
Could you please advise me if the Oracle jdeveloper 9i supprots this type of file . if yes is there any documentation about using global.jsa in oracle jdeveloper 9i . If no is there any other method that provide me the same feateures .
events of application and session component .
Best Regards .
Fouad fares
 
Author
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your looking for Session and Application events , these were added as part of the Servlet 2.3 specification. Check out ApplicationContextListener and HttpSessionActivationListener.
I think Oracle 9i supports 2.3 but I stand to be corrected,
 
Fouad Fares
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Kevin,
Could you please provide me some sample of servlet that used the ApplicationContextListener and HttpSessionActivationListener
Thank you in advance,
Fouad fares .
 
Kevin Jones
Author
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Neither ApplicationContextListener or HttpSessionActivationListener are implemented by a servlet. They are interfaces that are defined by the servlet specification. Your code implements the methods on the interface, deploys the code as part of the web application and makes the listeners available by adding a <listener> element to the web.xml file.
<listener>
<listener-class>
my.Listener
</listener-class>
</listener>
package my;
public class Listener
implements javax.servlet.ServletContextListener
{
public void contextDestroyed(ServletContextEvent sce)
{
}
public void contextInitialized(ServletContextEvent sce )
{
}
}
 
Fouad Fares
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello kevin ,
Sorry for the delay because i was on holiday .
Thank you for your reply i create the class as you mentioned and i try to change the web.xml by adding the tag listener .
But once i try to run my homepage, Jdev send me page can't be dispalyed .
When i return back the web.xml the Homepage start correctly .
Do you have any idea ?
Best Regards ,
Fouad Fares .
 
Kevin Jones
Author
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Listeners were added as part of the Servlet 2.3 specification, make sure your web server supports at least this version if the protocol,
 
Fouad Fares
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Kevin ,
Regarding this issue servlet 2.3 is supported .
I check the technet [jdeveloper 9i] and i retrieve a documentation of ServletDeveloperGuide and i retrieve an example like your sample .
Nb : My environment
Jdeveloper 9.0.2.8
The web server 9iAS (9.0.3) support servlet api version 2.3 .
But when i make the test i make in my development environment throught the jdeveloper and not through the web server .
Best regards ,
Fouad fares
 
Fouad Fares
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kevin
Thank you for your reply
Everything works fine now
Best Regards
Fouad Fares
 
reply
    Bookmark Topic Watch Topic
  • New Topic