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 open  an HTTPConnection from a session bean ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Architect Certification (SCEA/OCMJEA)
Reply Bookmark "open  an HTTPConnection from a session bean ?" Watch "open  an HTTPConnection from a session bean ?" New topic
Author

open an HTTPConnection from a session bean ?

Robin Zhang
Ranch Hand

Joined: Apr 11, 2002
Posts: 139
I am trying to open an HTTPConnection from a session bean to send request to the CGI/Perl app. In the case, my EJB acts as a web client to the CGI/Perl app.
I am not sure if it is a correct solution.please comment.
[ June 16, 2002: Message edited by: Robin Zhang ]
g madhava
Ranch Hand

Joined: Sep 14, 2001
Posts: 85
I don't see any reason why the solution which you had adopted can't be applied.
Remember that EJB's are a way to process the business logic(BL). They have added extra cream on the top of BL.
You are on the right track.
cheers,
Robin Zhang
Ranch Hand

Joined: Apr 11, 2002
Posts: 139
Thanks, G madhava.
Can you give me some explam or article I can look at ? I appreciate your help.
SC Johnson
Greenhorn

Joined: May 15, 2002
Posts: 13
Robin --
Take a look in the Core Servlets and JSP book -- they have a section on using an applet as an HTTP client. You can use the same code inside a Session Bean (it has nothing to do with Applets).
I've used similar code in my work.
Steve


SCEA, WWISA
Robin Zhang
Ranch Hand

Joined: Apr 11, 2002
Posts: 139
thank you very much.
 
 
subject: open an HTTPConnection from a session bean ?
 
Threads others viewed
java application need to use ServiceLocator?
Best way to connect J2EE Application to an exisitng PERL Cgi Application?
JSP session problem
Part II - EJB talks to existing system
How to call a cgi/perl script from jsp/java bean
developer file tools