• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to call a servlet or cgi within a session bean

 
James Liu
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic