-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-299 Add Spring Session WAR sample app
- Add Spring Session sample app in module `spring-session-demo-war` - Add documentation to reference guide
- Loading branch information
Showing
24 changed files
with
628 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+26.8 KB
coherence-spring-docs/src/main/asciidoc/images/spring-session-demo-war.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...mo-app/src/main/java/com/oracle/coherence/spring/samples/session/config/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
/* | ||
* Copyright (c) 2021, Oracle and/or its affiliates. | ||
* Copyright (c) 2021, 2024, Oracle and/or its affiliates. | ||
* | ||
* Licensed under the Universal Permissive License v 1.0 as shown at | ||
* https://oss.oracle.com/licenses/upl. | ||
*/ | ||
|
||
/** | ||
* Contains Security Configuration. | ||
* Contains Spring Configuration classes. | ||
*/ | ||
package com.oracle.coherence.spring.samples.session.config; |
2 changes: 1 addition & 1 deletion
2
...src/main/java/com/oracle/coherence/spring/samples/session/CoherenceServerApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...les/spring-session-demo/spring-session-demo-server/src/main/resources/application-pof.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
coherence: | ||
sessions: | ||
server: | ||
- name: default | ||
config: "coherence-cache-config-pof.xml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ coherence: | |
server: | ||
- name: default | ||
config: "coherence-cache-config.xml" | ||
spring: | ||
session: | ||
store-type: none |
37 changes: 37 additions & 0 deletions
37
...session-demo/spring-session-demo-server/src/main/resources/coherence-cache-config-pof.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Copyright (c) 2024, Oracle and/or its affiliates. | ||
Licensed under the Universal Permissive License v 1.0 as shown at | ||
https://oss.oracle.com/licenses/upl. | ||
--> | ||
|
||
<cache-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://xmlns.oracle.com/coherence/coherence-cache-config" | ||
xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-cache-config coherence-cache-config.xsd"> | ||
<defaults> | ||
<serializer>pof</serializer> | ||
</defaults> | ||
|
||
<caching-scheme-mapping> | ||
<cache-mapping> | ||
<cache-name>*</cache-name> | ||
<scheme-name>dist-default</scheme-name> | ||
</cache-mapping> | ||
</caching-scheme-mapping> | ||
|
||
<caching-schemes> | ||
<distributed-scheme> | ||
<scheme-name>dist-default</scheme-name> | ||
<backing-map-scheme> | ||
<local-scheme/> | ||
</backing-map-scheme> | ||
<autostart>true</autostart> | ||
</distributed-scheme> | ||
|
||
<proxy-scheme> | ||
<service-name>ExtendTcpCacheService</service-name> | ||
<autostart>true</autostart> | ||
</proxy-scheme> | ||
</caching-schemes> | ||
|
||
</cache-config> |
25 changes: 25 additions & 0 deletions
25
samples/spring-session-demo/spring-session-demo-server/src/main/resources/pof-config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Copyright (c) 2024, Oracle and/or its affiliates. | ||
Licensed under the Universal Permissive License v 1.0 as shown at | ||
https://oss.oracle.com/licenses/upl. | ||
--> | ||
|
||
<pof-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://xmlns.oracle.com/coherence/coherence-pof-config" | ||
xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-pof-config coherence-pof-config.xsd"> | ||
<user-type-list> | ||
<include>coherence-pof-config.xml</include> | ||
<user-type> | ||
<type-id>2001</type-id> | ||
<class-name>org.springframework.session.MapSession</class-name> | ||
<serializer> | ||
<class-name>com.oracle.coherence.spring.session.serialization.pof.MapSessionPofSerializer</class-name> | ||
</serializer> | ||
</user-type> | ||
<user-type> | ||
<type-id>4000</type-id> | ||
<class-name>com.oracle.coherence.spring.session.SessionUpdateEntryProcessor</class-name> | ||
</user-type> | ||
</user-type-list> | ||
</pof-config> |
Oops, something went wrong.