|
||||||||||
| 上一个软件包 下一个软件包 | 框架 无框架 | |||||||||
请参见:
描述
| 接口摘要 | |
|---|---|
| BurlapMetaInfoAPI | API retrieving burlap meta information. |
| 类摘要 | |
|---|---|
| BurlapProxy | Proxy implementation for Burlap clients. |
| BurlapProxyFactory | Factory for creating Burlap client stubs. |
| BurlapProxyResolver | Looks up remote objects in the proxy. |
| BurlapRemote | Encapsulates a remote address when no stub is available, e.g. for Java MicroEdition. |
| MicroBurlapInput | Input stream for Burlap requests, compatible with microedition Java. |
| MicroBurlapOutput | Output stream for Burlap requests, compatible with microedition Java. |
| 异常摘要 | |
|---|---|
| BurlapProtocolException | Exception for faults when the fault doesn't return a java exception. |
| BurlapRuntimeException | Wrapper for protocol exceptions thrown in the proxy. |
| BurlapServiceException | Exception for faults when the fault doesn't return a java exception. |
Portable client code for using Burlap services. Since this package is independent of all Resin code, its classes can be copied to a non-Resin client jar.
import com.caucho.burlap.client.BurlapProxyFactory;
...
URL url = new URL("http://localhost:8080/ejb/hello");
HelloHome hello = (HelloHome) factory.create(HelloHome.class, url);
System.out.println("hello: " + hello.hello());
OutputStream os = new FileOutputStream("test.xml");
BurlapOutput out = new BurlapSerializerOutput(os);
out.writeObject(obj);
os.close();
InputStream is = new FileInputStream("test.xml");
BurlapInput in = new BurlapSerializerInput(in);
Object obj = in.readObject();
is.close();
|
||||||||||
| 上一个软件包 下一个软件包 | 框架 无框架 | |||||||||