You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by 上帝已死 <52...@qq.com> on 2016/03/01 02:53:29 UTC

Re: If Apache Ignite's cacheMode is REPLACATED, there will be a delay?

Sorry, I'am chinese.My English is not good.      						                                                                                                                            																																		
192.168.2.232:8080								192.168.1.199:8080																																		       
@Resource(name = "igniteConfiguration")	private IgniteConfiguration
igniteConfiguration;	@SuppressWarnings("rawtypes")	@Resource(name =
"cacheConfiguration")	private CacheConfiguration cacheConfiguration;	
@SuppressWarnings({ "rawtypes", "unchecked" })	@RequestMapping(value =
"/put")	@ResponseBody	public String put() {		Ignite ignite =
Ignition.start(igniteConfiguration);		IgniteCache cache =
ignite.getOrCreateCache(cacheConfiguration);		cache.put("aaa", 123);		return
"ok";	}This is my configuration. I had start a server on 192.168.1.199. Then
I wrote a test on 192.168.2.232.        @Resource(name =
"igniteConfiguration")	private IgniteConfiguration igniteConfiguration;	
@SuppressWarnings("rawtypes")	@Resource(name = "cacheConfiguration")
CacheConfiguration cacheConfiguration;		@Test	@SuppressWarnings({
"rawtypes", "unchecked" })	public void getData() {				Ignite ignite =
Ignition.start(igniteConfiguration);		IgniteCache cache =
ignite.getOrCreateCache(cacheConfiguration);		System.out.println("aaa = " +
cache.get("aaa"));	}The output is : aaa = null



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/If-Apache-Ignite-s-cacheMode-is-REPLACATED-there-will-be-a-delay-tp3195p3275.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: If Apache Ignite's cacheMode is REPLACATED, there will be a delay?

Posted by 上帝已死 <52...@qq.com>.
Sorry, It's my mac's(192.168.2.232.) problem. I change a PC is OK



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/If-Apache-Ignite-s-cacheMode-is-REPLACATED-there-will-be-a-delay-tp3195p3277.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: If Apache Ignite's cacheMode is REPLACATED, there will be a delay?

Posted by 上帝已死 <52...@qq.com>.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/If-Apache-Ignite-s-cacheMode-is-REPLACATED-there-will-be-a-delay-tp3195p3276.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.