Hi Stefan,
Hi John,
thanks for your answers, this helps me a lot.
@John: you are right, EJB does not bring any advantage in this case. I
will change my classes to simple CDI.
I will write a short blog about this solution after I finished.
Best regards
Ralph
On 12.06.19 07:58, Stefan Miklos
Hi Ralph,
yes this is completely fine, even advisable. You can further extend
this idea to have sessions per keyspace for example if you really
insist, and it could be injectable based on some qualifier ... thats
up to you.
On Wed, 12 Jun 2019 at 11:31, John Sanda wrote:
>
> Hi Ralph,
>
> A sess
Hi Ralph,
A session is intended to be a long-lived, i.e., application-scoped object.
You only need one session per cluster. I think what you are doing with
the @Singleton is fine. In my opinion though, EJB really does not offer
much value when working with Cassandra. I would be inclined to just us
Hi,
I have a question concerning the Cassandra DataStax Java Driver in
combination with Java EE and EJBs.
I have implemented a Rest Service API based on Java EE8. In my
application I have for example a jax-rs rest resource to write data into
cassandra cluster. My first approach was to create