summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/ReferenceFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/IceInternal/ReferenceFactory.java')
-rw-r--r--java/src/IceInternal/ReferenceFactory.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/java/src/IceInternal/ReferenceFactory.java b/java/src/IceInternal/ReferenceFactory.java
index d329b6249a0..30a236394ec 100644
--- a/java/src/IceInternal/ReferenceFactory.java
+++ b/java/src/IceInternal/ReferenceFactory.java
@@ -44,13 +44,14 @@ public final class ReferenceFactory
//
// Create new reference
//
- FixedReference ref = new FixedReference(_instance,
- _communicator,
- ident,
- "", // Facet
- Reference.ModeTwoway,
- false,
- fixedConnection);
+ FixedReference ref = new FixedReference(
+ _instance,
+ _communicator,
+ ident,
+ "", // Facet
+ fixedConnection.endpoint().datagram() ? Reference.ModeDatagram : Reference.ModeTwoway,
+ fixedConnection.endpoint().secure(),
+ fixedConnection);
return updateCache(ref);
}