diff options
author | Benoit Foucher <benoit@zeroc.com> | 2007-11-27 11:58:35 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2007-11-27 11:58:35 +0100 |
commit | 47f800495093fd7679a315e2d730fea22f6135b7 (patch) | |
tree | a7b8d3488f3841367dd03d10cae293f36fd10481 /java/src/IceInternal/EndpointFactoryManager.java | |
parent | Fixed SystemException to no longer derive from LocalException (diff) | |
download | ice-47f800495093fd7679a315e2d730fea22f6135b7.tar.bz2 ice-47f800495093fd7679a315e2d730fea22f6135b7.tar.xz ice-47f800495093fd7679a315e2d730fea22f6135b7.zip |
- Added support for non-blocking AMI/batch requests, connection
creation.
- Added support for AMI oneway requests.
- Changed collocation optimization to not perform any DNS lookups.
Diffstat (limited to 'java/src/IceInternal/EndpointFactoryManager.java')
-rw-r--r-- | java/src/IceInternal/EndpointFactoryManager.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/java/src/IceInternal/EndpointFactoryManager.java b/java/src/IceInternal/EndpointFactoryManager.java index 52b2e21888e..fc772b3f6fe 100644 --- a/java/src/IceInternal/EndpointFactoryManager.java +++ b/java/src/IceInternal/EndpointFactoryManager.java @@ -80,7 +80,7 @@ public final class EndpointFactoryManager EndpointI e = f.create(s.substring(m.end()), server); BasicStream bs = new BasicStream(_instance, true); e.streamWrite(bs); - java.nio.ByteBuffer buf = bs.prepareRead(); + java.nio.ByteBuffer buf = bs.getBuffer(); buf.position(0); short type = bs.readShort(); EndpointI ue = new IceInternal.UnknownEndpointI(type, bs); @@ -110,8 +110,8 @@ public final class EndpointFactoryManager // BasicStream bs = new BasicStream(_instance, true); ue.streamWrite(bs); - java.nio.ByteBuffer buf = bs.prepareRead(); - buf.position(0); + Buffer buf = bs.getBuffer(); + buf.b.position(0); short type = bs.readShort(); return f.read(bs); } @@ -136,7 +136,6 @@ public final class EndpointFactoryManager return f.read(s); } } - return new UnknownEndpointI(type, s); } |