Re: Ingite node in SpringBoot App

2019-12-03 Thread Ilya Kasnacheev
Hello! I've re-checked your case, and I think it's due to the known issue https://issues.apache.org/jira/browse/IGNITE-11161 This is because of incorrect default in Thin Client. You need to change the following: ClientConfiguration cfg = new ClientConfiguration().setAddresses(HOST + ":" + PORT2)

Re: Ingite node in SpringBoot App

2019-10-30 Thread Ilya Kasnacheev
Hello! For me, it looks as follows: ~/Downloads/spring-boot/ignite-client% mvn spring-boot:run [INFO] Scanning for projects... [INFO] [INFO] -< com.gpc.rpm:ignite-client >-- [INFO] Building ignite-client 0.0.1-SNAPSHOT [INFO] ---

Re: Ingite node in SpringBoot App

2019-10-29 Thread niamin
I am running from my IDE and i can confirm that it runs. Below are some output from console: 2019-10-27 17:09:13.172 INFO 8601 --- [ange-worker-#38] o.a.i.i.p.cache.GridCacheProcessor : Finish proxy initialization, cacheName=FOO, localNodeId=bf4963b5-8a84-4c66-8709-23b043c4f9bd 2019-10-27 1

Re: Ingite node in SpringBoot App

2019-10-28 Thread Ilya Kasnacheev
Hello! I don't think that IgniteClientStarter is called at all, since I have added debug logging to it, but it doesn't print anything. Are you sure that it runs? Regards, -- Ilya Kasnacheev пт, 25 окт. 2019 г. в 16:19, niamin : > The is no error rather failed use case. I expected the followi

Re: Ingite node in SpringBoot App

2019-10-25 Thread niamin
The is no error rather failed use case. I expected the following statement to be a cache hit: ARInvoice arInvoice = clientCache.get(arInvoiceId); And subsequently, the following statement to be printed on console: System.out.println("retrieved deserialized successfully from cache " + arInvoice

Re: Ingite node in SpringBoot App

2019-10-24 Thread Ilya Kasnacheev
Hello! I start ignite-client but it never does anything, and in thread dump I don't see any relevant threads. Can you perhaps make the error more apparent? I have trouble understanding your scenario. You can start client node (by setting cfg.clientMode=true) to avoid having cache data locally.

Re: Ingite node in SpringBoot App

2019-10-23 Thread niamin
Update: I updated IgniteClientStarter.java to use Ignite instead of IgniteClient. Now I can see that the 'new' node joins the cluster and starts cache with mode=PARTITIONED. Also cache fetch is successful. This is still not optimal as I would like to use the 'new' node in client mode to avoid loadi

Re: Ingite node in SpringBoot App

2019-10-22 Thread niamin
1. Run the IgniteCacheLoader project. This should start an Ignite node with the cache named FOO populated with 100 entries. The executeTransaction() method within IgniteCacheLoader5.java validates that a fetch operation works successfully. 2. Run the ignite-client project in parallel. However, the

Re: Ingite node in SpringBoot App

2019-10-22 Thread Ilya Kasnacheev
Hello! Can you please also supply me with steps to reproduce? What do I have to run and in which order? Because I don't see any strange behavior yet. Regards, -- Ilya Kasnacheev вт, 22 окт. 2019 г. в 17:50, niamin : > Here is the link to the dependency. You will need to add to drop it to your

Re: Ingite node in SpringBoot App

2019-10-22 Thread niamin
Here is the link to the dependency. You will need to add to drop it to your local maven repo at the desired directory: https://drive.google.com/open?id=1z9TexorvaoQhhDVJp5YlUM6z6eQm32iW -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ingite node in SpringBoot App

2019-10-22 Thread Ilya Kasnacheev
Hello! Unfortunately I'm not able to run it, as I'm getting [ERROR] Failed to execute goal on project IgniteCacheLoader: Could not resolve dependencies for project com.gpc.rpm:IgniteCacheLoader:jar:0.0.1-SNAPSHOT: Could not find artifact com.gpc.rpm:ignite-bo:jar:0.0.1-SNAPSHOT -> [Help 1] Maybe

Re: Ingite node in SpringBoot App

2019-10-22 Thread niamin
Links to the client and the server project: https://drive.google.com/open?id=1QhVjgtwfJ_9UTj4Qkquj1pWnRX_0Fsa4 https://drive.google.com/open?id=1fD5dPy3hvaC4LaYHHIHHgr92mS7eiyUc -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ingite node in SpringBoot App

2019-10-22 Thread Ilya Kasnacheev
Hello! You can share a link to the file. This way, everybody can look. Regards, -- Ilya Kasnacheev вт, 22 окт. 2019 г. в 00:12, niamin : > Unable to upload since the projects are larger than 5 MB. Can you share > your > google id? > > Thanks, > Naushad > > > > > > -- > Sent from: http://apach

Re: Ingite node in SpringBoot App

2019-10-21 Thread niamin
Unable to upload since the projects are larger than 5 MB. Can you share your google id? Thanks, Naushad -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ingite node in SpringBoot App

2019-10-21 Thread Ilya Kasnacheev
Hello! Can you publish a complete Spring reproducer project? The only thing I have noticed outright is that you call load() before the app (and Ignite) is started. Regards, -- Ilya Kasnacheev пт, 18 окт. 2019 г. в 23:51, niamin : > Looks like it is something with the using ARInvoiceId as key

Re: Ingite node in SpringBoot App

2019-10-18 Thread niamin
Looks like it is something with the using ARInvoiceId as key. All the other combinations of key/value(String/String, String/ARInovice) can be retrieved from thin client. I also serialized the ARInvoiceId object to a file from client project and was able to to deserialize successfully from the serve

Re: Ingite node in SpringBoot App

2019-10-18 Thread niamin
Looks like it is something with the using ARInvoiceId as key. All the other combinations of key/value(String/String, String/ARInovice) can be retrieved from thin client. I also serialized the ARInvoiceId object to a file from client project and was able to to deserialize successfully from the serve

Re: Ingite node in SpringBoot App

2019-10-18 Thread niamin
Thanks! That worked. Now when I try to fetch object using thin client from a seperate process I get no object. However, when I fetch object using the same server process I get object. Difference on fetching object is the usage of Ignite or IgniteClient. Attached is the client driver. IgniteClien

Re: Ingite node in SpringBoot App

2019-10-18 Thread Evgeniy Rudenko
This happens because you create your node inside try () statement. So it is being stopped as soon as try section ends. If you want to keep it active change code to try { Ignite ignite = Ignition.start("example-ignite.xml"); On Fri, Oct 18, 2019 at 4:35 PM niamin wrote: > springbeans.zip >

Re: Ingite node in SpringBoot App

2019-10-18 Thread niamin
springbeans.zip Here you go. I've tried with @PostConstruct and EventListener but in both occasions Ignite engine stops immediately after application bootstrap with the following: [09:32:03] Ignite node stopped OK [upti

Re: Ingite node in SpringBoot App

2019-10-18 Thread Evgeniy Rudenko
Can you share code of your Bean to check? On Thu, Oct 17, 2019 at 10:11 PM niamin wrote: > I've created a SpringBoot App that includes code to start an Ignite > standalone node and populates a cache. The logic is wrapped in a > PostConstruct method on a Bean. However Ignite server stops as soon

Ingite node in SpringBoot App

2019-10-17 Thread niamin
I've created a SpringBoot App that includes code to start an Ignite standalone node and populates a cache. The logic is wrapped in a PostConstruct method on a Bean. However Ignite server stops as soon as app returns from the method to start Ignite server and populate cache. I would like to be able