Commit Graph

575 Commits

Author SHA1 Message Date
John Blum
69bf7ac446 SGF-637 - Improve IndexFactoryBean's resilience and options for handling GemFire IndexExistsExceptions and IndexNameConflictExceptions.
(cherry picked from commit d3b8e58358)
Signed-off-by: John Blum <jblum@pivotal.io>
2017-06-27 00:13:45 -07:00
John Blum
99bbe183cf SGF-475 - Add additional logging to the MappingPdxSerializer.
(cherry picked from commit 6dfd3e7082)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-03-01 16:29:05 -08:00
John Blum
090d49c687 SGF-474 - Fix the NPE in the MappingPdxSerializer
(cherry picked from commit 53a1fc217a)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-02-25 13:10:05 -08:00
John Blum
f205947062 SGF-473 - Fix CI build test failures.
(cherry picked from commit adaf6903d7)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-02-17 01:22:10 -08:00
John Blum
92b56d998a SGF-473 - Allow a Spring-configured ClientCache to be constructed without a Pool.
(cherry picked from commit b385dbc25e)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-02-16 23:23:47 -08:00
John Blum
a73ad7e55a SGF-458 - Enable resolution of GemFire's DistributedSystem and System properties to be overridden in PoolFactoryBean.
(cherry picked from commit 10fadc0d9a)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-01-08 17:42:42 -08:00
John Blum
1c93c97dc8 SGF-457 - Clean up Javadoc warnings. 2016-01-08 17:41:08 -08:00
Oliver Gierke
eaed096f09 SGF-455 - Simplified registration for shared GemfireMappingContext for repositories.
A <gemfire:repositories /> now registers a single bean definition for a GemfireMappingContext that gets wired to the GemfireRepositoryFactoryBean instances registered within the system unless an explicit mapping context is referenced.

The GemfireRepositoryFactoryBean now checks a GemfireMappingContext being registered and rejects to start without one. The same applies to GemfireRepositoryFactory.

Related tickets: SGF-448, SGF-449, SGF-450.
2015-12-16 17:46:30 +01:00
John Blum
1328fa3300 SGF-450 - GemfireRepositoryFactoryBean needs to explicitly register the default GemfireMappingContext when not explicitly defined as a bean in the application's Spring context.
(cherry picked from commit eebe7bb622)
Signed-off-by: John Blum <jblum@pivotal.io>
2015-12-03 19:00:13 -08:00
John Blum
14d42618a1 SGF-449 - GemfireRepositoryFactoryBean.setGemfireMappingContext needs to call RepositoryFactoryBeanSupport.setMappingContext.
(cherry picked from commit 37d41a1ed2)
Signed-off-by: John Blum <jblum@pivotal.io>
2015-12-03 18:59:52 -08:00
John Blum
2f44261527 SGF-448 - GemfireRepositoryConfigurationExtension needs to override the RepositoryConfigurationExtensionSupport postProcess(:BeanDefinitionBuilder, :AnnotationRepositoryConfigurationSource) method.
(cherry picked from commit cf64807b09)
Signed-off-by: John Blum <jblum@pivotal.io>
2015-12-03 18:58:08 -08:00
John Blum
ed01af8012 SGF-447 - Fix Spring Data GemFire due to recent changes to Apache Geode that removed various internal utility classes in favor of external Spring classes. 2015-11-30 12:35:43 -08:00
John Blum
c41c126fcf SGF-442 - Remove incorrect statements about GemFire Java Reflection-based (PDX) Serialization in the SDG Reference Guide.
(cherry picked from commit 195d452fe2)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-19 18:58:24 -07:00
John Blum
7633bfe8f1 SGF-434 - Add a durable GemFire client cache test to assert proper behavior by SDG.
Removed the ClientCacheFactoryBean.readyForEvents() method and moved the logic to onApplicationEvent(..).
Updated the spring-gemfire 1.6 and 1.7 XSD with the new keep-alive attribue on the client-cache element.
Changed the generic signature of the CacheFactoryBean class back to com.gemstone.gemfire.cache.Cache due to the Spring container bean resolution Exception when using JavaConfig in SDG 1.7 with GemFire 8.1 and core Spring Framework 4.1.7.

