Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Socket connections from EJBs  RSS feed

 
Tonny Tssagovic
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello people,
Is there any prob. with connecting to a socket from an EJB?
and if so, how come EJBs can act as web services clients?
Thanks
[ March 06, 2004: Message edited by: Tonny Tssagovic ]
 
sever oon
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, there's a problem. The EJB spec forbids opening sockets from within an EJB.
sev
 
Tonny Tssagovic
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I was talking about Connecting to a socket.. I just checed it out on the specs.
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. Allowing the instance to become a network server would conflict with
the basic function of the enterprise bean-- to serve the EJB clients.
EJB 2.0 spec 24.1.2 page 495.
so there is no prob. with that.
Thanks anyway.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!