• 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Java Beans and EJB

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi! Everyone,
I've few questions.....
1. What is differnce between Java Beans and Enterprise Java Beans?
2. In EJB for instance if we have mentioned that in bean pool their can be only 20 beans and their is request for 21st bean by client then what will happen?
3. IN MVC can we used Java beans as a controller?
thanks
sk
 
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sanjeev,
1) This link might help you http://www.webgain.com/communities/developers/resources/articles/java_beans.html
2) It depends on type of bean you are talking about. What type of EJB are you talking about?
3) You can!
 
Sanjeev Shahi
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Ram Dhan for replying so quick
2. I am talking about entity bean
3. How Java Bean can be used as controller give little detail.
ss
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sanjeev,
2) they will be in que.
3) Actually you can play arround with java beans in what every manner you want. They just java classes with an getter and setter features. You can get excellent information about implementaion framework at http://jakarta.apache.org/struts/userGuide/index.html
This framework is recommended by SUN also.
good luck.
 
Sanjeev Shahi
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ram Dhan ,
what will be in case of Session Beans? In case of Stateful I think their is no pool so new instance will be created as their is need. What in case of Stateless ?
SS
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sanjeev,
Session beans are two types
1) Stateless
2) Stateful
Life of stateful bean in with the scope of serving one and only one client. When the cient needs it, get created/activated(id already created and passivated).
Stateless session beans are like classes with class level(static method), in reality they are not allowed to have static methods. They are can pooled in a EJB container and they can be used by any client and they are equal across clients. But one note, while a stateless session bean instance is serving a client, another client cannot access it. So while a stateful bean is serving a client its unique ro that client. Once the client is served immediately the bean instance is returned to the pool and its ready to serve the same client or different client.
 
He puts the "turd" in "saturday". Speaking of which, have you smelled this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic