I have read out that the stubs are pesent at client as well as server side. I have a j2ee project with 1 one web module & one EJB module. When I depolyed the EJB's the stubs are generated only in EJB moduls package & not in the web modules packages. Why this is so ? If my Web module is acting as client to the EJB module, the stubs should be present in the Web module packages also.
Just as a tip try using JBoss and you are never worrying about stubs anymore.
Jeroen T Wenting
Joined: Apr 21, 2006
wrong tip. You should always learn to do things by the standard rather than learning some serverspecific trickery.
Prevent vendor lockin, don't get sucked into relying on one specific tool.
Joined: Feb 13, 2006
I am not quite sure what Jeroen means with standard because there is no standard. It strucks me that there is a need to use any custom stubs when there is a proven way to deal without using proxies. Stubs are not only a pain because they need to bundled with the client but quite often they are not made available until the application is deployed (see Sun's app server).
I agree with Jeroen that one should learn the basics which here means that when you deserialize objects that you need to make no only the interfaces available but also the implementing class(es).