• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What do I need to produce proxy stub

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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

------------------
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
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How many are correct? I'd actually say 3 and 4 if they allow 2 ...
Kyle
------------------
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
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Only one choice is correct(radio button), I am confused too. I think this is some propertary test.
Thx
Pat
 
Patrick Wang
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic