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
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.
Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
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
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.
Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
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