Skip to content

Commit 9ddb3ba

Browse files
authored
Merge pull request #843 from BenjaminPerryRoss/geode-store-update
Update geode-store version
2 parents c00658c + 448adee commit 9ddb3ba

File tree

5 files changed

+7
-41
lines changed

5 files changed

+7
-41
lines changed

config/tomcat.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ redis_store:
4040
timeout: 2000
4141
connection_pool_size: 2
4242
geode_store:
43-
version: 0.+
44-
repository_root: https://repo.spring.io/ext-release-local/geode-store
43+
version: 1.13.+
44+
repository_root: https://java-buildpack-tomcat-gemfire-store.s3-us-west-2.amazonaws.com

docs/container-tomcat.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ By default, the Tomcat instance is configured to store all Sessions and their da
9292
### Redis
9393
To enable Redis-based session replication, simply bind a Redis service containing a name, label, or tag that has `session-replication` as a substring.
9494

95-
### Pivotal Cloud Cache
96-
To enable session state caching on 'Pivotal Cloud Cache', bind to a 'Pivotal Cloud Cache' service instance who's name either ends in `-session-replication` or is tagged with `session-replication`.
95+
### Tanzu GemFire for VMs
96+
To enable session state caching on Tanzu GemFire for VMs, bind to a Tanzu GemFire service instance whose name either ends in `-session-replication` or is tagged with `session-replication`.
9797

9898
Service instances can be created with a tag:
9999

lib/java_buildpack/container/tomcat/tomcat_geode_store.rb

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,18 @@ def supports?
6363
KEY_LOCATORS = 'locators'
6464
KEY_USERS = 'users'
6565

66-
SESSION_MANAGER_CLASS_NAME = 'org.apache.geode.modules.session.catalina.Tomcat8DeltaSessionManager'
66+
SESSION_MANAGER_CLASS_NAME = 'org.apache.geode.modules.session.catalina.Tomcat9DeltaSessionManager'
6767
REGION_ATTRIBUTES_ID = 'PARTITION_REDUNDANT_HEAP_LRU'
6868
CACHE_CLIENT_LISTENER_CLASS_NAME =
6969
'org.apache.geode.modules.session.catalina.ClientServerCacheLifecycleListener'
7070
SCHEMA_URL = 'http://geode.apache.org/schema/cache'
7171
SCHEMA_INSTANCE_URL = 'http://www.w3.org/2001/XMLSchema-instance'
7272
SCHEMA_LOCATION = 'http://geode.apache.org/schema/cache http://geode.apache.org/schema/cache/cache-1.0.xsd'
7373
LOCATOR_REGEXP = Regexp.new('([^\\[]+)\\[([^\\]]+)\\]').freeze
74-
FUNCTION_SERVICE_CLASS_NAMES = [
75-
'org.apache.geode.modules.util.CreateRegionFunction',
76-
'org.apache.geode.modules.util.TouchPartitionedRegionEntriesFunction',
77-
'org.apache.geode.modules.util.TouchReplicatedRegionEntriesFunction',
78-
'org.apache.geode.modules.util.RegionSizeFunction'
79-
].freeze
8074

8175
private_constant :FILTER, :KEY_LOCATORS, :KEY_USERS, :SESSION_MANAGER_CLASS_NAME, :REGION_ATTRIBUTES_ID,
8276
:CACHE_CLIENT_LISTENER_CLASS_NAME, :SCHEMA_URL, :SCHEMA_INSTANCE_URL, :SCHEMA_LOCATION,
83-
:LOCATOR_REGEXP, :FUNCTION_SERVICE_CLASS_NAMES
77+
:LOCATOR_REGEXP
8478

8579
def cluster_operator?(user)
8680
user['username'] == 'cluster_operator' || user['roles'] && (user['roles'].include? 'cluster_operator')
@@ -94,20 +88,6 @@ def add_client_cache(document)
9488
'version' => '1.0'
9589

9690
add_pool client_cache
97-
add_function_service client_cache
98-
end
99-
100-
def add_functions(function_service)
101-
FUNCTION_SERVICE_CLASS_NAMES.each do |function_class_name|
102-
function = function_service.add_element 'function'
103-
class_name = function.add_element 'class-name'
104-
class_name.add_text(function_class_name)
105-
end
106-
end
107-
108-
def add_function_service(client_cache)
109-
function_service = client_cache.add_element 'function-service'
110-
add_functions function_service
11191
end
11292

11393
def add_listener(server)

spec/fixtures/container_tomcat_geode_store_cache_client_after.xml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,4 @@
44
<locator host='some-locator' port='some-port'/>
55
<locator host='some-other-locator' port='some-other-port'/>
66
</pool>
7-
<function-service>
8-
<function>
9-
<class-name>org.apache.geode.modules.util.CreateRegionFunction</class-name>
10-
</function>
11-
<function>
12-
<class-name>org.apache.geode.modules.util.TouchPartitionedRegionEntriesFunction</class-name>
13-
</function>
14-
<function>
15-
<class-name>org.apache.geode.modules.util.TouchReplicatedRegionEntriesFunction</class-name>
16-
</function>
17-
<function>
18-
<class-name>org.apache.geode.modules.util.RegionSizeFunction</class-name>
19-
</function>
20-
</function-service>
217
</client-cache>

spec/fixtures/container_tomcat_geode_store_context_after.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
~ limitations under the License.
1717
-->
1818
<Context allowLinking='true'>
19-
<Manager className='org.apache.geode.modules.session.catalina.Tomcat8DeltaSessionManager' enableLocalCache='true' regionAttributesId='PARTITION_REDUNDANT_HEAP_LRU'/>
19+
<Manager className='org.apache.geode.modules.session.catalina.Tomcat9DeltaSessionManager' enableLocalCache='true' regionAttributesId='PARTITION_REDUNDANT_HEAP_LRU'/>
2020
</Context>

0 commit comments

Comments
 (0)