| java.lang.Object com.caucho.ejb.hessian.HessianStubFactory
HessianStubFactory | public class HessianStubFactory implements HessianRemoteResolver(Code) | | Factory for creating Hessian client stubs. The returned stub will
call the remote object for all methods.
String url = "http://localhost:8080/ejb/hello";
HelloHome hello = (HelloHome) factory.create(HelloHome.class, url);
After creation, the stub can be like a regular Java class. Because
it makes remote calls, it can throw more exceptions than a Java class.
In particular, it may throw protocol exceptions.
|
HessianStubFactory | public HessianStubFactory()(Code) | | |
create | public Object create(Class api, String url) throws Exception(Code) | | Creates a new proxy with the specified URL. The returned object
is a proxy with the interface specified by api.
String url = "http://localhost:8080/ejb/hello");
HelloHome hello = (HelloHome) factory.create(HelloHome.class, url);
api the interface the proxy class needs to implement url the URL where the client object is located. a proxy to the object with the specified interface. |
getRemoteResolver | public HessianRemoteResolver getRemoteResolver()(Code) | | Returns the remote resolver.
|
getWorkPath | public Path getWorkPath()(Code) | | |
setWorkPath | public void setWorkPath(Path path)(Code) | | |
|
|