Hi Cathy,

    This is from the draft 2.1 spec at section 25.1.2 "Programming
restrictions".  The explanation for

"An enterprise bean must not attempt to listen on a socket, accept
connections on a socket, or use a socket for multicast."

begins with

"The EJB architecture allows an enterprise bean instance to be a network
socket client, but it does not allow it to be a network server."

    There are other references as well.  Scan for URL, socket, and resource
manager.

    So the answer to

> Can EJBs be socket clients?

is:  yes.


                                                         Joe Sam

Joe Sam Shirah -        http://www.conceptgo.com
conceptGO         -        Consulting/Development/Outsourcing
Java Filter Forum:       http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International?    http://www.jguru.com/faq/I18N
Que Java400?             http://www.jguru.com/faq/Java400



----- Original Message -----
From: "cpi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 15, 2003 3:46 PM
Subject: EJB as socket client


> Greetings,
>
> EJB specs indicate that EJBs can not manage sockets, e.g. EJB is not
allowed to create socket server or use socket factory. But the spec does not
state explicitely if EJBs can send data to an external socket server. Can
EJBs be socket clients?
>
> Any response will be greatly appreciated.
>
> Cathy Liu
>

===========================================================================
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".

Reply via email to