Hi Dharam-

Well, that is because *Apache Geode* ignores the CacheServer groups property
<http://geode.incubator.apache.org/releases/latest/javadoc/org/apache/geode/cache/server/CacheServer.html#setGroups-java.lang.String:A->
[1]
setting then.  The CacheServer.groups property has been deprecated
since *Pivotal
GemFire* 7.0 (based on the Javadoc).

Note, the *Apache Geode* codebase was based on *Pivotal GemFire* 8.1 as of
April 2015 when Geode was submitted to the ASF as an incubator project.

I also assure you that *Spring Data Geode* is properly passing this setting
onto the GemFire API, with this
<https://github.com/spring-projects/spring-data-gemfire/blob/1.0.0.APACHE-GEODE-INCUBATING-RELEASE/src/main/java/org/springframework/data/gemfire/config/xml/CacheServerParser.java#L69-L73>
[2]
to this
<https://github.com/spring-projects/spring-data-gemfire/blob/1.0.0.APACHE-GEODE-INCUBATING-RELEASE/src/main/java/org/springframework/data/gemfire/server/CacheServerFactoryBean.java#L252-L254>
[3]
and finally this
<https://github.com/spring-projects/spring-data-gemfire/blob/1.0.0.APACHE-GEODE-INCUBATING-RELEASE/src/main/java/org/springframework/data/gemfire/server/CacheServerFactoryBean.java#L84>
 [4].

It was undoubtedly naive to ignore the groups property on CacheServer just
because it was *deprecated*.  The value could have been appended to the
Geode groups System property value using a Set without consequence.

Anyway, no matter.  It is a simple matter in *Spring* (XML) config to set
the Geode "groups" (System) property, for instance, like so...

<util:properties id="*geodeProperties*">
 <prop key="name">Example</prop>
 <prop key="mcast-port">0</prop>
 <prop key="log-level">config</prop>
 <prop key="locators">${gemfire.locator.host-port:localhost[10334]}</prop>

* <prop key="groups">GroupOne,GroupTwo,Etc</prop>*
</util:properties>

<gfe:cache properties-ref="*geodeProperties*"/>

Hope this helps!

Cheers,
-John


[1]
http://geode.incubator.apache.org/releases/latest/javadoc/org/apache/geode/cache/server/CacheServer.html#setGroups-java.lang.String:A-
[2]
https://github.com/spring-projects/spring-data-gemfire/blob/1.0.0.APACHE-GEODE-INCUBATING-RELEASE/src/main/java/org/springframework/data/gemfire/config/xml/CacheServerParser.java#L69-L73
[3]
https://github.com/spring-projects/spring-data-gemfire/blob/1.0.0.APACHE-GEODE-INCUBATING-RELEASE/src/main/java/org/springframework/data/gemfire/server/CacheServerFactoryBean.java#L252-L254
[4]
https://github.com/spring-projects/spring-data-gemfire/blob/1.0.0.APACHE-GEODE-INCUBATING-RELEASE/src/main/java/org/springframework/data/gemfire/server/CacheServerFactoryBean.java#L84


On Sun, Nov 20, 2016 at 11:19 PM, Thacker, Dharam <
[email protected]> wrote:

> Hi John,
>
>
>
> It looks like ‘groups’ property is ignored when configured using spring
> xml based configurations,
>
>
>
> *Version* : spring-data-geode:1.0.0.INCUBATING-RELEASE
>
>
>
> *SERVER_LOGS:*
>
>
>
> [info 2016/11/21 12:42:22.864 IST <main> tid=0x1] CacheServer
> Configuration:   port=40404 max-connections=800 max-threads=0
> notify-by-subscription=true socket-buffer-size=32768
> maximum-time-between-pings=60000 maximum-message-count=230000
> message-time-to-live=180 eviction-policy=none capacity=1 overflow
> directory=. groups=[MYGROUP] loadProbe=ConnectionCountProbe
> loadPollInterval=5000 tcpNoDelay=true
>
>
>
>
>
> gfe:cache-server id=*"geodeServer"*
>
>                                          cache-ref=*"geodeCache"*
>
>                                          auto-startup=*"true"*
>
>                                          port=
> *"#{portGenerator.generatePort(40404,40410)}"*
>
>                                          notify-by-subscription=*"true"*
>
>                                          max-connections=
> *"${geode.cache.server.max-connections}"*
>
>                                          max-threads=
> *"${geode.cache.server.max-threads}"*
>
>                                          max-message-count=
> *"${geode.cache.server.max-message-count}"*
>
>                                          groups=*"MYGROUP"*>
>
>                             </gfe:cache-server>
>
>
>
> *FROM GFSH:*
>
>
>
>
>
>
>
> Thanks & Regards,
>
> Dharam Thacker
>
> This email is confidential and subject to important disclaimers and
> conditions including on offers for the purchase or sale of securities,
> accuracy and completeness of information, viruses, confidentiality, legal
> privilege, and legal entity disclaimers, available at
> http://www.jpmorgan.com/pages/disclosures/email
>



-- 
-John
503-504-8657
john.blum10101 (skype)

Reply via email to