49 |
import gnu.CORBA.Unexpected; |
import gnu.CORBA.Unexpected; |
50 |
import gnu.CORBA.gnuAny; |
import gnu.CORBA.gnuAny; |
51 |
import gnu.CORBA.gnuRequest; |
import gnu.CORBA.gnuRequest; |
52 |
import gnu.CORBA.streamReadyHolder; |
import gnu.CORBA.StreamHolder; |
53 |
import gnu.CORBA.streamRequest; |
import gnu.CORBA.StreamBasedRequest; |
54 |
|
|
55 |
import org.omg.CORBA.ARG_OUT; |
import org.omg.CORBA.ARG_OUT; |
56 |
import org.omg.CORBA.Any; |
import org.omg.CORBA.Any; |
368 |
{ |
{ |
369 |
// Failed due any reason, insert without |
// Failed due any reason, insert without |
370 |
// helper. |
// helper. |
371 |
a.insert_Streamable(new streamReadyHolder( |
a.insert_Streamable(new StreamHolder( |
372 |
buf.create_input_stream() |
buf.create_input_stream() |
373 |
) |
) |
374 |
); |
); |
589 |
// Prepare an Any that will hold the exception. |
// Prepare an Any that will hold the exception. |
590 |
gnuAny exc = new gnuAny(); |
gnuAny exc = new gnuAny(); |
591 |
|
|
592 |
exc.insert_Streamable(new streamReadyHolder(input)); |
exc.insert_Streamable(new StreamHolder(input)); |
593 |
|
|
594 |
UnknownUserException unuex = new UnknownUserException(exc); |
UnknownUserException unuex = new UnknownUserException(exc); |
595 |
m_environment.exception(unuex); |
m_environment.exception(unuex); |
664 |
* Get the parameter stream, where the invocation arguments should be written |
* Get the parameter stream, where the invocation arguments should be written |
665 |
* if they are written into the stream directly. |
* if they are written into the stream directly. |
666 |
*/ |
*/ |
667 |
public streamRequest getParameterStream() |
public StreamBasedRequest getParameterStream() |
668 |
{ |
{ |
669 |
m_parameter_buffer = new streamRequest(); |
m_parameter_buffer = new StreamBasedRequest(); |
670 |
m_parameter_buffer.request = this; |
m_parameter_buffer.request = this; |
671 |
m_parameter_buffer.setOrb(poa.orb()); |
m_parameter_buffer.setOrb(poa.orb()); |
672 |
return m_parameter_buffer; |
return m_parameter_buffer; |