File tree 4 files changed +0
-29
lines changed
infinispan-remote/connect-to-infinispan-server/src/main/java/org/infinispan/tutorial/simple/connect
cache-remote/src/main/java/org/infinispan/tutorial/simple/spring/remote
cache-remote-reactor/src/main/java/org/infinispan/tutorial/simple/spring/remote
session-remote/src/main/java/org/infinispan/tutorial/simple/spring/session
4 files changed +0
-29
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import org .infinispan .client .hotrod .RemoteCache ;
4
4
import org .infinispan .client .hotrod .RemoteCacheManager ;
5
- import org .infinispan .client .hotrod .configuration .ClientIntelligence ;
6
5
import org .infinispan .client .hotrod .configuration .ConfigurationBuilder ;
7
6
import org .infinispan .client .hotrod .impl .ConfigurationProperties ;
8
- import org .infinispan .commons .util .OS ;
9
7
import org .infinispan .server .test .core .InfinispanContainer ;
10
8
11
9
/**
@@ -39,12 +37,6 @@ public static final ConfigurationBuilder connectionConfig() {
39
37
.username (USER )
40
38
.password (PASSWORD );
41
39
42
- // ### Docker 4 Mac Workaround. Don't use BASIC intelligence in production
43
- if (OS .getCurrentOs ().equals (OS .MAC_OS ) || OS .getCurrentOs ().equals (OS .WINDOWS )) {
44
- builder .clientIntelligence (ClientIntelligence .BASIC );
45
- }
46
- // ### Docker 4 Mac and Windows Workaround. Don't use BASIC intelligence in production
47
-
48
40
// Make sure the remote cache is available.
49
41
// If the cache does not exist, the cache will be created
50
42
builder .remoteCache (TUTORIAL_CACHE_NAME )
Original file line number Diff line number Diff line change 1
1
package org .infinispan .tutorial .simple .spring .remote ;
2
2
3
- import org .infinispan .client .hotrod .configuration .ClientIntelligence ;
4
3
import org .infinispan .commons .marshall .ProtoStreamMarshaller ;
5
- import org .infinispan .commons .util .OS ;
6
4
import org .infinispan .spring .starter .remote .InfinispanRemoteCacheCustomizer ;
7
5
import org .infinispan .tutorial .simple .connect .TutorialsConnectorHelper ;
8
6
import org .springframework .context .annotation .Bean ;
@@ -26,9 +24,6 @@ public InfinispanRemoteCacheCustomizer configurer() {
26
24
port = TutorialsConnectorHelper .INFINISPAN_CONTAINER .getFirstMappedPort ();
27
25
}
28
26
b .addServer ().host (host ).port (port );
29
- if (OS .getCurrentOs ().equals (OS .MAC_OS ) || OS .getCurrentOs ().equals (OS .WINDOWS )) {
30
- b .clientIntelligence (ClientIntelligence .BASIC );
31
- }
32
27
b .security ().authentication ()
33
28
.username (TutorialsConnectorHelper .USER )
34
29
.password (TutorialsConnectorHelper .PASSWORD );
Original file line number Diff line number Diff line change 1
1
package org .infinispan .tutorial .simple .spring .remote ;
2
2
3
- import org .infinispan .client .hotrod .configuration .ClientIntelligence ;
4
3
import org .infinispan .commons .marshall .ProtoStreamMarshaller ;
5
- import org .infinispan .commons .util .OS ;
6
4
import org .infinispan .spring .starter .remote .InfinispanRemoteCacheCustomizer ;
7
5
import org .springframework .context .annotation .Bean ;
8
6
import org .springframework .context .annotation .Configuration ;
@@ -33,12 +31,6 @@ public InfinispanRemoteCacheCustomizer caches() {
33
31
34
32
// Add marshaller in the client, the class is generated from the interface in compile time
35
33
b .addContextInitializer (new BasquesNamesSchemaBuilderImpl ());
36
-
37
- // #### This is to avoid connectivity issues locally with docker and mac.
38
- // ### Don't use client intelligence basic in production
39
- if (OS .getCurrentOs ().equals (OS .MAC_OS ) || OS .getCurrentOs ().equals (OS .WINDOWS )) {
40
- b .clientIntelligence (ClientIntelligence .BASIC );
41
- }
42
34
};
43
35
}
44
36
}
Original file line number Diff line number Diff line change 1
1
package org .infinispan .tutorial .simple .spring .session ;
2
2
3
- import org .infinispan .client .hotrod .configuration .ClientIntelligence ;
4
3
import org .infinispan .commons .marshall .ProtoStreamMarshaller ;
5
- import org .infinispan .commons .util .OS ;
6
4
import org .infinispan .spring .starter .remote .InfinispanRemoteCacheCustomizer ;
7
5
import org .springframework .context .annotation .Bean ;
8
6
import org .springframework .context .annotation .Configuration ;
@@ -30,12 +28,6 @@ public InfinispanRemoteCacheCustomizer caches() {
30
28
b .remoteCache ("sessions" ).configurationURI (uri );
31
29
// Use protostream marshaller to serialize the sessions with Protobuf
32
30
b .remoteCache ("sessions" ).marshaller (ProtoStreamMarshaller .class );
33
-
34
- // #### This is to avoid connectivity issues locally with docker and mac.
35
- // ### Don't use client intelligence basic in production
36
- if (OS .getCurrentOs ().equals (OS .MAC_OS ) || OS .getCurrentOs ().equals (OS .WINDOWS )) {
37
- b .clientIntelligence (ClientIntelligence .BASIC );
38
- }
39
31
};
40
32
}
41
33
}
You can’t perform that action at this time.
0 commit comments