As for the example that confused me - it is the very first one entitled "The 'server' is reading a file from the 'client'". Instead of calling a method and passing the RemoteInputStream I return it as part of my method call and as such I shouldn't perform the close.
As for the example that confused me - it is the very first one entitled "The 'server' is reading a file from the 'client'". Instead of calling a method and passing the RemoteInputStream I return it as part of my method call and as such I shouldn't perform the close.
right, because in your case: the 'client' is reading a file from the 'server'. maybe i should put more examples in which cover more use cases.
I think that would be useful. Perhaps a few dealing directly with EJBs and sending a file to and receiving a file from a Remote interface? Feel free to include "my" CorbaRemoteStreamExporter anywhere it might be useful.
Ristretto wrote:
I think that would be useful. Perhaps a few dealing directly with EJBs and sending a file to and receiving a file from a Remote interface? Feel free to include "my" CorbaRemoteStreamExporter anywhere it might be useful.
already added a reference to your exporter in the FAQ section for app servers. i also added a another example of the "server" returning a remoteinputstream to the "client" which hopefully spells out the stream management a little more clearly.
Hi jtahlborn, I have followed your sample exporter codes, however, it throws below exception:
[4/11/09 17:46:13:077 CST] 00000035 SystemErr R java.rmi.StubNotFoundException: Stub class not found: com.healthmarketscience.rmiio.RemoteInputStreamServer_Stub; nested exception is:
java.lang.ClassNotFoundException: com.healthmarketscience.rmiio.RemoteInputStreamServer_Stub
[4/11/09 17:46:13:312 CST] 00000035 SystemErr R at sun.rmi.server.Util.createStub(Util.java:292)
[4/11/09 17:46:13:687 CST] 00000035 SystemErr R at sun.rmi.server.Util.createProxy(Util.java:140)
[4/11/09 17:46:13:859 CST] 00000035 SystemErr R at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:184)
[4/11/09 17:46:13:968 CST] 00000035 SystemErr R at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:306)
[4/11/09 17:46:14:046 CST] 00000035 SystemErr R at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:233)
[4/11/09 17:46:14:280 CST] 00000035 SystemErr R at com.ibm.rmi.javax.rmi.PortableRemoteObject.exportObject(PortableRemoteObject.java:126)
[4/11/09 17:46:14:280 CST] 00000035 SystemErr R at javax.rmi.PortableRemoteObject.exportObject(PortableRemoteObject.java:106)
[4/11/09 17:46:14:405 CST] 00000035 SystemErr R at connie.remote.RMIIOPRemoteStreamExporter.exportImpl(RMIIOPRemoteStreamExporter.java:22)
[4/11/09 17:46:14:687 CST] 00000035 SystemErr R at com.healthmarketscience.rmiio.exporter.RemoteStreamExporter.export(RemoteStreamExporter.java:121)
[4/11/09 17:46:14:687 CST] 00000035 SystemErr R at servlet.FileUploadServlet.doPost(FileUploadServlet.java:165)
I'm running IBM Rational Software Architect v 7.0.0.2.
glassfish uses dynamic stub generation, so the exporter alone will be sufficient. however, you must be using a platform which expects statically generated stubs. you should checkout the RMI IIOP Guide as well as the example corba code in the RMIIO project (which may include the necessary stubs already).
This topic has
21
replies
on
2
pages.
« Previous |
1
|
2
|