Search in sources :

Example 1 with NoContext

use of org.omg.PortableServer.CurrentPackage.NoContext in project wildfly by wildfly.

the class EjbCorbaServant method unmarshalIdentifier.

private Object unmarshalIdentifier() throws IOException, ClassNotFoundException {
    final Object id;
    try {
        final byte[] idData = poaCurrent.get_object_id();
        final Unmarshaller unmarshaller = factory.createUnmarshaller(configuration);
        unmarshaller.start(new InputStreamByteInput(new ByteArrayInputStream(idData)));
        id = unmarshaller.readObject();
        unmarshaller.finish();
    } catch (NoContext noContext) {
        throw new RuntimeException(noContext);
    }
    return id;
}
Also used : NoContext(org.omg.PortableServer.CurrentPackage.NoContext) ByteArrayInputStream(java.io.ByteArrayInputStream) InputStreamByteInput(org.jboss.marshalling.InputStreamByteInput) Unmarshaller(org.jboss.marshalling.Unmarshaller)

Aggregations

ByteArrayInputStream (java.io.ByteArrayInputStream)1 InputStreamByteInput (org.jboss.marshalling.InputStreamByteInput)1 Unmarshaller (org.jboss.marshalling.Unmarshaller)1 NoContext (org.omg.PortableServer.CurrentPackage.NoContext)1