ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Magda <dma...@apache.org>
Subject Re: How to create a compute tasks which uses Cache and transaction?
Date Tue, 06 Jun 2017 06:27:26 GMT
Hello Khurram,

I don’t have such a sample at hands but basically all you need to do is the following:
* mark you Java task implementation (IgniteCallable, IgniteRunnable or ComputeTask) using
@ComputeTaskName annotation.
* create a JAR file that will contain the task class and add the jar to the server nodes classpath.
Put it under {ignite_release}/libs folder if you use ignite.sh file to start a node.
* use the REST API shared by Dmtriy to trigger the task.


> On Jun 5, 2017, at 3:45 AM, khurram <khurram.baig@bookmyshow.com> wrote:
> Hi,
> Can you share some sample class for this? There's no such sample in
> examples.
> Thanks and regards,
> Khurram Baig
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-create-a-compute-tasks-which-uses-Cache-and-transaction-tp13339p13365.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message