(cherry picked from commit a458115)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-14 01:42:50 -07:00
John Blum
0fc527e399 SGF-434 - Add a durable GemFire client cache test to assert proper behavior by SDG.
(cherry picked from commit b52a185)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-14 01:15:48 -07:00
John Blum
bb89e2bdb6 SGF-429 - GemfirePersistentProperty considers a BigDecimal property an entity.
Additional changes and refactoring inspired by Spring Data MongoDB custom SimpleTypeHolder.
(cherry picked from commit 2344eb521d)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-05 23:18:15 -07:00
John Blum
590b182ada SGF-429 - GemfirePersistentProperty considers a BigDecimal property an entity.
(cherry picked from commit 6113bfbea1)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-05 23:04:01 -07:00
John Blum
58d172d316 SGF-432 - IndexFactoryBean traps IndexExistsException instead of IndexNameConflictException.
(cherry picked from commit 9cc4b98e35)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-05 23:02:10 -07:00
John Blum
a95b3f6a60 SGF-433 - Fix improper resolution of Spring property placeholders in 'locators' and 'servers' attributes on the '<gfe:pool>' element(s) in Spring XML config.
(cherry picked from commit 1cd2a7f)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-01 19:46:04 -07:00
John Blum
0297180479 SGF-430 - Cleanup test failures on Windows due to incorrect Spring test context configuration resource resolution.
(cherry picked from commit 7462d7f607)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-09-10 13:57:35 -07:00
John Blum
8d0ed421a6 SGF-419 - Documentation error on page 22 in the Spring Data GemFire Reference PDF.
(cherry picked from commit ff290a442e)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-12 00:14:36 -07:00
John Blum
0d7a2fe211 SGF-425 - Allow early initialization and re-initialization of LazyWiringDeclarableSupport instances.
Deprecated org.springframework.data.gemfire.WiringDeclarableSupport in favor of LazyWiringDeclarableSupport and modified LazyWiringDeclarableSupport to 'release' the BeanFactory reference.
(cherry picked from commit 29a169a10c)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-10 23:42:58 -07:00
John Blum
e37004facf SGF-425 - Allow early initialization and re-initialization of LazyWiringDeclarableSupport instances.
Fixed test failures associated with changes to LazyWiringDeclarableSupport passing the ApplicationContext onApplicationEvents (ContextRefreshedEvent) directly rather than the ApplicationContext's ConfigurableListableBeanFactory required by BeanConfigurerSupport.
(cherry picked from commit be6a3aac3e)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-10 23:42:48 -07:00
John Blum
5b7aa8ad59 SGF-425 - Allow early initialization and re-initialization of LazyWiringDeclarableSupport instances.
(cherry picked from commit 93280bf204)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-10 23:42:38 -07:00
John Blum
e90874f1d4 SGF-423 - Handle improper ClassCastException thrown from SDG's Function Execution interface and annotation-based support when a GemFire Function throws an Exception.
Additional refactoring and added serveral unit tests.
(cherry picked from commit a806f1540e)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-10 23:42:26 -07:00
John Blum
17e41723b5 SGF-423 - Handle improper ClassCastException thrown from SDG's Function Execution interface and annotation-based support when a GemFire Function throws an Exception.
Initial refactoring and code cleanup.
(cherry picked from commit bb8ce682c6)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-10 23:42:17 -07:00
John Blum
d6b0bd87f8 SGF-409 - Modify the GemfireDataSourcePostProcessor (basis for <gfe:datasource>) to not assume a GemFire Server was configured and bootstrapped with Spring and subsequently that the SDG ListRegionsOnServerFunction was registered.
Fixed up the GemFireDataSourceUsingNonSpringConfiguredGemFireServerIntegrationTest to customize the classpath in order to exlude the Spring Data GemFire dependency from the non-Spring-configured GemFire Server's classpath thereby removing any presence of the ListRegionsOnServerFunction GemFire Function; made use of the com.gemstone.gemfire.distributed.ServerLauncher class for launching the non-Spring-configured GemFire Server and finally, wrote the gemfire-datasource-integration-test-cache.xml as an cache.xml file to the non-Spring-configured GemFire Server's working directory to properly configure the GemFire Server.
(cherry picked from commit 65ab1c7dcd)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-20 15:35:13 -07:00
John Blum
a21cb18c24 SGF-409 - Modify the GemfireDataSourcePostProcessor (basis for <gfe:datasource>) to not assume a GemFire Server was configured and bootstrapped with Spring and subsequently that the SDG ListRegionsOnServerFunction was registered.
Refactored the GemfireDataSourcePostProcessorTest class test cases based on the new implementation of the GemfireDataSourcePostProcessor BeanFactoryPostProcessor, which uses the GemFire internal GetRegionsFunction GemFire Function as a fallback when the ListRegionsOnServerFunction has not been registered or is not available.  In addition, added 2 integration tests to test a Spring Data GemFire ClientCache connecting to a Spring-configured GemFire Server and non-Spring-configured GemFire Server asserting that client PROXY Region beans are appropriately created in the Spring ApplicationContext.
(cherry picked from commit 52e4be4240)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-20 15:34:56 -07:00
John Blum
a339b64387 SGF-409 - Modify the GemfireDataSourcePostProcessor (basis for <gfe:datasource>) to not assume a GemFire Server was configured and bootstrapped with Spring and subsequently that the SDG ListRegionsOnServerFunction was registered.
Adding unit tests for the GemfireDataSourcePostProcessor class.
(cherry picked from commit 0055a79a5d)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-20 15:34:41 -07:00
John Blum
be6df696e5 SGF-409 - Modify the GemfireDataSourcePostProcessor (basis for <gfe:datasource>) to not assume a GemFire Server was configured and bootstrapped with Spring and subsequently that the SDG ListRegionsOnServerFunction was registered. 2015-07-20 15:34:10 -07:00
John Blum
4f38d1a366 SGF-415 - Remove the ClientCacheFactory Pool configuration in ClientCacheFactoryBean. 2015-07-20 15:32:08 -07:00
John Blum
28c799a177 SGF-414 - Resolve incompatibility between the DistributedSystem created by the PoolFactoryBean and the DistributedSystem resolved by the ClientCacheFactoryBean when SSL is configured. 2015-07-10 17:16:27 -07:00
John Blum
98337e0044 SGF-407 - Modify the MappingPdxSerializer to allow for extensibility. 2015-06-02 15:25:19 -07:00
John Blum
ccc4343c4b SGF-400 - Enable the ability to set the ClassLoader used by the Spring ApplicationContext created in the SpringContextBootstrappingInitializer for loading bean definition classes and resolving resources.
(cherry picked from commit b9881dfad9)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-04-18 11:42:40 -07:00
John Blum
0146e08e92 SGF-396 - Enable support for variable Locator and Server endpoints on a SDG GFE Pool bean definition in a Spring Context.
Removed the SDG XSD schema restriction requiring the use of at least 1 <gfe:locator> of <gfe:server> sub-element on the <gfe:pool> element.  Also added a default Locator endpoint on localhost listening on the Locators default port of 10334 when no Locator or Server endpoints were specified, either by way of explicit use of the 'locators' or 'servers' attribute or a corresponding <gfe:locator> or <gfe:server> sub-element.
(cherry picked from commit 13b961c8138b2aa2555f40d0230e65b25b494a24)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-04-16 13:19:10 -07:00
John Blum
d9b393b986 SGF-399 - Fix incorrect XSD appinfo annotation, expected 'type' attribute value on the 'error-handler' attribute of the 'cq-listener-container' element.
(cherry picked from commit f27a9e9cf6)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-04-14 15:06:43 -07:00
John Blum
5cdbc9d0c1 SGF-399 - Fix incorrect XSD appinfo annotation, expected 'type' attribute value on the 'error-handler' attribute of the 'cq-listener-container' element.
(cherry picked from commit 0e21021cf6)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-04-14 15:06:33 -07:00
John Blum
6f45bdddca SGF-399 - Fix incorrect XSD appinfo annotation, expected 'type' attribute value on the 'error-handler' attribute of the 'cq-listener-container' element.
(cherry picked from commit 847283a7e4)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-04-14 15:06:24 -07:00
John Blum
e81c8c1233 SGF-396 - Enable support for variable Locator and Server endpoints on a SDG GFE Pool bean definition in a Spring Context.
(cherry picked from commit eaf234b55cfa915760a2c3025aef6b3c2946ee48)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-04-13 22:33:51 -07:00
John Blum
79bec8522d SGF-395 - Allow Spring JavaConfig @Configuration classes to be registered and used to configure the (AnnotationConfig)ApplicationContext created by the SpringContextBootstrappingInitializer.
(cherry picked from commit c492a94a4c05b4697aa0a39920a48dd283e0c27e)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-04-13 22:19:09 -07:00
Oliver Gierke
0551b43d85 SGF-386 - Polish reference docs before release.
Updated copyright years. Fall back to locally available Spring Data Commons reference docs as the remote variant doesn't seem to work currently. Included reference to the return type listing appendix from Spring Data Commons.
2015-03-23 11:22:28 +01:00
John Blum
80854b9b97 SGF-385 - Local region does remote put in addition to local put in client cache. 2015-03-22 22:22:56 -07:00
John Blum
e9251afa1d SGF-384 - Issue with partitioned-region-template when persistence is enabled. 2015-03-19 10:48:15 -07:00
John Blum
e514b004d8 SGF-381 - Enable RegionFactoryBean to respect the Data Policy specified on a nested or referenced RegionAttributes bean definition.
Added additional test cases to test and cover different combinations of data-policy and persistent attribute settings with explicit RegionFactoryBean and nested RegionAttributesFatoryBean 'bean' definitions in Spring XML configuration meta-data.
2015-03-12 17:25:42 -07:00
John Blum
ac8ff3750c SGF-382 - Add logging to the SpringContextBootstrappingInitializer init method to capture any Spring context/GemFire errors on startup. 2015-03-11 13:32:56 -07:00
John Blum
3063046e53 SGF-381 - Enable RegionFactoryBean to respect the Data Policy specified on a nested or referenced RegionAttributes bean definition. 2015-03-10 14:25:16 -07:00
John Blum
bb38cb42f8 SGF-374 - Specifying a disk-store on a GatewayHub forces the GatewayHub to be persistent.
Following up to SGF-374 with additional test criteria to assert that a GatewayHub marked as 'persistent' does not need to explicity declare a 'DiskStore', that the GatewayHub will use the 'DEFAULT' DiskStore instead.
2015-02-24 18:54:01 -08:00
John Blum
eade5d8a39 SGF-378 - SDG completely ignores the 'socket-read-timeout' attribute on the Gateway element nested in a GatewayHub. 2015-02-24 18:14:45 -08:00
John Blum
d42d5b57fe SGF-375 - The <gfe:gateway-hub> XML namespace element is missing the 'max-time-between-pings' attribute. 2015-02-24 14:47:12 -08:00
John Blum
a5b743989b SGF-374 - Specifying a disk-store on a GatewayHub forces the GatewayHub to be persistent. 2015-02-24 14:21:22 -08:00