Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in EJB Stubs

 
Venkatesh Rangamani
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Ravi Bansal
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic