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 Proxy stub generation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Proxy stub generation" Watch "Proxy stub generation" New topic
Author

Proxy stub generation

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Guys,

How the proxy stub generation is done using the rmic precompiler? I mean when we package the Remote interface in the client jar and deploy them in weblogic, which mechanism drives the proxy stub generation? Can anyone throw some light on this?


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

In the O'Reilly's EJB 3.0 on page 22 it says that the proxy stub implements the Remote or the Local interface of the session bean and is responsible for sending your session bean method invocation over the network to your remote EJB container or routing the request to the EJB container that is in the local JVM.

So when I have my Remote interface in the client jar and deploy this client jar in an Apache server, does it mean that the Apache server should have something like an rmic precompiler to generate implementations for the Remote interface and route the calls to the appropriate session bean located on a remote EJB container?

Can anyone get me a clarification on this please.

Thanks in advance!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Normally in enterprise apps, do we also package the Remote interface in the client jar?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Guys, anyone has any idea on the rmic precompiler that the app servers use to generate the client proxy stubs?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Proxy stub generation
 
Similar Threads
RMI proxy
JAX-WS dynamic proxies and increased platform independence
Proxy stub generation
RMI force use of stub classes
When the server generates WSDL during deployment of web service?