Hello -
I need to communicate with a Java application from an EJB(session bean). Is it possible to place code for a client socket inside a method somewhere in the Bean, and have it comm. with a server socket in another application...(the server socket establishes a connection and listens for requests from the client)...?
Thanks!
-
Can EJBs use Sockets to communicate? (3 messages)
- Posted by: Brian Heisler
- Posted on: April 24 2001 11:40 EDT
Threaded Messages (3)
- Can EJBs use Sockets to communicate? by Kapil Israni on April 24 2001 12:58 EDT
- Can EJBs use Sockets to communicate? by Tony Brookes on April 24 2001 17:06 EDT
- Can EJBs use Sockets to communicate? by devendra akolkar on June 03 2001 10:12 EDT
-
Can EJBs use Sockets to communicate?[ Go to top ]
- Posted by: Kapil Israni
- Posted on: April 24 2001 12:58 EDT
- in response to Brian Heisler
yes u can definitely create socket connections to communicate with other services/application.
but u have to be careful how u use it. u have to consider design n technical issues. if u r only using the client cocket to connect to a server socket and then write a stream of data, then u r ok. but if u want ur client socket to listen for data, then u will be blocking ur synchronous ejb call or else u will end up creating thread which ejb doesnt encourage. -
Can EJBs use Sockets to communicate?[ Go to top ]
- Posted by: Tony Brookes
- Posted on: April 24 2001 17:06 EDT
- in response to Kapil Israni
As a socket client you are fine. The EJB spec does not allow listening on a socket within an EJB.
Chz
Tony -
Can EJBs use Sockets to communicate?[ Go to top ]
- Posted by: devendra akolkar
- Posted on: June 03 2001 10:12 EDT
- in response to Kapil Israni
Will you please send me the examples( or sites ) for doing
sockets communication with Ejb & Client (Java,C++ )?
Thanx in advanced.
Devendra