This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Events in the EJB model  RSS feed

 
HS Thomas
Ranch Hand
Posts: 3404
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
My first post to this forum as I take tiny steps into the J2EE and EJB world.
Why is there no concept of Events in the EJB model? Has it do with threads ?
Are property change events or vetoable events best left out of server-side implementations ?
Thanks
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mostly it's because distributed events are REALLY difficult to do right. There's been no concensus on the right way to do this, despite multiple efforts (witness the Jini Event specification, CORBA events, and a half dozen others...)
Kyle
 
HS Thomas
Ranch Hand
Posts: 3404
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks , that answers the first part.
I haven't come across any example that uses java.beans and events on a traditional Client-Server 3-tier architecture (i.e not distributed).
Is there a disadvantage with implementing this, apart perhaps,from making this non-migratable to a distributed framework ?
Thanks.
 
HS Thomas
Ranch Hand
Posts: 3404
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is ,
use java.beans and events on the Server-side.
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!