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;
}
Aggregations