metrangia
metrangia

Reputation: 137

Creating a Cassandra Connection Pool with JBoss

I'm new to Cassandra and JBoss, and am trying to create a connection pool. I've searched everywhere and found bits and pieces of information, but I'm still missing something.

I'm not clear on what I need in my standalone file, within the driver element. What should I specify for driver-class and xa-datasource-class?

And, in module..xml, what path should I be using in the resource-root element?

I have these 2 jar files - are they correct?

cassandra-driver-core-2.0.2.jar

cassandra-driver-dse-2.0.2.jar

I'm able to open a connection and execute cql queries from a standalone Java class, but now I need to create a connection pool in JBoss. Any help would be appreciated. Thanks.

Upvotes: 0

Views: 374

Answers (1)

Abhishek Anand
Abhishek Anand

Reputation: 1992

Cassandra driver, itself maintains connection pool (atleast with datastax jars), which is configurable, in the run-time, and also can be configured while making the session.

On top of that cassandra driver even lets you read connection pool status, if you have chosen to do that. So you can create your own monitoring service for connection pool status.

So, not sure, what you are trying to achieve here, pool on top of another pool?

Upvotes: 1

Related Questions