Can I pass a socket inside my ejb and use this ejb in a infinite loop to recieve request from client?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Saturday, August 28, 2004 02:16 AM

Can I pass a socket inside my ejb and use this ejb in a infinite loop to recieve request from client?
ex:

ServerSocket s=new ServerSocket(port);
for(;;)
{
socket soc=s.accept();
ejb(soc);//ejb to which socket is passed.
}

About | Sitemap | Contact