Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2EB7618B75 for ; Fri, 29 Jan 2016 22:39:15 +0000 (UTC) Received: (qmail 29941 invoked by uid 500); 29 Jan 2016 22:39:12 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 29904 invoked by uid 500); 29 Jan 2016 22:39:12 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 29894 invoked by uid 99); 29 Jan 2016 22:39:12 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2016 22:39:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 21533180546 for ; Fri, 29 Jan 2016 22:39:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.001 X-Spam-Level: *** X-Spam-Status: No, score=3.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=bestdata-be.20150623.gappssmtp.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Dv61ANsqCnFO for ; Fri, 29 Jan 2016 22:38:58 +0000 (UTC) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 15AED20426 for ; Fri, 29 Jan 2016 22:38:58 +0000 (UTC) Received: by mail-wm0-f48.google.com with SMTP id l66so73063806wml.0 for ; Fri, 29 Jan 2016 14:38:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bestdata-be.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xBrduVtgdUSMAwH1Lkex6Szz5qXG98BPkF+cY9h2ZoY=; b=JhsneIt2AXIyk4l7K/d+YjnMijdaLRqZGGCVQOwRhmm90hodmSZZVdk7mmIVguMe1d KSj7gljRsQ+m+qGMazyQwkqBWGzlJL0AmukjfQpijB+1glTCx11ghQU+o8Tif80LJezs pqzuPzdC/q3rnbn60AaVNtITwgXJTqTAuK8nwuK5Agg7YLkndFQvbT7pE4UrRwVP6QUj JGtfIStXTs69p4KQjYtk96N7Z9hcpdn6BDY7odIM1MtSPVoZxCpbiNg3CNBo/U5rpr9w 9pDChNYRzdOV/AbJKcfzhcqV4Z4wv+ir0oYAc+IVVeN2fGSj1pO2r22Q4zZILI7Ahiky VFqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=xBrduVtgdUSMAwH1Lkex6Szz5qXG98BPkF+cY9h2ZoY=; b=jA8tdwkcLryc/saUlUqaaoStIO9wV7u+7iVudqguM+JeAYYoW4tPqIhYSnZBRjvxYm qlgsbNKGbI5f2Y82NKvBFOWYmLBjegx4khixeR4dyE02JIfsKC8pxjv9s8JR7Ps/Dv0j h/3LT5AAtlRC0RYDjozHX9UcHGqA/Q1J8ELmgGeEU9E13oIOjso+Jr3Rc8ADHKbpG6+U 5kkXurkeq2t9Hez0eOZ5RWFK2GgDdgBnetc2MIFxiXNH2Ur9WXEuIToCPVFdpn4hWbxD 6kXm7jo+4k5+HQbRlBpZL6K4h4PXaNJ6KGqigbcqjSlDmXfjv3L8AuJPMG+Ipm1FRGem DrSw== X-Gm-Message-State: AG10YOQmFDpZYbEmywy9ZYWql5X6hU+8BftjseLwymCauKUsSUiUsN3yUr3azcIS4c/GFQoAI4ZG8vjZdhiYn64U MIME-Version: 1.0 X-Received: by 10.28.174.77 with SMTP id x74mr10654062wme.99.1454107131016; Fri, 29 Jan 2016 14:38:51 -0800 (PST) Received: by 10.28.186.85 with HTTP; Fri, 29 Jan 2016 14:38:50 -0800 (PST) In-Reply-To: References: <0CAABBF51E85A14DBEDFE47F57D42485261A3BE4@MISOUT7MSGUSRCC.ITServices.sbc.com> Date: Fri, 29 Jan 2016 23:38:50 +0100 Message-ID: Subject: Re: Cassandra driver class From: Corry Opdenakker To: "user@cassandra.apache.org" Content-Type: multipart/alternative; boundary=001a114443440292c8052a80b33e --001a114443440292c8052a80b33e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Fully correct Steve, it is a source of confusion an having a standard pool at app/driver level will work as good as the jee solution, but just like the cql foresees an easy developer entry for cassandra because it is similar to sql, the jee datasource could do the same in front of the middleware audience. When I currently would like to convince my customers to give cassandra a try, then Im sure that several tech decission makers will say that the lack of a standard jee datasource impl is strange and will raise some concerns and influence the first perception and landing of the product. This while in one way it makes sence that there is no standard jee datasource solution present. Seems to be indeed a topic for the java driver. Op vrijdag 29 januari 2016 heeft Steve Robenalt het volgende geschreven: > It's probably a source of some confusion that in the JEE world, the drive= r > isn't pooled, but the data source is. Since the Java Driver for Cassandra > includes the pooling, there's no need for a JEE data source on top of it. > This also means that the Java Driver for Cassandra isn't a one-for-one > exchange with a JDBC driver. I'm not sure if this same level of confusion > occurs with other language drivers for Cassandra. > > BTW, as Alex suggested earlier in the thread, this discussion should > probably be moved to the Java Driver mailing list. > > Steve > > On Fri, Jan 29, 2016 at 1:02 PM, Jack Krupansky > wrote: > >> Unfortunately, somebody is likely going to need to educate us in the >> Cassandra community as to what a JBOSS VDB and TEIID really are. For now= , >> our response will probably end up being that you should use the Java Dri= ver >> for Cassandra, bypassing any JBOSS/VDB/TEIID support, for now. That TEII= D >> link above may shed some light. Otherwise, you'll probably have to ping = the >> TEIID community as far as how to configure JBOSS/TEIID. We're here to >> answer questions about Cassandra itself. >> >> -- Jack Krupansky >> >> On Fri, Jan 29, 2016 at 3:42 PM, Corry Opdenakker > > wrote: >> >>> What about this cassandra specific howto explained in a recent jboss do= c? >>> >>> https://docs.jboss.org/author/display/TEIID/Cassandra+Data+Sources?_ssc= c=3Dt >>> >>> Im also searching for the real recommended way of connecting to a >>> cassandra db from a jee server, but I didnt found any standard document= ed >>> solution yet. was a bit surprised that there is not any standard >>> jca/resource archive solution foreseen while Cassandra itself is java >>> based. Maybe I overlooked the info somewhere? >>> >>> Dbcp could help for a large part, but of course one requires a fully >>> reliable production ready solution. >>> https://commons.apache.org/proper/commons-dbcp/ >>> >>> Currently I would go for a standard conn pool at app level as is >>> described in the cassandra java driver pdf, knowing that middleware >>> admins don't like that nonstandard jee approach. >>> >>> >>> >>> >>> >>> >>> Op vrijdag 29 januari 2016 heeft Alex Popescu >> > het volgende >>> geschreven: >>> >>>> I think both of those options expect a JDBC driver, while the DataStax >>>> Java driver is not one. >>>> >>>> As a side note, if you'd provide a more detailed description of the >>>> setup you want to get and post it to the Java driver mailing list >>>> https://groups.google.com/a/lists.datastax.com/forum/#!forum/java-driv= er-user, >>>> chances of getting an answer will be higher. >>>> >>>> On Fri, Jan 29, 2016 at 9:56 AM, KAMM, BILL wrote: >>>> >>>>> I=E2=80=99m just getting started with Cassandra, and am trying to int= egrate it >>>>> with JBoss. I=E2=80=99m configuring the standalone-ha-full.xml file,= but don=E2=80=99t >>>>> know what to use for the driver class. For example, I have this: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> com.datastax.driver.core.xxxxxxxx >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> What do I replace =E2=80=9Cxxxxxxxx=E2=80=9D with? >>>>> >>>>> >>>>> >>>>> Is =E2=80=9Ccom.datastax.driver.core=E2=80=9D even correct, or am I g= oing down the >>>>> wrong path? I am using the DataStax 2.0.2 driver, with Cassandra 2.0= .8. >>>>> >>>>> >>>>> >>>>> Should I be using instead of ? >>>>> >>>>> >>>>> >>>>> Does anybody have a working example they can share? Any help to get >>>>> me going would be appreciated. Thanks. >>>>> >>>>> >>>>> >>>>> Bill >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Bests, >>>> >>>> Alex Popescu | @al3xandru >>>> Sen. Product Manager @ DataStax >>>> >>>> >>> >>> -- >>> ---------------------------------- >>> Bestdata.be >>> Optimised ict >>> Tel:+32(0)496609576 >>> Corry@BestData.be >>> ---------------------------------- >>> >>> >> > > > -- > Steve Robenalt > Software Architect > srobenalt@highwire.org > > (office/cell): 916-505-1785 > > HighWire Press, Inc. > 425 Broadway St, Redwood City, CA 94063 > www.highwire.org > > Technology for Scholarly Communication > --=20 ---------------------------------- Bestdata.be Optimised ict Tel:+32(0)496609576 Corry@BestData.be ---------------------------------- --001a114443440292c8052a80b33e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Fully correct Steve, it is a source of confusion an having a standard pool = at app/driver level will work as good as the jee solution, but just like th= e cql foresees an easy developer=C2=A0entry for cassandra because it is sim= ilar to sql, the jee datasource could do the same in front of the middlewar= e audience.
When I currently=C2=A0would like to convince my customers t= o give cassandra a try, then Im sure that several tech=C2=A0decission maker= s will say that=C2=A0=C2=A0the lack of a standard jee datasource impl is st= range and will raise some concerns and influence the first=C2=A0perception = and landing=C2=A0of the product.
This while in one way=C2=A0it ma= kes sence that there is no standard jee datasource solution present.
<= br>
Seems to be indeed a topic for the java driver.
<= div>
Op vrijdag 29 januari 2016 heeft Steve Robenalt <srobenalt@highwire.org> het volgende gesc= hreven:
It's probabl= y a source of some confusion that in the JEE world, the driver isn't po= oled, but the data source is. Since the Java Driver for Cassandra includes = the pooling, there's no need for a JEE data source on top of it. This a= lso means that the Java Driver for Cassandra isn't a one-for-one exchan= ge with a JDBC driver. I'm not sure if this same level of confusion occ= urs with other language drivers for Cassandra.

