Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 192300

Re: Some more Client/Server Gemfire Developement Queries

$
0
0

Thanks william,

 

I think the issue is related to mere configuration, since quick start examples have standalone/command-line based configuration for xml and other files and I am doing the same through a web app deployed on tomcat and client on another tomcat on another machine. I have used the locator replaced with server and vice versa, but it did not work. Through one of thepost in communities, I came to know that for client/server model both the locators should be configured for both the systems communicating with each other. So I did two things

 

1. in the server's java file's loadGemfireData() we instantiate the cache using

      .set("locators", "server_IP[55521], client_IP[55522]")

.set()//log entry

.set()//mcast 0

.set()//cache xml file entry

.create();

 

2. In the client's java file, I get clientCache instance normally using xml file with client xml containing the "locator" in the pool along with port 55522 (same as client_IP in the server's java file above)

 

but still I m not able to obtain the region object, it is still empty. Since I m doing it through jsp, there is no error except the page has some welcome message.

 

If you see my previous posts,it would have been clear that I wanted to deploy a maven web application with only Gemfire 7.0 dependency in it and one java file to load cache and put data to gemfire cache region, one xml for config cache server which is working fine.

I have another maven web app with client xm, java client file to fetch data from gemfire region and a jsp to display fetched data (This is deployed on tomcat on another machine in same network). And  later on exposing the same data through web services.

 

 

Now, I am in India, new delhi and my onshore team (client in US) is interested in buying gemfire but only when I create  this POC and show them some positives of Gemfire, based on which they will decide whether to buy or not . Decision will be taken by them only, ifyou think you or any sales/development guy can help me in this,it is welcomed, coz being a developer, only my recommendations will decide the gemfire future at my company.

 

Regarding questions.

1. I did not find how to configure/ start a locator whether co-located or not in my web app? please help me config and start it

 

 

Thanks,

 

Ahmar


Viewing all articles
Browse latest Browse all 192300

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>