Why not use a stateless session bean, which has the handle
to the Socket in a member variable. This way you can control
the number of SSB's. Make sure to initialize the connection, then
use the SSB by invoking a single method call... ie ssb.sendRequest(), that
gives a response back. (Opposed to ssb.sendRequest() and ssb.getResponse())...
re: "The problem is the single nominated port and the fact that threads are
handled within the J2EE container."
Usually requests on the port will be forked out by the Server as soon
as the OPEN request comes in. This way you won't have to worry
about bottlenecking on the port... As far as the threads within the J2ee
container go... this is why you'd use the SSB, it will even "queue"
requests if all SSB are currently in use.
-Joel
--
--------------------------------------
RHINO Systems Inc.
RDBMS and Internet development
Java/EJB/Oracle systems
www.rhinosystemsinc.com
EFAX#: (425)969-0745
--------------------------------------
Gamini de Alwis wrote:
> Hello,
> I am working on a typical shopping cart type application based on J2EE.
> I am a bit stuck with the problem of Credit Card Authorization in
> supplying credit card details to a clearing house and receiving a
> response. I would like to do this from the server side. The Vendor
> identified by us wants us to invoke an SSL socket on a given port and
> send information via a standard POST request and will return a standard
> response. Both the request and response can and will be stamped with a
> unique reference.
> The problem is the single nominated port and the fact that threads are
> handled within the J2EE container.
> Perhaps someone has been able to solve this problem and I would be
> grateful for any suggestions or possible solutions to this problem.
>
> regards
>
> Gamini de Alwis
> mailto:[EMAIL PROTECTED]
> > Software Developer
> > Business Manager Software
> > Tel (03) 9813 3022. Fax (03) 9882 5887
> >
> >
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".