File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Global.jsa Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Global.jsa" Watch "Global.jsa" New topic
Author

Global.jsa

Fouad Fares
Ranch Hand

Joined: Apr 16, 2003
Posts: 38
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
Kevin Jones
Author
Ranch Hand

Joined: Oct 29, 2003
Posts: 39
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,


Kevin Jones<br />Author: <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0321136497/jranch-20" target="_blank" rel="nofollow">Servlets and JSP: The J2EE Web Tier</a>
Fouad Fares
Ranch Hand

Joined: Apr 16, 2003
Posts: 38
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
Ranch Hand

Joined: Oct 29, 2003
Posts: 39
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

Joined: Apr 16, 2003
Posts: 38
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
Ranch Hand

Joined: Oct 29, 2003
Posts: 39
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

Joined: Apr 16, 2003
Posts: 38
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

Joined: Apr 16, 2003
Posts: 38
Hi Kevin
Thank you for your reply
Everything works fine now
Best Regards
Fouad Fares
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Global.jsa
 
Similar Threads
Problem with global.jsa using Oracle 9ias
Need help using JDeveloper
Web Services IDE
global.jsa source viewable?!!?
global.jsa