BTW, as A= lex suggested earlier in the thread, this discussion should probably be mov= ed to the Java Driver mailing list.

Steve

On Fri, Jan 29= , 2016 at 1:02 PM, Jack Krupansky <jack.krupansky@gmail.com> wrote:
Unfortunately, somebody is likely going to = need to educate us in the Cassandra community as to what a JBOSS VDB and TE= IID really are. For now, our response will probably end up being that you s= hould use the Java Driver for Cassandra, bypassing any JBOSS/VDB/TEIID supp= ort, for now. That TEIID link above may shed some light. Otherwise, you'= ;ll probably have to ping the TEIID community as far as how to configure JB= OSS/TEIID. We're here to answer questions about Cassandra itself.
=

=
-- Jack Krupansky

On Fri, Jan 29, 2016 at 3:42 PM, Corry Opden= akker <corry@bestdata.be><= /span> wrote:
What about this cassandra s= pecific howto=C2=A0explained in a recent=C2=A0jboss doc?

Im also=C2=A0searching for= the real recommended way of connecting to a cassandra db from a jee server= , but I didnt found any standard documented solution yet.=C2=A0was a bit su= rprised that there is not any standard jca/resource archive solution forese= en while Cassandra itself is java based. Maybe I overlooked the info somewh= ere?

