Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


Shyam Sunder Reddy
EJB
1 Answer(s)      5 years and 9 months ago
Posted in : EJB



Advertisement
View Answers

November 21, 2008 at 12:30 AM


Hi friend,

As the name implies, a Stateless session bean does not maintain any state (instance variables values) across methods for a particular client, ejbActivate () and ejbPassivate () methods do not have significance in Stateless session bean. So the Container can assign different beans from the pool to the client for successive methods so developer needs not to write code in these methods for stateless session bean.

The app server ur using cannot always instantiate as many beans as the number of active sessions, for the very reason that it is resource hungry. For eg, if there are 100 clients communicating with ur server, there will not always 100 session beans servicing the clients.. instead the container instantiates a reasonable number of bean instances, say 25, to service the 100 clients simultaneously.

Now, the interesting problem of managing the 100 clients with 25 bean instances is with the container. The ejbPassivate() and ejbActivate() methods give a helping hand to the Container to effectively manage the resources.

For more information on Java Beans

http://www.roseindia.net/javabeans/javabeans.shtml

http://www.roseindia.net/ejb/

Thanks



Related Tutorials/Questions & Answers:
ejb
ejb  what is ejb   ejb is entity java bean
ejb
ejb  why ejb components are invisible components.justify that ejb components are invisible
Advertisements
EJB
EJB  How is EJB different from servlets
EJB
EJB  what is an EJB container?   Hi Friend, Please visit the following link: EJB Container Thanks
Ejb
Ejb  what kind of web projects requires ejb framework
Ejb
Ejb  what kind of web projects requires ejb framework
Ejb
Ejb  what kind of web projects requires ejb framework
EJB
EJB  Hi, can any one please share the Document of EJB. I want to learn EJB from basic. Thanks a lot in advance
EJB
EJB  Please post screen shots of developing EJB pgms and also provide details about the files generated while we are developing applications using EJB
ejb
ejb  what is the best book to study ejb with examples in weblogic with (netbeans or eclipse)   Please visit the following link: http://www.roseindia.net/javabeans/javabeans.shtml
ejb - EJB
ejb  how can i run a simple ejb hello application.please give me...: http://roseindia.net/ejb/ejbtutorial/building_a_simple_ejb_application.shtml http://www.roseindia.net/ejb/ejb-hello-world.shtml Hope
EJB - EJB
EJB  i want to make a small application using EJB ,pls any one can tell me how i can deploy EJB in server ???   Hi You can start from anywhere on this site! for introduction and deployment of EJB Tutorial visit
EJB - EJB
How to execute EJB(Entity bean) in desktop application   Dear Firends, I have one doubt about EJB that is "How to execute EJB(Entity bean) in desktop application using java in windows? Please reply quickly, i need very urgently
EJB - EJB
EJB  i want to know coding for providing fault-tolerance for EJB componenti.e., coding in EJB for transaction process(deposit and withdraw) using JDBC connection. please send me the code as soon as possible
EJB - EJB
Learning EJB  What i need to know to start doing programming in EJB
EJB - EJB
EJB  Dear Sir , Which book is good for learning EJB . THANKS AND REGARDS, SENTHILKUMAR.P
ejb - EJB
of 3.0 version.  Hi friend, EJB : The Enterprise JavaBeans architecture or EJB for short is an architecture for the development and deployment... and budget. EJB 3.0 New Features Following are the new features of EJB
EJB - EJB
EJB  What is the difference between EJB 2.0 and EJB 3.0? GIVE ME.../ejb/ Thanks. Amardeep  Hi friend, Difference between EJB 2.0 and EJB 3.0 EJB 2.0 It is very complex, difficult to learn/use
EJB - EJB
://www.roseindia.net/ejb/ Thanks
EJB - EJB
to : http://www.roseindia.net/ejb/SessionBean.shtml Thanks
EJB-MDB - EJB
EJB-MDB  What are the MDB transaction attributes
java EJB - EJB
java EJB  Please, Tell me the directory structure of EJB applications and how to deploy ejb on glassfish server
Types of EJB? - EJB
Types of EJB?  Explain different types of EJB and how it will be differ from one to another?  Hi friend, Read for more information. http://www.roseindia.net/ejb
ejb vs hibernate - EJB
ejb vs hibernate  1>>> If we have ejb entity bean why we need hibernate? 2>>> Is hibernate distributed
EJB in jsp code - EJB
EJB in jsp code  Suppose in EJB we created the session bean, remote... can we access the EJB methods in the jsp file.... if u can present me... the following links: http://www.roseindia.net/ejb/examples-of-StatelessBean.shtml
Design patterns in ejb - EJB
on design patterns in EJB iam toally new to this concept(i.e design patterns)  Hi friend, The job of the EJB developer is constantly challenging... of design patterns, strategies, and best practices for EJB design and development
how to call ejb with in another ejb - EJB
how to call ejb with in another ejb  Does any one have idea about ...how to call ejb with in another ejb
EJB communication - EJB
EJB communication  i am trying to create call a bean from another bean but it will not call. i cann't understand the dd configuration.please help me
EJB Example - EJB
EJB Example  Hi, My Question is about enterprise java beans, is EJB stateful session bean work as web service? if yes can you please explain... the following link: http://www.roseindia.net/ejb/WebServices.shtml Hope
EJB Environment
EJB Environment  can we work EJB in JDK1.4
java - EJB
java  execution process of ejb
use of ejb - EJB
use of ejb  what is the use of ejb??  Hi friend, Some points to be remember for using ejb : * Applications developed by using.... * EJB are deployable reuseable server-side components. The components
Difference between EJB 2 and EJB 3 - EJB
Difference between EJB 2 and EJB 3  I know we dont implement home and remote interfaces. 1)Do we have ejb-jar.xml in EJB 3.0... in EJB lifecycle. 3) Why do we have Remote and Home interfaces in EJB 2.x
question - EJB
EJB Query language reserved words  What is the ejb query language reserved words
tutorials - EJB
ejb tutorial for beginners free  Can anyone give me the reference of EJB tutorials for beginners
Hibernate - EJB
hibernate ejb hibernatepersistence jar  Need to know about hibernate ejb hibernatepersistence jar
EJB Project
EJB Project  How to create Enterprise Application project with EJB module in Eclipse Galileo?   Please visit the following link: http://www.roseindia.net/ejb/ejbtutorial/buildingasimpleejbapplication.shtml
jsp and ejb codes - EJB
jsp and ejb codes  give me the codes to write small shopping cart project.I only want to acess from server.i want to show the client the search place in the home page,where they can put the author of the book they want and after
j2ee - EJB
j2ee  i want to know the ejb 2.0 architecture by diagram and also ejb 3.0 architecture i want to know the flow in ejb 2.0 and ejb 3.0  ... for more information. http://www.roseindia.net/ejb/application
j2ee - EJB
j2ee  when we given a request for ejb cointainer how the container calls the we requested method call
java - EJB
java  hi friends, i am creating one file, i want to store this file in my working directory.how can i get real path or working directory path in ejb? regards, srinivas
Technology - EJB
i want to learn further .So please tell me whether should i learn EJB 3.0... sending link. you can lean more information about ejb, Spring and Hibernate. http://www.roseindia.net/ejb/ http://www.roseindia.net/spring/ http
Swing EJB
Swing EJB  Hi everyone !!! I tried to find wether EJB architecture can operate with swing, because I am trying to make application which would work... would work with EJB application server
EntityBean - EJB
Persistence API starting from EJB 3.0. Read for more information. http://www.roseindia.net/ejb/entity-bean-example.shtml
EJB with NetBeans
EJB with NetBeans  I am very new in Ejb and with very few knowledge about it. I have download NetBeans (7.01) and GlassFish (3.01). But, as I have no idea about Ejb, I am not getting how to run the code which includes a simple
Diffrent EJB & Java Bean - EJB
Diffrent EJB & Java Bean  What is Different between EJB & Java Bean...-based software components that are built to comply with Java's EJB specification and run inside of an EJB container supplied by a J2EE provider. An EJB container
EJB Container or EJB Server
EJB Container or EJB Server       An EJB container is nothing but the program that runs on the server and implements the EJB specifications. EJB container provides special type
Java - EJB
Java  If Anybody know how to run Ejb in Eclipse, i am looking forward... Server. Just follow the following steps 1. File->New->Other->EJB->EJB Project or File->New->EJB->EJB Project then give a name to your
Coding with Ejb
Coding with Ejb  Hi Team, I am learning Ejb now. Can anybody help me how to implement this Stateful Session Bean Example by using this Hibernate example. Thanks in advance.   Sorry, actually I want simple code adding
ejb
Advertisements
 

 

 

DMCA.com