2) A stateful Session bean is passivated by its container. Assuming all fields are non-transient , which of the following values will still exist following passivation, select 4 answers? a) null b) A JDBC Connection c) An Entity bean d) A SessionContext e) A UserTransacation Please discuss the question. Thanks Ruilin
posted 18 years ago
Please help me on the following question; Which of the following properties are saved at the time of EJB passivation 1. EJBHome reference; 2. Transit variable; 3. User Transaction; 4. Naming Context; 5. EJBObject reference. Thanks in advance. Ruilin
You should start reading EJB1.1spec.....you will get a good understanding of the EJB concept.... Next, go through all the existing Javaranch threads because these question have already been asked... Becoming an Architect is to be prepared to do not ask anymore questions....but give only the answers !!! ;-) Try to find the answer of your several question by yourself next time !! ,-) Sincerely,
A stateful Session bean is passivated by its container. Assuming all fields are non-transient , which of the following values will still exist following passivation, select 4 answers? a) null b) A JDBC Connection c) An Entity bean d) A SessionContext e) A UserTransacation a,c,d,e Which of the following properties are saved at the time of EJB passivation 1. EJBHome reference; 2. Transit variable; 3. User Transaction; 4. Naming Context; 5. EJBObject reference. 1,3,4,5 (Transit...you meant transient instead ?!)
posted 18 years ago
Hi Herve, I think your attitude is not quite right. The purpose of the forum is for posting questions and discussing them. In this we many people can learn. You probably think you know all these, but others may not. I think you miss the point about the purpose of this forum. I hope you could adjust your attitute a little so that we will keep the atomsphere of this forum nice. Kind regards, Ruilin [This message has been edited by ruilin yang (edited November 02, 2001).] [This message has been edited by ruilin yang (edited November 02, 2001).]
Ruilin, I agree with Herve. How can you take the exam if you don't have a good understanding of the EJB model ? Best way to start is to read the EJB 1.1 spec from SUN, in the following chapter you can find all the answers to your questions. Try to do your own research and study first ;-) <h1>6.4.1 Instance passivation and conversational state</h2> The Bean Provider is required to ensure that the ejbPassivate method leaves the instance fields ready to be serialized by the Container. The objects that are assigned to the instance�s non-transient fields after the ejbPassivate method completes must be one of the following:
A serializable object.
An enterprise bean�s remote interface reference, even if the stub class is not serializable.
An enterprise bean�s home interface reference, even if the stub class is not serializable.
A reference to the SessionContext object, even if it is not serializable.
A reference to the environment naming context (that is, the java:comp/env JNDI context)or any of its subcontexts.
A reference to the UserTransaction interface.
An object that is not directly serializable, but becomes serializable by replacing the references to an enterprise bean�s remote and home interfaces, the references to the SessionContext object, the references to the java:comp/env JNDI context and its subcontexts, and the references to the UserTransaction interface by serializable objects during the object�s serialization. This means, for example, that the Bean Provider must close all JDBC� API connections in ejbPassivate and assign the instance�s fields storing the connections to null. The last bulleted item covers cases such as storing Collections of remote interfaces in the conversational state. -Chris [This message has been edited by Christophe Testi (edited November 02, 2001).]
posted 18 years ago
Ruilin, I'm agree with you. The Forum is to help people....who ask the right questions. Most of your questions refers to the EJB1.1 specifications or the Monson-Haefel book. -What distinguishes a bean-managed persistent (BMP) enterprise bean from a container-m ... -a bean pass a reference of itself to some other beans -process of different EJB's Passivation and Activation ... You find the answers from the net or from http://www.jguru.com/faq/EJB
But my feeling, sometimes, when I go through these good Javaranch forum...is that a lot of people doesn't make any EFFORT to find the answers to their simple question!!! My understanding is that Javaranch Architect Certification Forum is dedicated for people who has already the basic J2EE knowledge....for instance, we should not find in these forum the following asked questions : What is an EJB ? What is EJB-CMP and EJB-BMP ? What is passivation ? What is java ? ;-) ... I won't go to any "Oracle database Certification" Forum and ask : "what is SQL ? "
Bear in mind the Sun Certification Architect is composed of 3 parts...where the part II/III needs you a perfect understanding of all J2EE technologies.....it doesn't make any sense to clear only the first part.....the first part has no value without the others. Sorry, if I hurt you or others people reading these thread....it wasn't the purpose. Regards, herve
posted 18 years ago
Christophe, Thanks for you information. I do have read a lots, but may not be what you have read. That is the benefit I get from posting the questions. Discussion is a fast way for me to get/remember information. I think this is the purpose of the forum. I like to encourage people to actively participate the forum. What is wrong with posting questions. It is no harm/cost at all. That is my attitude. Please do not worry about other people's way of study. Different people have different approaches. This forum is for finding information and help each other if you can/like. It is not for criticize other's approach. I do not like to point others: " you do not have a good understanding of the subject". I like to be modest and not errogant! Herve, I know JSCEA exam including three parts, like SCJD2 (if we regard SCJP2 is the part one of SCJD2), which I have passed all. For doing the assignment I feel more confident than passing the part#1 since my everyday work is J2EE stuff/archeticture design. So don't worry about that. Different people have different situations. Best regards, Ruilin
[This message has been edited by ruilin yang (edited November 02, 2001).] [This message has been edited by ruilin yang (edited November 02, 2001).]