aspose file tools*
The moose likes BEA/Weblogic and the fly likes Doubt in EJB Stubs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Doubt in EJB Stubs" Watch "Doubt in EJB Stubs" New topic
Author

Doubt in EJB Stubs

Venkatesh Rangamani
Ranch Hand

Joined: Aug 24, 2005
Posts: 31
Hi Ranchers,

Greetings!!!

Generally, When developing the clients of EJB components we need the Interfaces and the Stubs of the bean deployed on the server for the client to compile and access the bean. But with WLS 8.1 i see that just the interfaces are required to compile and acess the bean, the client doesnt require the Stubs to access the bean. I heard from someone that WLS downloads stubs in the runtime. Can some of you throw light on how the client is able to access the bean without the stubs. If suppose runtime download happens then are there ways to see the stubs(in some diretory in the Local File sys)?
Boobalan Jegathesan
Greenhorn

Joined: Jan 08, 2007
Posts: 17
Hi,

in EJB env we are binding the resources with JNDI.So client can access the resource by doing lookup remotely.In business component we have to bind the local/remote interfaces and home interfaces with JNDI.The lookup function will return the RMI/IIOP stub to the client for the corresponding resource.we will have to further typecast that stub to the exact home/component interface using PortableRemoteObject...client required only the component interface to access business methods...


Thanks<br />Boobalan.(SCJP1.4)
Ravi Bansal
Ranch Hand

Joined: Aug 18, 2008
Posts: 86
Hi Guys,

-------------------------------------------------------------------
I heard from someone that WLS downloads stubs in the runtime. Can some of you throw light on how the client is able to access the bean without the stubs. If suppose runtime download happens then are there ways to see the stubs(in some diretory in the Local File sys)?
---------------------------------------------------------------------

Does anyone know , where can we see the stubs which are downloaded at run time in local file system of client machine


SCJP 5.0 94%
OCE-EJBD 90%
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt in EJB Stubs