Dbcp could help for a large part, but of cour= se one requires a fully reliable production ready=C2=A0solution.=C2=A0ht= tps://commons.apache.org/proper/commons-dbcp/

Currently I= would go for a standard conn pool at app level as is described in the cass= andra java driver pdf, knowing=C2=A0that middleware admins=C2=A0don't l= ike that nonstandard jee approach.






Op vrij= dag 29 januari 2016 heeft Alex Popescu <alexp@data= stax.com> het volgende geschreven:
I think both of those options expect a JDBC driver, while= the DataStax Java driver is not one.

As a side note, if= you'd provide a more detailed description of the setup you want to get= and post it to the Java driver mailing list https://groups.google.com/a/lists.datastax.com/forum/#!forum/java-driver= -user, chances of getting an answer will be higher.=C2=A0

On Fri, Jan 29, 201= 6 at 9:56 AM, KAMM, BILL <wk1216@att.com> wrote:

I=E2= =80=99m just getting started with Cassandra, and am trying to integrate it = with JBoss.=C2=A0 I=E2=80=99m configuring the standalone-ha-full.xml file, = but don=E2=80=99t know what to use for the driver class.=C2=A0 For example, I have this:

=C2=A0

<d= rivers>

=C2= =A0=C2=A0=C2=A0 <driver name=3D"cassandra" module=3D"com.= abc.xyz.jboss.cassandra">

=C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0<driver-class>com.datastax.dr= iver.core.xxxxxxxx</driver-class>

=C2= =A0=C2=A0=C2=A0 </driver>

</= drivers>

=C2=A0

What = do I replace =E2=80=9Cxxxxxxxx=E2=80=9D with?

=C2=A0

Is = =E2=80=9Ccom.datastax.driver.core=E2=80=9D even correct, or am I going down= the wrong path?=C2=A0 I am using the DataStax 2.0.2 driver, with Cassandra= 2.0.8.

=C2=A0

Shoul= d I be using <datasource-class> instead of <driver-class>?

=C2=A0

Does = anybody have a working example they can share?=C2=A0 Any help to get me goi= ng would be appreciated.=C2=A0 Thanks.=

=C2=A0

Bill<= u>

=C2=A0

=C2=A0




--
Bests,

Alex Popescu |=C2=A0<= span style=3D"line-height:1.6em">@al3xandru
Se= n. Product Manager @ DataStax



--
---= -------------------------------
Bestdata.be
Optimised i= ct
Corr= y@BestData.be
-------= ---------------------------





--
Steve Robenalt=C2=A0
<= font face=3D"verdana, sans-serif" size=3D"2">Software Architect
srobenalt@highwire.org=C2=A0
(office/cell): 916-505-= 1785

HighWire Press= , Inc.
425 B= roadway St, Redwood City, CA 94063

Technology for Scholarly Communication
=


--
----------------------------------
= Bestdata.be
Optimised ict
Tel:+32(0)496609576
Corry@BestData.be
----------------------------------

--001a114443440292c8052a80b33e--