This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How about Business methods in home interface ?

Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A new EJB 2.0 feature consists of writing business methods in the home interface that we can call without having to instanciate the EJB (kind of a static method)
Is it a good programming practice, and how about performances of this compared to using stateless session beans ?
Saloon Keeper
Posts: 22289
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Architecturally, that sounds like bolting a conventional JavaBean alongside an Enterprise JavaBean.
While it's undoubtedly less overhead, I'd approach it cautiously, since any methods you define there are going to lack the essential attributes that made it worth the trouble of using an EJB to begin with, and you may discover that as time goes by that some of those methods have to migrate OUT of the home interface and into the EJB proper.
But that's just speculation on my part.
    Bookmark Topic Watch Topic
  • New Topic