File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and Other Java EE Technologies and the fly likes What do I need to produce proxy stub Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and Other Java EE Technologies
Reply Bookmark "What do I need to produce proxy stub" Watch "What do I need to produce proxy stub" New topic
Author

What do I need to produce proxy stub

Patrick Wang
Greenhorn

Joined: Oct 15, 2001
Posts: 20
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
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.


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Patrick Wang
Greenhorn

Joined: Oct 15, 2001
Posts: 20
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
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
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
Ranch Hand

Joined: Aug 10, 2001
Posts: 3878
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

Joined: Oct 15, 2001
Posts: 20
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
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
 
 
subject: What do I need to produce proxy stub
 
Threads others viewed
Invoking Nonexistent Stateful Session Bean
a question about rmi
Proxy stub generation
Exposing Spring beans to JNDI, then accessing using remote EJB
What next with VAJ
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com