3

I am not able to find Apache Ignite dependency in Quarkus or any example where someone is using Apache Ignite with Quarkus. If Quarkus is not currently supporting Apache Ignite then what should be the alternative?

2 Answers2

2

I used this dependency for starting Apache Ignite server using Quarkus.

`

<dependency>
    <groupId>org.apache.ignite</groupId>
    <artifactId>ignite-core</artifactId>
    <version>2.7.6</version>
</dependency>

`

You can Start server by using this line of code.

`

Ignite ignite = Ignition.start();

And you can stop server by using this line of code

Ignition.stop(true);

`

  • 2
    This works as a non-JEE component :), you need to manage instantiation/destruction of your objects by yourself. When you say supports it means that can be injected into framework standards and lifecycle. – iabughosh Feb 04 '20 at 11:27
1

You can manage ignite by your self. By using CDI factory classes.

// Factory class
@Produces
public Ignite createIgnite(){
    return Ignition.start();
}

// Inject in other class
@Inject
private Ignite ignite;

PereTang
  • 11
  • 2
  • 3