Do I only need 1) Remote Interface 2) Bean Implementation 3) EJB jar 4) EJB jar with manifest I think 3) is correct, is that true? Because in RMI world you only need the bean implementation in order to produce the proxy stub, (which already include the remote interface and bean implementaion) Thx Pat
Kyle Brown
author
Ranch Hand
Joined: Aug 10, 2001
Posts: 3878
posted
0
Originally posted by Patrick Wang: Do I only need 1) Remote Interface 2) Bean Implementation 3) EJB jar 4) EJB jar with manifest I think 3) is correct, is that true? Because in RMI world you only need the bean implementation in order to produce the proxy stub, (which already include the remote interface and bean implementaion) Thx Pat
Why does this sound like a test question? Anyway, you need the EJB JAR. The manifest and everything else is included in the EJB jar. Kyle
Yes, it is a test. Thx for clarifying this. Here is another puzzle Which one of the following is a good design principle for stateful session beans? Choice 1 Pass client data with each method call to ease the container burden Choice 2 Use only when thread creation is necessary Choice 3 Use fewer, larger method calls Choice 4 Do not use for persisting data Choice 5 Use synchronized methods within the bean
I think either 3 or 4 is correct, but you can only select one correct answer. So I select 4. Thx
Kyle Brown
author
Ranch Hand
Joined: Aug 10, 2001
Posts: 3878
posted
0
Actually, I'd lean more strongly toward (3). There are many cases where Entity beans aren't the right choice for persisting data, but session beans are. However, reducing the distribution cross section (not doing fine-grained distribution) is always a good design principle for session beans. Kyle P.S. All I'm saying is that if this is a pre-test that it's customary to put that in your subject header ------------------ Kyle Brown, Author of Enterprise Java (tm) Programming with IBM Websphere See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
Patrick Wang
Greenhorn
Joined: Oct 15, 2001
Posts: 20
posted
0
Thx Kyle for clarifying this. Here is another puzzle. What types of entity beans support multiple finder methods? Choice 1 Activated entity beans Choice 2 Stateful session beans Choice 3 BMP entity beans Choice 4 CMP entity beans Choice 5 Passivated entity beans I think the answer should be activated Entity Bean's, is this correct? Thx Pat
Only one choice is correct(radio button), I am confused too. I think this is some propertary test. Thx Pat
Patrick Wang
Greenhorn
Joined: Oct 15, 2001
Posts: 20
posted
0
Hi Kyle: Here is another puzzle. Do you have any input? Which one of the following reduces resource overhead in order to improve performance? Choice 1 Limiting the number of bean methods per bean, which increases the number of beans Choice 2 Increasing the number of bean methods per bean, which decreases the number of beans Choice 3 Establishing JDBC connections early in bean execution Choice 4 Increasing the passivation timeout value Choice 5 Increasing the session timeout variable Thx Pat