File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes How to call a servlet or cgi within a session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Architect Certification (SCEA/OCMJEA)
Reply Bookmark "How to call a servlet or cgi within a session bean" Watch "How to call a servlet or cgi within a session bean" New topic
Author

How to call a servlet or cgi within a session bean

James Liu
Greenhorn

Joined: Aug 02, 2002
Posts: 10
Hello everyone,
Is there anyone has the experience how to do it, could you please post the example code if you can.
Thanks
James Liu
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
I would discourage you from calling a servlet (or other web resource) from within a Session Bean, however it is easily done. You just need to make an UrlConnection to the appropriate url and parse the InputStream for the response.
Does this have anything to do with the SCEA exam? If so then I will quickly say that you are getting into too much detail for this exam.
 
IntelliJ Java IDE
 
subject: How to call a servlet or cgi within a session bean
 
Threads others viewed
6 gmail invitations again
Selling SCJP Voucher $100- US Only
Unable to compile class for JSP
Tomcat installation Problem
Why I fired my secretary ...
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture