public interface ServiceProxyFactory
URL url = new 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.Object create(Class api, String url) throws MalformedURLException
String url = "http://localhost:8080/ejb/hello"); HelloHome hello = (HelloHome) factory.create(HelloHome.class, url);
api - the interface the proxy class needs to implementurl - the URL where the client object is located.MalformedURLExceptionCopyright © 2014. All rights reserved.