• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Himai Minh

Regarding scalablity of ejb

Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a small question how can we scalable the apllication by using ejb's
please kindly help me
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi vinaykrothapalli,

Please remember that ejbs were designed to be very scalable. From here all these great concepts like instance pooling, cluster aware stubs, etc. Of course not all type of ejbs are highly scalable and an example could be the SFSBs. Some people would say that even entity ejbs are not what they were promised to be in the first place and they are only trouble. In my opinion one still can design a scalable system using entity ejbs, but s/he probably needs to employee vendor specific solutions. As for the SLSBs, the story is controversial again, since some people say that they are great, while other would argue that they are not worth the trouble. Finally there are the MDBs and here most of the people I know do agree that they are a very good choice.
To answer to your question I�d say that at least in theory using ejbs will make your application scalable, because this was the reason for designing them in the first place. In practice I can tell you that you�ll never go wrong with MDBs and if you fallow a good design you can discover that SLSBs are a pretty good choice too. Entity ejbs on the other hand require an in-depth knowledge of the container and you have to sacrifice the portability (in practice this is just a utopia anyway) for scalability. As for SFSBs, unless you have rmi clients that need to maintain state information, you better stay away and use HttpSession instead.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic